From 6720f2b7b681ebe6f7cc719d79c64c336cb13bfe Mon Sep 17 00:00:00 2001 From: Leon Hwang Date: Fri, 6 Dec 2024 21:13:13 +0800 Subject: [PATCH] bpflbr: Remove deprecated --dump-jited `--dump-jited` has been replaced with `-d`/`--disasm`, as `-d` is for disassembling both bpf progs and kernel addresses. Signed-off-by: Leon Hwang --- README.md | 1 - internal/bpflbr/flags.go | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 77ea221..e1d4d1d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/internal/bpflbr/flags.go b/internal/bpflbr/flags.go index 7b12279..e421fc8 100644 --- a/internal/bpflbr/flags.go +++ b/internal/bpflbr/flags.go @@ -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[:], PROGID: or 'i/id:' or 'p/pinned:' or 't/tag:' or 'n/name:' or '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")