mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Song Liu <songliubraving@fb.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, Song Liu <songliubraving@fb.com>,
	peterz@infradead.org, acme@kernel.org, ast@kernel.org,
	daniel@iogearbox.net, kernel-team@fb.com
Subject: Re: [PATCH v4 perf, bpf-next 3/7] perf, bpf: introduce PERF_RECORD_BPF_EVENT
Date: Thu, 20 Dec 2018 05:02:04 +0800	[thread overview]
Message-ID: <201812200515.Xn8WBLfZ%fengguang.wu@intel.com> (raw)
In-Reply-To: <20181219060227.1057679-4-songliubraving@fb.com>

[-- Attachment #1: Type: text/plain, Size: 1787 bytes --]

Hi Song,

Thank you for the patch! Yet something to improve:

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

url:    https://github.com/0day-ci/linux/commits/Song-Liu/perf-bpf-Introduce-PERF_RECORD_KSYMBOL/20181220-023635
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.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
        GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   kernel/bpf/syscall.c: In function '__bpf_prog_put':
>> kernel/bpf/syscall.c:1214:3: error: implicit declaration of function 'perf_event_bpf_event' [-Werror=implicit-function-declaration]
      perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_UNLOAD, 0);
      ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/perf_event_bpf_event +1214 kernel/bpf/syscall.c

  1210	
  1211	static void __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock)
  1212	{
  1213		if (atomic_dec_and_test(&prog->aux->refcnt)) {
> 1214			perf_event_bpf_event(prog, PERF_BPF_EVENT_PROG_UNLOAD, 0);
  1215			/* bpf_prog_free_id() must be called first */
  1216			bpf_prog_free_id(prog, do_idr_lock);
  1217			bpf_prog_kallsyms_del_all(prog);
  1218			btf_put(prog->aux->btf);
  1219			kvfree(prog->aux->func_info);
  1220			bpf_prog_free_linfo(prog);
  1221	
  1222			call_rcu(&prog->aux->rcu, __bpf_prog_put_rcu);
  1223		}
  1224	}
  1225	

---
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: 48525 bytes --]

  parent reply	other threads:[~2018-12-19 21:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19  6:02 [PATCH v4 perf, bpf-next 0/7] reveal invisible bpf programs Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 1/7] perf, bpf: Introduce PERF_RECORD_KSYMBOL Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 2/7] sync tools/include/uapi/linux/perf_event.h Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 3/7] perf, bpf: introduce PERF_RECORD_BPF_EVENT Song Liu
2018-12-19 20:11   ` kbuild test robot
2018-12-19 21:02   ` kbuild test robot [this message]
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 4/7] sync tools/include/uapi/linux/perf_event.h Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_BPF_EVENT Song Liu
2018-12-19  6:06   ` Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 5/7] perf util: handle PERF_RECORD_KSYMBOL Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 6/7] perf util: handle PERF_RECORD_BPF_EVENT Song Liu
2018-12-19  6:02 ` [PATCH v4 perf, bpf-next 7/7] perf tools: synthesize PERF_RECORD_* for loaded BPF programs Song Liu

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=201812200515.Xn8WBLfZ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=acme@kernel.org \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kbuild-all@01.org \
    --cc=kernel-team@fb.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=songliubraving@fb.com \
    /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

all inboxes | Powered by JetHome®