Skip to content

Commit

Permalink
fix(pkg/cmd): escape bpftrace program in examples
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Fontana <[email protected]>
  • Loading branch information
fntlnz committed Feb 7, 2019
1 parent 6ff2330 commit 4689c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (

runExamples = `
# Count system calls using tracepoints on a specific node
%[1]s trace run node/kubernetes-node-emt8.c.myproject.internal -e 'kprobe:do_sys_open { printf("%s: %s\n", comm, str(arg1)) }'
%[1]s trace run node/kubernetes-node-emt8.c.myproject.internal -e 'kprobe:do_sys_open { printf("%%s: %%s\n", comm, str(arg1)) }'
# Execute a bpftrace program from file on a specific node
%[1]s trace run node/kubernetes-node-emt8.c.myproject.internal -f read.bt
Expand Down

0 comments on commit 4689c62

Please sign in to comment.