Re: [PATCH v2 net-next 1/3] perf, bpf: Add BPF support to all perf_event types

From: kbuild test robot
Date: Fri May 26 2017 - 07:04:46 EST


Hi Teng,

[auto build test ERROR on net-next/master]

url: https://github.com/0day-ci/linux/commits/Alexei-Starovoitov/bpf-Add-BPF-support-to-all-perf_event/20170526-171542
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64

All errors (new ones prefixed by >>):

kernel//bpf/arraymap.c: In function 'perf_event_fd_array_get_ptr':
>> kernel//bpf/arraymap.c:466:11: error: 'struct perf_event' has no member named 'attach_state'
if (event->attach_state & PERF_ATTACH_TASK)
^~

vim +466 kernel//bpf/arraymap.c

460 if (IS_ERR(perf_file))
461 return perf_file;
462
463 event = perf_file->private_data;
464 ee = ERR_PTR(-EINVAL);
465 /* Per-task events are not supported */
> 466 if (event->attach_state & PERF_ATTACH_TASK)
467 goto err_out;
468
469 attr = perf_event_attrs(event);

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

Attachment: .config.gz
Description: application/gzip