]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf record: Fix incorrect --user-regs comments
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Thu, 3 Apr 2025 06:08:10 +0000 (06:08 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 May 2025 17:10:56 +0000 (14:10 -0300)
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>
tools/perf/builtin-record.c

index 136c0172799a0980ddcedc5948dbc4f35e2f4e20..8059bce85a510b2dddc66f1b8b0013276840eddc 100644 (file)
@@ -3533,7 +3533,7 @@ static struct option __record_options[] = {
                    "sample selected machine registers on interrupt,"
                    " use '-I?' to list register names", parse_intr_regs),
        OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register",
-                   "sample selected machine registers on interrupt,"
+                   "sample selected machine registers in user space,"
                    " use '--user-regs=?' to list register names", parse_user_regs),
        OPT_BOOLEAN(0, "running-time", &record.opts.running_time,
                    "Record running/enabled time of read (:S) events"),