Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf record: Fix incorrect --user-regs comments

The comment of "--user-regs" option is not correct, fix it.

"on interrupt," -> "in user space,"

Fixes: 84c417422798c897 ("perf record: Support direct --user-regs arguments")
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250403060810.196028-1-dapeng1.mi@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Dapeng Mi and committed by
Arnaldo Carvalho de Melo
a4a859eb 24bcc31f

+1 -1
+1 -1
tools/perf/builtin-record.c
··· 3533 3533 "sample selected machine registers on interrupt," 3534 3534 " use '-I?' to list register names", parse_intr_regs), 3535 3535 OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register", 3536 - "sample selected machine registers on interrupt," 3536 + "sample selected machine registers in user space," 3537 3537 " use '--user-regs=?' to list register names", parse_user_regs), 3538 3538 OPT_BOOLEAN(0, "running-time", &record.opts.running_time, 3539 3539 "Record running/enabled time of read (:S) events"),