Skip to content

Commit 98545ea

Browse files
committed
trace.c: don't use force on showing trace
Signed-off-by: Menglong Dong <imagedong@tencent.com>
1 parent d58d05c commit 98545ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static int trace_check_force()
209209
pkt_args_t *pkt_args = &bpf_args->pkt;
210210
trace_args_t *args = &trace_ctx.args;
211211

212-
if (args->drop || args->force || args->monitor)
212+
if (args->drop || args->force || args->monitor || args->show_traces)
213213
return 0;
214214

215215
if (ARGS_ENABLED(bpf_args, pid) || ARGS_ENABLED(pkt_args, saddr) ||

0 commit comments

Comments
 (0)