Re: [PATCHv2] perf/x86/intel: Account interrupts for PEBS errors

From: kbuild test robot
Date: Thu Dec 15 2016 - 18:45:51 EST


Hi Jiri,

[auto build test WARNING on tip/perf/core]
[also build test WARNING on v4.9 next-20161215]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Jiri-Olsa/perf-x86-intel-Account-interrupts-for-PEBS-errors/20161216-042644
config: x86_64-randconfig-a0-12160640 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

kernel/events/core.c: In function '__perf_event_overflow':
>> kernel/events/core.c:7086: warning: unused variable 'hwc'
kernel/events/core.o: warning: objtool: perf_try_init_event()+0x43: function has unreachable instruction

vim +/hwc +7086 kernel/events/core.c

7070 }
7071
7072 int perf_event_account_interrupt(struct perf_event *event)
7073 {
7074 return __perf_event_account_interrupt(event, 1);
7075 }
7076
7077 /*
7078 * Generic event overflow handling, sampling.
7079 */
7080
7081 static int __perf_event_overflow(struct perf_event *event,
7082 int throttle, struct perf_sample_data *data,
7083 struct pt_regs *regs)
7084 {
7085 int events = atomic_read(&event->event_limit);
> 7086 struct hw_perf_event *hwc = &event->hw;
7087 int ret = 0;
7088
7089 /*
7090 * Non-sampling counters might still use the PMI to fold short
7091 * hardware counters, ignore those.
7092 */
7093 if (unlikely(!is_sampling_event(event)))
7094 return 0;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip