diff options
Diffstat (limited to 'tools/perf/builtin-list.c')
-rw-r--r-- | tools/perf/builtin-list.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index 9e7fdfcdd7ff..fed482adb039 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf/builtin-list.c @@ -163,11 +163,10 @@ static void default_print_event(void *ps, const char *topic, const char *pmu_nam } else fputc('\n', fp); - if (long_desc && print_state->long_desc) { - fprintf(fp, "%*s", 8, "["); - wordwrap(fp, long_desc, 8, pager_get_columns(), 0); - fprintf(fp, "]\n"); - } else if (desc && print_state->desc) { + if (long_desc && print_state->long_desc) + desc = long_desc; + + if (desc && (print_state->desc || print_state->long_desc)) { char *desc_with_unit = NULL; int desc_len = -1; @@ -528,7 +527,7 @@ int cmd_list(int argc, const char **argv) OPT_BOOLEAN('d', "desc", &default_ps.desc, "Print extra event descriptions. --no-desc to not print."), OPT_BOOLEAN('v', "long-desc", &default_ps.long_desc, - "Print longer event descriptions."), + "Print longer event descriptions and all similar PMUs with alphanumeric suffixes."), OPT_BOOLEAN(0, "details", &default_ps.detailed, "Print information on the perf event names and expressions used internally by events."), OPT_STRING('o', "output", &output_path, "file", "output file name"), |