public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: kbuild test robot <lkp@intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: Re: kernel//trace/fgraph.c:111:35: error: 'MCOUNT_INSN_SIZE' undeclared; did you mean 'UCOUNT_COUNTS'?
Date: Thu, 2 Jan 2020 22:07:54 -0500	[thread overview]
Message-ID: <20200102220754.5dc61fcc@rorschach.local.home> (raw)
In-Reply-To: <202001020219.zvE3vsty%lkp@intel.com>

On Thu, 2 Jan 2020 02:09:22 +0800
kbuild test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   738d2902773e30939a982c8df7a7f94293659810
> commit: ff205766dbbee024a4a716638868d98ffb17748a ftrace: Fix function_graph tracer interaction with BPF trampoline
> date:   3 weeks ago
> config: riscv-randconfig-a001-20200102 (attached as .config)
> compiler: riscv64-linux-gcc (GCC) 7.5.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout ff205766dbbee024a4a716638868d98ffb17748a
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.5.0 make.cross ARCH=riscv 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    kernel//trace/fgraph.c: In function 'function_graph_enter':
> >> kernel//trace/fgraph.c:111:35: error: 'MCOUNT_INSN_SIZE' undeclared (first use in this function); did you mean 'UCOUNT_COUNTS'?  
>          ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE))
>                                       ^~~~~~~~~~~~~~~~
>                                       UCOUNT_COUNTS
>    kernel//trace/fgraph.c:111:35: note: each undeclared identifier is reported only once for each function it appears in
> 
>

The next two patches should fix this. The second patch fixes a
different location with the same problem. It appears that without
DYNAMIC_FTRACE (which x86 always has now) that this isn't defined.

-- Steve

  reply	other threads:[~2020-01-03  3:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-01 18:09 kernel//trace/fgraph.c:111:35: error: 'MCOUNT_INSN_SIZE' undeclared; did you mean 'UCOUNT_COUNTS'? kbuild test robot
2020-01-03  3:07 ` Steven Rostedt [this message]
2020-01-03  3:09   ` [PATCH] tracing: Define MCOUNT_INSN_SIZE when not defined without direct calls Steven Rostedt
2020-01-03  3:09   ` [PATCH] tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200102220754.5dc61fcc@rorschach.local.home \
    --to=rostedt@goodmis.org \
    --cc=ast@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox