diff options
author | Wang Nan <wangnan0@huawei.com> | 2016-02-26 12:32:06 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-03 17:10:34 +0300 |
commit | d8871ea71281ed689dc3303d1b50eb00c5d06141 (patch) | |
tree | 29e326be8573cd16601613eacd56f7f831f8cf00 /security/keys | |
parent | f8dd2d5ff953bc498d682ae8022439c940a7d5c4 (diff) | |
download | linux-d8871ea71281ed689dc3303d1b50eb00c5d06141.tar.xz |
perf record: Use WARN_ONCE to replace 'if' condition
Commits in a BPF patchkit will extract kernel and module synthesizing
code into a separated function and call it multiple times. This patch
replace 'if (err < 0)' using WARN_ONCE, makes sure the error message
show one time.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1456479154-136027-19-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'security/keys')
0 files changed, 0 insertions, 0 deletions