summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-08-18 07:16:11 +0000
committerAlexei Starovoitov <ast@kernel.org>2020-08-18 17:11:00 -0700
commit65bb2e0fc5a67200db95911207ef9662aaf7ab9d (patch)
tree219ed315a21db6a44cb3e74fe2584e2adbbec84a /tools/lib
parent2bf8c7e735ac8ab81eebd672caee41c77ec1b793 (diff)
downloadlinux-stable-65bb2e0fc5a67200db95911207ef9662aaf7ab9d.tar.gz
linux-stable-65bb2e0fc5a67200db95911207ef9662aaf7ab9d.tar.bz2
linux-stable-65bb2e0fc5a67200db95911207ef9662aaf7ab9d.zip
libbpf: Convert comma to semicolon
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20200818071611.21923-1-vulab@iscas.ac.cn
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 5d20b2da4427..5055e1531e43 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -8594,7 +8594,7 @@ struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt,
struct perf_buffer_params p = {};
struct perf_event_attr attr = { 0, };
- attr.config = PERF_COUNT_SW_BPF_OUTPUT,
+ attr.config = PERF_COUNT_SW_BPF_OUTPUT;
attr.type = PERF_TYPE_SOFTWARE;
attr.sample_type = PERF_SAMPLE_RAW;
attr.sample_period = 1;