lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201709191400.9qOR1Zdq%fengguang.wu@intel.com>
Date:   Tue, 19 Sep 2017 14:28:58 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Yonghong Song <yhs@...com>
Cc:     kbuild-all@...org, peterz@...radead.org, rostedt@...dmis.org,
        ast@...com, daniel@...earbox.net, netdev@...r.kernel.org,
        kernel-team@...com
Subject: Re: [PATCH net-next v3 1/4] bpf: add helper
 bpf_perf_event_read_value for perf event array map

Hi Yonghong,

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

url:    https://github.com/0day-ci/linux/commits/Yonghong-Song/bpf-add-two-helpers-to-read-perf-event-enabled-running-time/20170919-134113
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/intel/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=m68k 

All errors (new ones prefixed by >>):

   kernel/bpf/arraymap.c: In function 'perf_event_fd_array_get_ptr':
>> kernel/bpf/arraymap.c:495:6: error: too many arguments to function 'perf_event_read_local'
     if (perf_event_read_local(event, &value, NULL, NULL) == -EOPNOTSUPP)
         ^
   In file included from kernel/bpf/arraymap.c:18:0:
   include/linux/perf_event.h:1290:19: note: declared here
    static inline int perf_event_read_local(struct perf_event *event, u64 *value)
                      ^

vim +/perf_event_read_local +495 kernel/bpf/arraymap.c

   480	
   481	static void *perf_event_fd_array_get_ptr(struct bpf_map *map,
   482						 struct file *map_file, int fd)
   483	{
   484		struct bpf_event_entry *ee;
   485		struct perf_event *event;
   486		struct file *perf_file;
   487		u64 value;
   488	
   489		perf_file = perf_event_get(fd);
   490		if (IS_ERR(perf_file))
   491			return perf_file;
   492	
   493		ee = ERR_PTR(-EOPNOTSUPP);
   494		event = perf_file->private_data;
 > 495		if (perf_event_read_local(event, &value, NULL, NULL) == -EOPNOTSUPP)
   496			goto err_out;
   497	
   498		ee = bpf_event_entry_gen(perf_file, map_file);
   499		if (ee)
   500			return ee;
   501		ee = ERR_PTR(-ENOMEM);
   502	err_out:
   503		fput(perf_file);
   504		return ee;
   505	}
   506	

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

Download attachment ".config.gz" of type "application/gzip" (44401 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ