lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 2 Sep 2022 11:47:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Srivatsa Vaddagiri <vatsa@...eaurora.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Guenter Roeck <groeck@...omium.org>,
        Chris Redpath <chris.redpath@....com>
Subject: [jsarha:topic/cros-sof-v4.14-rebase 1458/9999]
 include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no
 member named 'my_q'

tree:   https://github.com/jsarha/linux topic/cros-sof-v4.14-rebase
head:   18a233f3f676a98dde00947535d99ab1a54da340
commit: 77f68474fcca7a861a745c4dc1ffd488d17797a5 [1458/9999] ANDROID: sched: Introduce Window Assisted Load Tracking (WALT)
config: sparc64-randconfig-c042-20220901 (https://download.01.org/0day-ci/archive/20220902/202209021116.DszurHSD-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/jsarha/linux/commit/77f68474fcca7a861a745c4dc1ffd488d17797a5
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/cros-sof-v4.14-rebase
        git checkout 77f68474fcca7a861a745c4dc1ffd488d17797a5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash arch/sparc/mm/ kernel/sched/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   arch/sparc/mm/init_64.c: In function 'setup_hugepagesz':
   arch/sparc/mm/init_64.c:368:17: error: variable 'hv_pgsz_idx' set but not used [-Werror=unused-but-set-variable]
     unsigned short hv_pgsz_idx;
                    ^~~~~~~~~~~
   arch/sparc/mm/init_64.c: At top level:
>> arch/sparc/mm/init_64.c:2685:6: error: no previous declaration for 'vmemmap_free' [-Werror=missing-declarations]
    void vmemmap_free(unsigned long start, unsigned long end)
         ^~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/cpuset.h:13:0,
                    from kernel/sched/core.c:14:
   include/linux/sched/topology.h:196:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
    const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
    ^~~~~
   In file included from kernel/sched/core.c:36:0:
   kernel/sched/sched.h:1127:34: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
     const struct sched_group_energy const *sge;
                                     ^~~~~
   In file included from include/trace/define_trace.h:96:0,
                    from include/trace/events/sched.h:1171,
                    from kernel/sched/core.c:41:
   include/trace/events/sched.h: In function 'trace_event_raw_event_sched_load_se':
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
   In file included from include/trace/define_trace.h:97:0,
                    from include/trace/events/sched.h:1171,
                    from kernel/sched/core.c:41:
   include/trace/events/sched.h: In function 'perf_trace_sched_load_se':
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
>> include/trace/events/sched.h:778:10: error: 'struct sched_entity' has no member named 'my_q'
      if (!se->my_q) {
             ^
   include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
     { assign; }       \
       ^~~~~~
   include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS'
            PARAMS(assign),         \
            ^~~~~~
   include/trace/events/sched.h:745:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(sched_load_se,
    ^~~~~~~~~~~
   include/trace/events/sched.h:763:2: note: in expansion of macro 'TP_fast_assign'
     TP_fast_assign(
     ^~~~~~~~~~~~~~
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/trace/events/sched.h:778:3: note: in expansion of macro 'if'
      if (!se->my_q) {
      ^~
   kernel/sched/core.c: At top level:
   kernel/sched/core.c:1303:5: warning: no previous declaration for 'migrate_swap' [-Wmissing-declarations]
    int migrate_swap(struct task_struct *cur, struct task_struct *p)
        ^~~~~~~~~~~~
   kernel/sched/core.c:1599:6: warning: no previous declaration for 'sched_set_stop_task' [-Wmissing-declarations]
    void sched_set_stop_task(int cpu, struct task_struct *stop)
         ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:3657:35: warning: no previous declaration for 'preempt_schedule_irq' [-Wmissing-declarations]
    asmlinkage __visible void __sched preempt_schedule_irq(void)
                                      ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'sched_init':
   kernel/sched/core.c:5858:32: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
     unsigned long alloc_size = 0, ptr;
                                   ^~~


vim +778 include/trace/events/sched.h

   746	
   747		TP_PROTO(struct sched_entity *se),
   748	
   749		TP_ARGS(se),
   750	
   751		TP_STRUCT__entry(
   752			__field(	int,		cpu			      )
   753			__dynamic_array(char,		path,
   754			  __trace_sched_path(__trace_sched_group_cfs_rq(se), NULL, 0) )
   755			__array(	char,		comm,	TASK_COMM_LEN	      )
   756			__field(	pid_t,		pid			      )
   757			__field(	unsigned long,	load			      )
   758			__field(	unsigned long,	util			      )
   759			__field(	unsigned long,	util_pelt		      )
   760			__field(	unsigned long,	util_walt		      )
   761		),
   762	
   763		TP_fast_assign(
   764			struct cfs_rq *gcfs_rq = __trace_sched_group_cfs_rq(se);
   765			struct task_struct *p = gcfs_rq ? NULL
   766					    : container_of(se, struct task_struct, se);
   767	
   768			__entry->cpu = __trace_sched_cpu(gcfs_rq, se);
   769			__trace_sched_path(gcfs_rq, __get_dynamic_array(path),
   770					   __get_dynamic_array_len(path));
   771			memcpy(__entry->comm, p ? p->comm : "(null)", TASK_COMM_LEN);
   772			__entry->pid = p ? p->pid : -1;
   773			__entry->load = se->avg.load_avg;
   774			__entry->util = se->avg.util_avg;
   775			__entry->util_pelt  = __entry->util;
   776			__entry->util_walt  = 0;
   777	#ifdef CONFIG_SCHED_WALT
 > 778			if (!se->my_q) {
   779				struct task_struct *p = container_of(se, struct task_struct, se);
   780				__entry->util_walt = p->ravg.demand;
   781				do_div(__entry->util_walt, walt_ravg_window >> SCHED_CAPACITY_SHIFT);
   782				if (!walt_disabled && sysctl_sched_use_walt_task_util)
   783					__entry->util = __entry->util_walt;
   784			}
   785	#endif
   786		),
   787	
   788		TP_printk("cpu=%d path=%s comm=%s pid=%d load=%lu util=%lu util_pelt=%lu util_walt=%lu",
   789			  __entry->cpu, __get_str(path), __entry->comm,
   790			  __entry->pid, __entry->load, __entry->util,
   791			  __entry->util_pelt, __entry->util_walt)
   792	);
   793	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ