From 67ae605d4ba1c9ffb3b6f04124ae81b99f860d2e Mon Sep 17 00:00:00 2001 From: Song Liu Date: Thu, 1 Feb 2018 14:59:24 -0800 Subject: 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 --- examples/cpp/TCPSendStack.cc | 2 +- examples/lua/memleak.lua | 2 +- examples/lua/offcputime.lua | 2 +- examples/tracing/mallocstacks.py | 2 +- examples/tracing/stacksnoop.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') 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 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) { -- cgit v1.2.3