diff options
author | Song Liu <songliubraving@fb.com> | 2018-02-01 14:59:24 -0800 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2018-02-02 15:01:50 -0800 |
commit | 67ae605d4ba1c9ffb3b6f04124ae81b99f860d2e (patch) | |
tree | 7bba751ee7a4097af1a770c850419690e82368df /examples | |
parent | 3f39bc14457261c87e821983fe154ec2fe6f116b (diff) | |
download | bcc-67ae605d4ba1c9ffb3b6f04124ae81b99f860d2e.tar.gz |
Remove semicolon at the end of define BPF_STACK_TRACE()
The semicolon is usually added when the macro is used. Update both the
macro definition and all uses.
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/TCPSendStack.cc | 2 | ||||
-rwxr-xr-x | examples/lua/memleak.lua | 2 | ||||
-rwxr-xr-x | examples/lua/offcputime.lua | 2 | ||||
-rw-r--r-- | examples/tracing/mallocstacks.py | 2 | ||||
-rwxr-xr-x | examples/tracing/stacksnoop.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/cpp/TCPSendStack.cc b/examples/cpp/TCPSendStack.cc index fd0b68dd..65ba768a 100644 --- a/examples/cpp/TCPSendStack.cc +++ b/examples/cpp/TCPSendStack.cc @@ -27,7 +27,7 @@ struct stack_key_t { int kernel_stack; }; -BPF_STACK_TRACE(stack_traces, 10240) +BPF_STACK_TRACE(stack_traces, 10240); BPF_HASH(counts, struct stack_key_t, uint64_t); int on_tcp_send(struct pt_regs *ctx) { diff --git a/examples/lua/memleak.lua b/examples/lua/memleak.lua index 27023aaa..99c15225 100755 --- a/examples/lua/memleak.lua +++ b/examples/lua/memleak.lua @@ -26,7 +26,7 @@ struct alloc_info_t { BPF_HASH(sizes, u64); BPF_HASH(allocs, u64, struct alloc_info_t); -BPF_STACK_TRACE(stack_traces, 10240) +BPF_STACK_TRACE(stack_traces, 10240); int alloc_enter(struct pt_regs *ctx, size_t size) { diff --git a/examples/lua/offcputime.lua b/examples/lua/offcputime.lua index 7875dbb6..09c704f6 100755 --- a/examples/lua/offcputime.lua +++ b/examples/lua/offcputime.lua @@ -27,7 +27,7 @@ struct key_t { }; BPF_HASH(counts, struct key_t); BPF_HASH(start, u32); -BPF_STACK_TRACE(stack_traces, 10240) +BPF_STACK_TRACE(stack_traces, 10240); int oncpu(struct pt_regs *ctx, struct task_struct *prev) { u32 pid; diff --git a/examples/tracing/mallocstacks.py b/examples/tracing/mallocstacks.py index 36a0a7f4..0def220f 100644 --- a/examples/tracing/mallocstacks.py +++ b/examples/tracing/mallocstacks.py @@ -25,7 +25,7 @@ b = BPF(text=""" #include <uapi/linux/ptrace.h> BPF_HASH(calls, int); -BPF_STACK_TRACE(stack_traces, 1024) +BPF_STACK_TRACE(stack_traces, 1024); int alloc_enter(struct pt_regs *ctx, size_t size) { int key = stack_traces.get_stackid(ctx, diff --git a/examples/tracing/stacksnoop.py b/examples/tracing/stacksnoop.py index e4bbb517..7b3d0186 100755 --- a/examples/tracing/stacksnoop.py +++ b/examples/tracing/stacksnoop.py @@ -52,7 +52,7 @@ struct data_t { char comm[TASK_COMM_LEN]; }; -BPF_STACK_TRACE(stack_traces, 128) +BPF_STACK_TRACE(stack_traces, 128); BPF_PERF_OUTPUT(events); void trace_stack(struct pt_regs *ctx) { |