All of lore.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:tmp 5/5] kernel/trace/trace_output.c:1110:26: error: 'FTRACE_REGS_MAX_ARGS' undeclared
@ 2025-01-01  1:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-01  1:30 UTC (permalink / raw)
  To: Sven Schnelle; +Cc: oe-kbuild-all, Jiri Olsa, Steven Rostedt (Google)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git tmp
head:   e2a63411ac4e1b7b36da9f4c2245570d92842d2e
commit: e2a63411ac4e1b7b36da9f4c2245570d92842d2e [5/5] ftrace: Add arguments to function tracer
config: arc-randconfig-001-20250101 (https://download.01.org/0day-ci/archive/20250101/202501010955.Js0ZSSjD-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250101/202501010955.Js0ZSSjD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501010955.Js0ZSSjD-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/trace/trace_output.c: In function 'trace_fn_trace':
>> kernel/trace/trace_output.c:1110:26: error: 'FTRACE_REGS_MAX_ARGS' undeclared (first use in this function)
    1110 |         if (args_size >= FTRACE_REGS_MAX_ARGS * sizeof(long))
         |                          ^~~~~~~~~~~~~~~~~~~~
   kernel/trace/trace_output.c:1110:26: note: each undeclared identifier is reported only once for each function it appears in
--
   kernel/trace/trace.c: In function 'trace_function':
>> kernel/trace/trace.c:2907:17: error: 'FTRACE_REGS_MAX_ARGS' undeclared (first use in this function)
    2907 |         size += FTRACE_REGS_MAX_ARGS * !!fregs * sizeof(long);
         |                 ^~~~~~~~~~~~~~~~~~~~
   kernel/trace/trace.c:2907:17: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/trace/trace.c:2919:42: error: implicit declaration of function 'ftrace_regs_get_argument' [-Werror=implicit-function-declaration]
    2919 |                         entry->args[i] = ftrace_regs_get_argument(fregs, i);
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FTRACE_REGS_MAX_ARGS +1110 kernel/trace/trace_output.c

  1097	
  1098	/* TRACE_FN */
  1099	static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags,
  1100						struct trace_event *event)
  1101	{
  1102		struct ftrace_entry *field;
  1103		struct trace_seq *s = &iter->seq;
  1104		unsigned long *args;
  1105		int args_size;
  1106	
  1107		trace_assign_type(field, iter->ent);
  1108	
  1109		args_size = iter->ent_size - offsetof(struct ftrace_entry, args);
> 1110		if (args_size >= FTRACE_REGS_MAX_ARGS * sizeof(long))
  1111			args = field->args;
  1112		else
  1113			args = NULL;
  1114	
  1115		print_fn_trace(s, field->ip, field->parent_ip, iter->tr->text_delta,
  1116			       args, flags);
  1117		trace_seq_putc(s, '\n');
  1118	
  1119		return trace_handle_return(s);
  1120	}
  1121	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-01  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-01  1:30 [jolsa-perf:tmp 5/5] kernel/trace/trace_output.c:1110:26: error: 'FTRACE_REGS_MAX_ARGS' undeclared kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.