From: kernel test robot <lkp@intel.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC V2 1/8] perf: Consolidate branch sample filter helpers
Date: Wed, 13 Apr 2022 02:00:00 +0800 [thread overview]
Message-ID: <202204130108.zoxwYdF8-lkp@intel.com> (raw)
In-Reply-To: <20220412115455.293119-2-anshuman.khandual@arm.com>
Hi Anshuman,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on linus/master linux/master v5.18-rc2]
[cannot apply to tip/perf/core tip/master next-20220412]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220412-204141
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: i386-randconfig-a003-20220411 (https://download.01.org/0day-ci/archive/20220413/202204130108.zoxwYdF8-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project fe2478d44e4f7f191c43fef629ac7a23d0251e72)
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/intel-lab-lkp/linux/commit/6d93333c8ddf355a33ed0f51718603406412afbb
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220412-204141
git checkout 6d93333c8ddf355a33ed0f51718603406412afbb
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/ fs//
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/cpu/mce/core.c:50:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:9:
In file included from include/linux/entry-common.h:7:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1685:42: error: use of undeclared identifier 'PERF_SAMPLE_BRANCH_PRIV_SAVE'; did you mean 'PERF_SAMPLE_BRANCH_TYPE_SAVE'?
return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PERF_SAMPLE_BRANCH_TYPE_SAVE
include/uapi/linux/perf_event.h:231:2: note: 'PERF_SAMPLE_BRANCH_TYPE_SAVE' declared here
PERF_SAMPLE_BRANCH_TYPE_SAVE =
^
1 error generated.
--
In file included from arch/x86/entry/common.c:13:
In file included from include/linux/entry-common.h:7:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1685:42: error: use of undeclared identifier 'PERF_SAMPLE_BRANCH_PRIV_SAVE'; did you mean 'PERF_SAMPLE_BRANCH_TYPE_SAVE'?
return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PERF_SAMPLE_BRANCH_TYPE_SAVE
include/uapi/linux/perf_event.h:231:2: note: 'PERF_SAMPLE_BRANCH_TYPE_SAVE' declared here
PERF_SAMPLE_BRANCH_TYPE_SAVE =
^
arch/x86/entry/common.c:119:24: warning: no previous prototype for function 'do_int80_syscall_32' [-Wmissing-prototypes]
__visible noinstr void do_int80_syscall_32(struct pt_regs *regs)
^
arch/x86/entry/common.c:119:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr void do_int80_syscall_32(struct pt_regs *regs)
^
static
arch/x86/entry/common.c:186:24: warning: no previous prototype for function 'do_fast_syscall_32' [-Wmissing-prototypes]
__visible noinstr long do_fast_syscall_32(struct pt_regs *regs)
^
arch/x86/entry/common.c:186:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr long do_fast_syscall_32(struct pt_regs *regs)
^
static
arch/x86/entry/common.c:238:24: warning: no previous prototype for function 'do_SYSENTER_32' [-Wmissing-prototypes]
__visible noinstr long do_SYSENTER_32(struct pt_regs *regs)
^
arch/x86/entry/common.c:238:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr long do_SYSENTER_32(struct pt_regs *regs)
^
static
3 warnings and 1 error generated.
--
In file included from arch/x86/kernel/doublefault_32.c:11:
In file included from arch/x86/include/asm/traps.h:9:
In file included from arch/x86/include/asm/idtentry.h:9:
In file included from include/linux/entry-common.h:7:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1685:42: error: use of undeclared identifier 'PERF_SAMPLE_BRANCH_PRIV_SAVE'; did you mean 'PERF_SAMPLE_BRANCH_TYPE_SAVE'?
return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PERF_SAMPLE_BRANCH_TYPE_SAVE
include/uapi/linux/perf_event.h:231:2: note: 'PERF_SAMPLE_BRANCH_TYPE_SAVE' declared here
PERF_SAMPLE_BRANCH_TYPE_SAVE =
^
arch/x86/kernel/doublefault_32.c:23:36: warning: no previous prototype for function 'doublefault_shim' [-Wmissing-prototypes]
asmlinkage noinstr void __noreturn doublefault_shim(void)
^
arch/x86/kernel/doublefault_32.c:23:20: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage noinstr void __noreturn doublefault_shim(void)
^
static
arch/x86/kernel/doublefault_32.c:114:6: warning: no previous prototype for function 'doublefault_init_cpu_tss' [-Wmissing-prototypes]
void doublefault_init_cpu_tss(void)
^
arch/x86/kernel/doublefault_32.c:114:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void doublefault_init_cpu_tss(void)
^
static
2 warnings and 1 error generated.
--
In file included from arch/x86/kernel/kprobes/core.c:36:
>> include/linux/perf_event.h:1685:42: error: use of undeclared identifier 'PERF_SAMPLE_BRANCH_PRIV_SAVE'; did you mean 'PERF_SAMPLE_BRANCH_TYPE_SAVE'?
return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PERF_SAMPLE_BRANCH_TYPE_SAVE
include/uapi/linux/perf_event.h:231:2: note: 'PERF_SAMPLE_BRANCH_TYPE_SAVE' declared here
PERF_SAMPLE_BRANCH_TYPE_SAVE =
^
arch/x86/kernel/kprobes/core.c:1081:23: warning: no previous prototype for function 'trampoline_handler' [-Wmissing-prototypes]
__used __visible void trampoline_handler(struct pt_regs *regs)
^
arch/x86/kernel/kprobes/core.c:1081:18: note: declare 'static' if the function is not intended to be used outside of this translation unit
__used __visible void trampoline_handler(struct pt_regs *regs)
^
static
1 warning and 1 error generated.
vim +1685 include/linux/perf_event.h
1682
1683 static inline bool branch_sample_priv(const struct perf_event *event)
1684 {
> 1685 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next parent reply other threads:[~2022-04-12 18:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220412115455.293119-2-anshuman.khandual@arm.com>
2022-04-12 18:00 ` kernel test robot [this message]
2022-04-12 18:00 ` [RFC V2 1/8] perf: Consolidate branch sample filter helpers kernel test robot
2022-04-12 19:02 ` kernel test robot
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=202204130108.zoxwYdF8-lkp@intel.com \
--to=lkp@intel.com \
--cc=anshuman.khandual@arm.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
/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