perf: A tools library
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | perf, debugfs: Remove a write-only variabletools/ | +5 | 0 replies | |
| 2/7 | perf: Honor parallel jobsMakefile tools/ | +3 | 0 replies | |
| 3/7 | perf: Correct Makefile.includetools/ | +3 | 0 replies | |
| 4/7 | perf: Carve out debugfstools/ tools/ tools/ +14 more | +131 | 0 replies | |
| 5/7 | perf: Extract perf-specific stuff from debugfs.ctools/ tools/ tools/ +3 more | +36 | 0 replies | |
| 6/7 | perf: Do not allow empty debugfs-dir optiontools/ | +4 | 0 replies | |
| 7/7 | tools/vm: Switch to liblk librarytools/ tools/ | +21 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] perf: A tools library
From: Borislav Petkov <[email protected]>
Hi,
so this is a pretty old intention which I had put on the backburner due to work-related stuff but here it is again. Basically we want to carve out stuff in tools/ which is generic enough to be shared between the different tools instead of replicating it among them.
And this is a first go at sharing the debugfs searching and setting code between perf and vm/page-types.c which had an older debugfs_mount et. al. version.
Please take a look at let me know whether the direction is ok. It builds and works fine here but I could've missed something so consider this RFC-ish of nature.
Thanks.
Borislav Petkov (7):
perf, debugfs: Remove a write-only variable
perf: Honor parallel jobs
perf: Correct Makefile.include
perf: Carve out debugfs
perf: Extract perf-specific stuff from debugfs.c
perf: Do not allow empty debugfs-dir option tools/vm: Switch to liblk library
Makefile | 4 +-
tools/Makefile | 16 ++++++-
tools/lib/lk/Makefile | 35 +++++++++++++++
tools/{perf/util => lib/lk}/debugfs.c | 49 ++++++++------------
tools/lib/lk/debugfs.h | 29 ++++++++++++
tools/perf/Makefile | 34 +++++++++++---
tools/perf/builtin-kvm.c | 2 +-
tools/perf/builtin-probe.c | 2 +-
tools/perf/perf.c | 12 +++--
tools/perf/tests/parse-events.c | 2 +-
tools/perf/util/debugfs.h | 12 -----
tools/perf/util/evlist.c | 2 +-
tools/perf/util/evsel.c | 2 +-
tools/perf/util/parse-events.c | 2 +-
tools/perf/util/probe-event.c | 2 +-
tools/perf/util/python-ext-sources | 1 -
tools/perf/util/setup.py | 3 +-
tools/perf/util/trace-event-info.c | 4 +-
tools/perf/util/util.c | 27 +++++++++++
tools/perf/util/util.h | 7 ++-
tools/scripts/Makefile.include | 6 ++-
tools/vm/Makefile | 17 +++++--
tools/vm/page-types.c | 85 +++--------------------------------
23 files changed, 201 insertions(+), 154 deletions(-)
create mode 100644 tools/lib/lk/Makefile
rename tools/{perf/util => lib/lk}/debugfs.c (68%)
create mode 100644 tools/lib/lk/debugfs.h
delete mode 100644 tools/perf/util/debugfs.hSignature · 1 line
1.8.1.3.535.ga923c31