Skip to content

perf tools: Add -q/--quiet option to suppress messages (v1)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf utils: Add perf_quiet_option()tools/perf/util/debug.c tools/perf/util/debug.h+18 -00 replies
2/6perf utils: Check verbose flag properlytools/perf/util/dso.c tools/perf/util/hist.c tools/perf/util/pmu.c +2 more+13 -132 replies
3/6perf report: Add -q/--quiet optiontools/perf/Documentation/perf-report.txt tools/perf/builtin-report.c+20 -54 replies
4/6perf diff: Add -q/--quiet optiontools/perf/Documentation/perf-diff.txt tools/perf/builtin-diff.c+14 -40 replies
5/6perf annotate: Add -q/--quiet optiontools/perf/Documentation/perf-annotate.txt tools/perf/builtin-annotate.c tools/perf/util/annotate.c+9 -10 replies
6/6perf record: Honor quiet option properlytools/perf/builtin-record.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/6] perf tools: Add -q/--quiet option to suppress messages (v1)

Hello,

The -q/--quiet option is to suppress headers or messages (in stdio) so that it can be copied to other place if users just want to see the numbers. This was suggested by Arnaldo.

Note that this patchset only implements it in a couple of commands. If it seems ok, it can be applied to others later.

The code also is available at 'perf/quiet-v1' branch in my tree

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (6):
perf utils: Add perf_quiet_option()
perf utils: Check verbose flag properly
perf report: Add -q/--quiet option
perf diff: Add -q/--quiet option
perf annotate: Add -q/--quiet option
perf record: Honor quiet option properly

 tools/perf/Documentation/perf-annotate.txt |  4 ++++
 tools/perf/Documentation/perf-diff.txt     |  4 ++++
 tools/perf/Documentation/perf-report.txt   |  4 ++++
 tools/perf/builtin-annotate.c              |  4 ++++
 tools/perf/builtin-diff.c                  | 14 ++++++++++----
 tools/perf/builtin-record.c                |  3 +++
 tools/perf/builtin-report.c                | 21 ++++++++++++++++-----
 tools/perf/util/annotate.c                 |  2 +-
 tools/perf/util/debug.c                    | 17 +++++++++++++++++
 tools/perf/util/debug.h                    |  1 +
 tools/perf/util/dso.c                      |  2 +-
 tools/perf/util/hist.c                     |  6 +++---
 tools/perf/util/pmu.c                      |  8 ++++----
 tools/perf/util/sort.c                     |  8 ++++----
 tools/perf/util/symbol-elf.c               |  2 +-
 15 files changed, 77 insertions(+), 23 deletions(-)
Signature · 1 line
2.11.1