Content-Type: multipart/mixed; boundary="===============8796267026696807125==" MIME-Version: 1.0 From: Steven Rostedt To: kbuild-all@lists.01.org Subject: Re: kernel//trace/fgraph.c:111:35: error: 'MCOUNT_INSN_SIZE' undeclared; did you mean 'UCOUNT_COUNTS'? Date: Thu, 02 Jan 2020 22:07:54 -0500 Message-ID: <20200102220754.5dc61fcc@rorschach.local.home> In-Reply-To: <202001020219.zvE3vsty%lkp@intel.com> List-Id: --===============8796267026696807125== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2 Jan 2020 02:09:22 +0800 kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: 738d2902773e30939a982c8df7a7f94293659810 > commit: ff205766dbbee024a4a716638868d98ffb17748a ftrace: Fix function_gra= ph 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/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout ff205766dbbee024a4a716638868d98ffb17748a > # save the attached .config to linux build tree > GCC_VERSION=3D7.5.0 make.cross ARCH=3Driscv = > = > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > = > 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 (f= irst 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 rep= orted 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 --===============8796267026696807125==--