* [ash:perf-aux-sampling 5/20] arch/x86/events/intel/pt.c:495:2: note: in expansion of macro 'if'
@ 2019-10-22 15:50 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-22 15:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3629 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ash/linux.git perf-aux-sampling
head: b08efd75924e19b3590a7fb607e266ad372dfa06
commit: d1f97c3e2169ac8cb52e8f57716b3e21d524536d [5/20] perf/x86/intel/pt: Opportunistically use single range output mode
config: x86_64-randconfig-a001-201942 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout d1f97c3e2169ac8cb52e8f57716b3e21d524536d
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:5:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from arch/x86/events/intel/pt.c:16:
arch/x86/events/intel/pt.c: In function 'pt_config':
arch/x86/events/intel/pt.c:495:7: error: 'buf' undeclared (first use in this function); did you mean 'btf'?
if (!buf->single)
^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> arch/x86/events/intel/pt.c:495:2: note: in expansion of macro 'if'
if (!buf->single)
^~
arch/x86/events/intel/pt.c:495:7: note: each undeclared identifier is reported only once for each function it appears in
if (!buf->single)
^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> arch/x86/events/intel/pt.c:495:2: note: in expansion of macro 'if'
if (!buf->single)
^~
vim +/if +495 arch/x86/events/intel/pt.c
482
483 static void pt_config(struct perf_event *event)
484 {
485 u64 reg;
486
487 /* First round: clear STATUS, in particular the PSB byte counter. */
488 if (!event->hw.config) {
489 perf_event_itrace_started(event);
490 wrmsrl(MSR_IA32_RTIT_STATUS, 0);
491 }
492
493 reg = pt_config_filters(event);
494 reg |= RTIT_CTL_TRACEEN;
> 495 if (!buf->single)
496 reg |= RTIT_CTL_TOPA;
497
498 /*
499 * Previously, we had BRANCH_EN on by default, but now that PT has
500 * grown features outside of branch tracing, it is useful to allow
501 * the user to disable it. Setting bit 0 in the event's attr.config
502 * allows BRANCH_EN to pass through instead of being always on. See
503 * also the comment in pt_event_valid().
504 */
505 if (event->attr.config & BIT(0)) {
506 reg |= event->attr.config & RTIT_CTL_BRANCH_EN;
507 } else {
508 reg |= RTIT_CTL_BRANCH_EN;
509 }
510
511 if (!event->attr.exclude_kernel)
512 reg |= RTIT_CTL_OS;
513 if (!event->attr.exclude_user)
514 reg |= RTIT_CTL_USR;
515
516 reg |= (event->attr.config & PT_CONFIG_MASK);
517
518 event->hw.config = reg;
519 pt_config_start(event);
520 }
521
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29316 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-22 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 15:50 [ash:perf-aux-sampling 5/20] arch/x86/events/intel/pt.c:495:2: note: in expansion of macro 'if' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.