Content-Type: multipart/mixed; boundary="===============3861686833343065112==" MIME-Version: 1.0 From: Uladzislau Rezki To: kbuild-all@lists.01.org Subject: Re: [PATCH 4/7] mm/vmalloc: Use a trace_alloc_vmap_area event Date: Tue, 18 Oct 2022 18:55:10 +0200 Message-ID: In-Reply-To: <20221018124412.3beca846@gandalf.local.home> List-Id: --===============3861686833343065112== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2022 at 12:44:12PM -0400, Steven Rostedt wrote: > On Tue, 18 Oct 2022 18:17:55 +0200 > Uladzislau Rezki wrote: > = > > Hello, Steven. > > = > > > = > > > [auto build test ERROR on akpm-mm/mm-everything] > > > [also build test ERROR on linus/master v6.1-rc1 next-20221017] > > > [If your patch is applied to the wrong git tree, kindly drop us a not= e. > > > And when submitting patch, we suggest to use '--base' as documented in > > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > = > > > url: https://github.com/intel-lab-lkp/linux/commits/Uladzislau-Rez= ki-Sony/Add-basic-trace-events-for-vmap-vmalloc/20221018-000544 > > > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git m= m-everything > > > patch link: https://lore.kernel.org/r/20221017160233.16582-7-urezk= i%40gmail.com > > > patch subject: [PATCH 4/7] mm/vmalloc: Use a trace_alloc_vmap_area ev= ent > > > config: um-i386_defconfig > > > compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 > > > reproduce (this is a W=3D1 build): > > > # https://github.com/intel-lab-lkp/linux/commit/fbc853c689b29= d3bb9fe250b2653fd2dd8046fc7 > > > git remote add linux-review https://github.com/intel-lab-lkp/= linux > > > git fetch --no-tags linux-review Uladzislau-Rezki-Sony/Add-ba= sic-trace-events-for-vmap-vmalloc/20221018-000544 > > > git checkout fbc853c689b29d3bb9fe250b2653fd2dd8046fc7 > > > # save the config file > > > mkdir build_dir && cp config build_dir/.config > > > make W=3D1 O=3Dbuild_dir ARCH=3Dum SUBARCH=3Di386 SHELL=3D/bi= n/bash > > > = > > > If you fix the issue, kindly add following tag where applicable > > > | Reported-by: kernel test robot > > > = > > > All errors (new ones prefixed by >>): > > > = > > > In file included from include/trace/events/vmap.h:123, > > > from mm/vmalloc.c:47: = > > > >> include/trace/define_trace.h:84:34: fatal error: trace/events/kern= el_vmap.h: No such file or directory = > > > 84 | # define __TRACE_INCLUDE(system) > > > | ^ > > > compilation terminated. > > > = > > I can reproduce it. It seems it happens so far only on the ARCH=3Dum ca= se. > > For regular arm/x86 i do not see such build error. > > = > > If i rename the TRACE_SYSTEM macro to something different then "vmap" > > it compiles fine. In case of: > > = > > #define TRACE_SYSTEM vmap > > = > > the prefix "kernel_" is added, thus the header name becomes as kernel_v= map.h > > = > > Steven can you give some indications? Or any thoughts about it? > > = > > Thank you in advance! > = > It comes from this: > = > arch/um/Makefile:# -Dvmap=3Dkernel_vmap prevents anything from referen= cing the libpcap.o symbol so > arch/um/Makefile: $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=3Dkerne= l_vmap \ > = > = > It defines "vmap" to "kernel_vmap" which will change the above > TRACE_SYSTEM Define to: > = > #define TRACE_SYSTEM kernel_vmap > = > and that will confuse everything else. > = Hm... Right then it goes completely crazy. So there is only one option it is to rename the trace header defined by the TRACE_SYSTEM. Thank you for your help :) -- Uladzislau Rezki --===============3861686833343065112==--