Skip to content

Commit

Permalink
bpflbr: Remove deprecated --dump-jited
Browse files Browse the repository at this point in the history
`--dump-jited` has been replaced with `-d`/`--disasm`, as `-d` is for
disassembling both bpf progs and kernel addresses.

Signed-off-by: Leon Hwang <[email protected]>
  • Loading branch information
Asphaltt committed Dec 6, 2024
1 parent f84f481 commit 6720f2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Usage of bpflbr:
-d, --disasm disasm bpf prog or kernel function
-B, --disasm-bytes uint disasm bytes of kernel function, must not 0
--disasm-intel-syntax use Intel asm syntax for disasm, ATT asm syntax by default
--dump-jited dump native insn info of bpf prog, the one bpf prog must be provided by --prog (its function name will be ignored) [Deprecated, use --disasm instead]
-k, --kfunc strings kernel functions for bpflbr
-m, --mode string mode of lbr tracing, exit or entry (default "exit")
-o, --output string output file for the result, default is stdout
Expand Down
1 change: 0 additions & 1 deletion internal/bpflbr/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func ParseFlags() (*Flags, error) {
f.StringSliceVarP(&flags.progs, "prog", "p", nil, "bpf prog info for bpflbr in format PROG[,PROG,..], PROG: PROGID[:<prog function name>], PROGID: <prog ID> or 'i/id:<prog ID>' or 'p/pinned:<pinned file>' or 't/tag:<prog tag>' or 'n/name:<prog full name>' or 'pid:<pid>'; all bpf progs will be traced by default")
f.StringSliceVarP(&flags.kfuncs, "kfunc", "k", nil, "kernel functions for bpflbr")
f.StringVarP(&flags.outputFile, "output", "o", "", "output file for the result, default is stdout")
f.BoolVar(&flags.disasm, "dump-jited", false, "dump native insn info of bpf prog, the one bpf prog must be provided by --prog (its function name will be ignored) [Deprecated, use --disasm instead]")
f.BoolVarP(&flags.disasm, "disasm", "d", false, "disasm bpf prog or kernel function")
f.UintVarP(&flags.disasmBytes, "disasm-bytes", "B", 0, "disasm bytes of kernel function, must not 0")
f.BoolVar(&disasmIntelSyntax, "disasm-intel-syntax", false, "use Intel asm syntax for disasm, ATT asm syntax by default")
Expand Down

0 comments on commit 6720f2b

Please sign in to comment.