Skip to content

Introduce --task-name and --fuzzy-name options in perf sched map

Madadi Vineeth Reddy linux-perf-users lkml 6 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 1 replyApplied
  2. v53 patches 6 repliesSuperseded
  3. v41 patch 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v31 patch2 repliesSuperseded
v21 patch3 repliesSuperseded
v11 patch6 repliesSuperseded

Changes in v6 from the cover letter

- Utilize strlist for simplified task matching. (Namhyung Kim)
- Include relevant symbols while printing row for sched-out. (Namhyung Kim)
- Rebase against perf-tools-next commit 608c3b1e612a ("perf install:
Don't propagate subdir to Documentation submake")
- Link to v5: https://lore.kernel.org/all/[email protected]/

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3perf sched map: Add task-name option to filter the output maptools/perf/Documentation/perf-sched.txt tools/perf/builtin-sched.c+117 -360 replies
2/3perf sched map: Add support for multiple task names using CSVtools/perf/Documentation/perf-sched.txt tools/perf/builtin-sched.c+30 -70 replies
3/3perf sched map: Add --fuzzy-name option for fuzzy matching in task namestools/perf/Documentation/perf-sched.txt tools/perf/builtin-sched.c+16 -70 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchAthira Rajeev
1/3Reviewed-and-tested-by
2/3Reviewed-and-tested-by
3/3Reviewed-and-tested-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/3] Introduce --task-name and --fuzzy-name options in perf sched map

This patch-set aims to reduce the amount of output printed on the terminal when using perf sched map, allowing users to focus only on the tasks of interest.

This helps in visualizing how a benchmark or a task is spread over the available CPUs while also knowing which CPUs are idle(.) and which are not(-). This will be more useful as number of CPUs increase.

Changelog:
=========
Changes in v6:
- Utilize strlist for simplified task matching. (Namhyung Kim)
- Include relevant symbols while printing row for sched-out. (Namhyung Kim)
- Rebase against perf-tools-next commit 608c3b1e612a ("perf install:
Don't propagate subdir to Documentation submake")
- Link to v5: https://lore.kernel.org/all/[email protected]/

Changes in v5:
- Split the changes into different commits. (Namhyung Kim)
- Rebase against perf-tools-next commit c7a5592e8e4d ("perf mem: Fix a segfault with NULL event->name")
- Link to v4: https://lore.kernel.org/all/[email protected]/

Changes in v4:
- Handle possible memory allocation failures. (Chen Yu)
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Print the sched-out timestamp as a row when using the --command-name option. (Namhyung Kim)
- Refactor the code.
- Rebase against perf-tools-next commit eae7044b67a6 ("perf hist: Honor symbol conf.skip_empty")
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Add support for giving multiple command-names in CSV. (Namhyung Kim)
- Add fuzzy name matching option. (Chen Yu)
- Add Reviewed-and-tested-by tag from Athira Rajeev.
- Rebase against perf-tools-next commit d2307fd4f989 ("perf maps: Add/use a sorted insert for fixup overlap and insert")
- Link to v1: https://lore.kernel.org/all/[email protected]/

Madadi Vineeth Reddy (3):
perf sched map: Add task-name option to filter the output map perf sched map: Add support for multiple task names using CSV perf sched map: Add --fuzzy-name option for fuzzy matching in task
names

 tools/perf/Documentation/perf-sched.txt |  10 ++
 tools/perf/builtin-sched.c              | 175 +++++++++++++++++++-----
 2 files changed, 149 insertions(+), 36 deletions(-)
Signature · 1 line
2.43.2