Skip to content

perf tools: cleanups, fixes, updates

Robert Richter lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 7 repliesIn review
  2. v110 patches 15 repliesSuperseded

Changes in v2 from the cover letter

* Rebased version to latest tip/perf/core.

* Removed patches #1 and #2 as they are already applied.

* Dropping patch "perf report: Setup browser if stdout is a pipe", the patch did not properly handle ^C to terminate profiling.

* perf record throws an error now if buildids may not be generated, which can be disabled with the --no-buildid option.

* Prevent potential null pointer access to input_name in builtin-report.c. Needed due to removal of patch "perf report: Setup browser if stdout is a pipe"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf tools: Continue processing header on unknown featurestools/perf/util/header.c+1 -11 reply
2/7perf tools: Fix out-of-bound access to struct perf_sessiontools/perf/util/session.c tools/perf/util/session.h+2 -21 reply
3/7perf tool: Moving code in some filestools/perf/builtin-buildid-list.c tools/perf/util/header.c+264 -2671 reply
4/7perf report: Accept fifos as input filetools/perf/Documentation/perf-annotate.txt tools/perf/Documentation/perf-buildid-list.txt tools/perf/Documentation/perf-evlist.txt +16 more+51 -331 reply
5/7perf tool: Unify handling of features when writing feature sectiontools/perf/builtin-record.c tools/perf/util/header.c+12 -91 reply
6/7perf tools: Improve macros for struct feature_opstools/perf/util/header.c+22 -181 reply
7/7perf tools: Use for_each_set_bit() to iterate over feature flagstools/perf/util/header.c tools/perf/util/header.h tools/perf/util/include/linux/bitops.h+149 -931 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] perf tools: cleanups, fixes, updates

The patch set contains some cleanups, fixes and updates I found worth to implement during code review. Some patches can be applied independently.

v2:

* Rebased version to latest tip/perf/core.

* Removed patches #1 and #2 as they are already applied.

* Dropping patch "perf report: Setup browser if stdout is a pipe", the patch did not properly handle ^C to terminate profiling.

* perf record throws an error now if buildids may not be generated, which can be disabled with the --no-buildid option.

* Prevent potential null pointer access to input_name in builtin-report.c. Needed due to removal of patch "perf report: Setup browser if stdout is a pipe"

Robert Richter (7):
perf tools: Continue processing header on unknown features perf tools: Fix out-of-bound access to struct perf_session perf tool: Moving code in some files
perf report: Accept fifos as input file
perf tool: Unify handling of features when writing feature section perf tools: Improve macros for struct feature_ops
perf tools: Use for_each_set_bit() to iterate over feature flags

 tools/perf/Documentation/perf-annotate.txt     |    2 +-
 tools/perf/Documentation/perf-buildid-list.txt |    2 +-
 tools/perf/Documentation/perf-evlist.txt       |    2 +-
 tools/perf/Documentation/perf-kmem.txt         |    2 +-
 tools/perf/Documentation/perf-lock.txt         |    2 +-
 tools/perf/Documentation/perf-report.txt       |    2 +-
 tools/perf/Documentation/perf-sched.txt        |    2 +-
 tools/perf/Documentation/perf-script.txt       |    2 +-
 tools/perf/Documentation/perf-timechart.txt    |    2 +-
 tools/perf/builtin-annotate.c                  |    3 +-
 tools/perf/builtin-buildid-list.c              |   53 +-
 tools/perf/builtin-evlist.c                    |    2 +-
 tools/perf/builtin-kmem.c                      |    2 +-
 tools/perf/builtin-lock.c                      |    2 +-
 tools/perf/builtin-record.c                    |    7 +
 tools/perf/builtin-report.c                    |   13 +-
 tools/perf/builtin-sched.c                     |    2 +-
 tools/perf/builtin-script.c                    |    4 +-
 tools/perf/builtin-timechart.c                 |    4 +-
 tools/perf/util/header.c                       |  663 +++++++++++-------------
 tools/perf/util/header.h                       |    6 +-
 tools/perf/util/include/linux/bitops.h         |  118 +++++
 tools/perf/util/session.c                      |   15 +-
 tools/perf/util/session.h                      |    2 +-
 24 files changed, 496 insertions(+), 418 deletions(-)
Signature · 1 line
1.7.7