Skip to contentSkip to conversation

perf c2c: Update usage for showing memory events

PATCH Applied Leo Yan 4 participants 4 messages Oct 11, 2020 – Oct 13, 2020 perf events

lore
Share & tools
lore

Leo Yan

author
#0 lore raw

PATCH 1/1 perf c2c: Update usage for showing memory events

Since commit b027cc6fdf1b ("perf c2c: Fix 'perf c2c record -e list' to show the default events used"), "perf c2c" tool can show the memory events properly, it's no reason to still suggest user to use the command "perf mem record -e list" for showing events.

This patch updates the usage for showing memory events with command "perf c2c record -e list".

---
 tools/perf/builtin-c2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-c2c.c +1 -1
index 5938b100eaf4..57bb6cce43e3 100644
@@ -2916,7 +2916,7 @@ static int perf_c2c__record(int argc, const char **argv)
 	bool event_set = false;
 	struct option options[] = {
 	OPT_CALLBACK('e', "event", &event_set, "event",
-		     "event selector. Use 'perf mem record -e list' to list available events",
+		     "event selector. Use 'perf c2c record -e list' to list available events",
 		     parse_record_events),
 	OPT_BOOLEAN('u', "all-user", &all_user, "collect only user level data"),
 	OPT_BOOLEAN('k', "all-kernel", &all_kernel, "collect only kernel level data"),
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Leo Yan

Since commit b027cc6fdf1b ("perf c2c: Fix 'perf c2c record -e list' to show the default events used"), "perf c2c" tool can show the memory events properly, it's no reason to still suggest user to use the command "perf mem record -e list" for showing events.

This patch updates the usage for showing memory events with command "perf c2c record -e list".

thanks,
jirka

Quoted 20 lines
---
 tools/perf/builtin-c2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-c2c.c +1 -1
index 5938b100eaf4..57bb6cce43e3 100644
@@ -2916,7 +2916,7 @@ static int perf_c2c__record(int argc, const char **argv)
 	bool event_set = false;
 	struct option options[] = {
 	OPT_CALLBACK('e', "event", &event_set, "event",
-		     "event selector. Use 'perf mem record -e list' to list available events",
+		     "event selector. Use 'perf c2c record -e list' to list available events",
 		     parse_record_events),
 	OPT_BOOLEAN('u', "all-user", &all_user, "collect only user level data"),
 	OPT_BOOLEAN('k', "all-kernel", &all_kernel, "collect only kernel level data"),
Signature · 1 line
2.17.1
reviewer Acked-by
#2 lore raw
Quoted 10 lines · Jiri Olsa
Quoted 8 lines · Leo Yan

Since commit b027cc6fdf1b ("perf c2c: Fix 'perf c2c record -e list' to show the default events used"), "perf c2c" tool can show the memory events properly, it's no reason to still suggest user to use the command "perf mem record -e list" for showing events.

This patch updates the usage for showing memory events with command "perf c2c record -e list".

Quoted 6 lines
Quoted 1 line

thanks,
jirka

Thanks,
Ian

Quoted 21 lines
Quoted 20 lines
---
 tools/perf/builtin-c2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-c2c.c +1 -2
index 5938b100eaf4..57bb6cce43e3 100644
@@ -2916,7 +2916,7 @@ static int perf_c2c__record(int argc, const char **argv)
      bool event_set = false;
      struct option options[] = {
      OPT_CALLBACK('e', "event", &event_set, "event",
-                  "event selector. Use 'perf mem record -e list' to list available events",
+                  "event selector. Use 'perf c2c record -e list' to list available events",
                   parse_record_events),
      OPT_BOOLEAN('u', "all-user", &all_user, "collect only user level data"),
      OPT_BOOLEAN('k', "all-kernel", &all_kernel, "collect only kernel level data"),
--

2.17.1

maintainer Applied
#3 lore raw

Em Mon, Oct 12, 2020 at 08:25:42AM -0700, Ian Rogers escreveu:

Quoted 11 lines · Jiri Olsa
Quoted 10 lines · Leo Yan
Quoted 8 lines

Since commit b027cc6fdf1b ("perf c2c: Fix 'perf c2c record -e list' to show the default events used"), "perf c2c" tool can show the memory events properly, it's no reason to still suggest user to use the command "perf mem record -e list" for showing events.

This patch updates the usage for showing memory events with command "perf c2c record -e list".

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

thanks,
jirka

Thanks, applied.

- Arnaldo