From: kernel test robot <lkp@intel.com>
To: Colton Lewis <coltonlewis@google.com>, kvm@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
Oliver Upton <oliver.upton@linux.dev>,
Sean Christopherson <seanjc@google.com>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Kan Liang <kan.liang@linux.intel.com>,
Will Deacon <will@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Catalin Marinas <catalin.marinas@arm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Naveen N Rao <naveen@kernel.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>
Subject: Re: [PATCH v2 5/5] perf: Correct perf sampling with guest VMs
Date: Thu, 12 Sep 2024 22:52:38 +0800 [thread overview]
Message-ID: <202409122254.PnIe8ulL-lkp@intel.com> (raw)
In-Reply-To: <20240911222433.3415301-6-coltonlewis@google.com>
Hi Colton,
kernel test robot noticed the following build warnings:
[auto build test WARNING on perf-tools-next/perf-tools-next]
[also build test WARNING on tip/perf/core perf-tools/perf-tools acme/perf/core linus/master v6.11-rc7 next-20240912]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Colton-Lewis/arm-perf-Drop-unused-functions/20240912-063910
base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link: https://lore.kernel.org/r/20240911222433.3415301-6-coltonlewis%40google.com
patch subject: [PATCH v2 5/5] perf: Correct perf sampling with guest VMs
config: x86_64-buildonly-randconfig-005-20240912 (https://download.01.org/0day-ci/archive/20240912/202409122254.PnIe8ulL-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240912/202409122254.PnIe8ulL-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/202409122254.PnIe8ulL-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/events/core.c: In function 'perf_arch_misc_flags':
>> arch/x86/events/core.c:2971:22: warning: unused variable 'guest_state' [-Wunused-variable]
2971 | unsigned int guest_state = perf_guest_state();
| ^~~~~~~~~~~
vim +/guest_state +2971 arch/x86/events/core.c
8f19518b57cef1 arch/x86/events/core.c Colton Lewis 2024-09-11 2968
a2d1490e40282f arch/x86/events/core.c Colton Lewis 2024-09-11 2969 unsigned long perf_arch_misc_flags(struct pt_regs *regs)
39447b386c846b arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-19 2970 {
1c3430516b0732 arch/x86/events/core.c Sean Christopherson 2021-11-11 @2971 unsigned int guest_state = perf_guest_state();
8f19518b57cef1 arch/x86/events/core.c Colton Lewis 2024-09-11 2972 unsigned long misc = common_misc_flags(regs);
dcf46b9443ad48 arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-20 2973
d07bdfd322d307 arch/x86/kernel/cpu/perf_event.c Peter Zijlstra 2012-07-10 2974 if (user_mode(regs))
dcf46b9443ad48 arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-20 2975 misc |= PERF_RECORD_MISC_USER;
dcf46b9443ad48 arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-20 2976 else
dcf46b9443ad48 arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-20 2977 misc |= PERF_RECORD_MISC_KERNEL;
dcf46b9443ad48 arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-20 2978
39447b386c846b arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-19 2979 return misc;
39447b386c846b arch/x86/kernel/cpu/perf_event.c Zhang, Yanmin 2010-04-19 2980 }
b3d9468a8bd218 arch/x86/kernel/cpu/perf_event.c Gleb Natapov 2011-11-10 2981
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-09-12 14:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 22:24 [PATCH v2 0/5] Correct perf sampling with Guest VMs Colton Lewis
2024-09-11 22:24 ` [PATCH v2 1/5] arm: perf: Drop unused functions Colton Lewis
2024-09-11 22:24 ` [PATCH v2 2/5] perf: Hoist perf_instruction_pointer() and perf_misc_flags() Colton Lewis
2024-09-11 22:24 ` [PATCH v2 3/5] powerpc: perf: Use perf_arch_instruction_pointer() Colton Lewis
2024-09-11 22:24 ` [PATCH v2 4/5] x86: perf: Refactor misc flag assignments Colton Lewis
2024-09-11 22:24 ` [PATCH v2 5/5] perf: Correct perf sampling with guest VMs Colton Lewis
2024-09-11 22:56 ` Sean Christopherson
2024-09-12 20:31 ` Colton Lewis
2024-09-12 14:52 ` kernel test robot [this message]
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=202409122254.PnIe8ulL-lkp@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=agordeev@linux.ibm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=borntraeger@linux.ibm.com \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=christophe.leroy@csgroup.eu \
--cc=coltonlewis@google.com \
--cc=dave.hansen@linux.intel.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=hpa@zytor.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=mpe@ellerman.id.au \
--cc=namhyung@kernel.org \
--cc=naveen@kernel.org \
--cc=npiggin@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oliver.upton@linux.dev \
--cc=seanjc@google.com \
--cc=svens@linux.ibm.com \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
--cc=x86@kernel.org \
/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