From: Namhyung Kim <namhyung@kernel.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>,
Ian Rogers <irogers@google.com>,
Kan Liang <kan.liang@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
linux-perf-users@vger.kernel.org,
Stephane Eranian <eranian@google.com>,
Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Subject: [PATCHSET 0/6] perf mem: Basic support for data type profiling (v1)
Date: Wed, 31 Jul 2024 16:54:59 -0700 [thread overview]
Message-ID: <20240731235505.710436-1-namhyung@kernel.org> (raw)
Hello,
As we added data type profiling, 'perf mem report' should support that
as well. This patches just added a couple of convenient options.
$ perf mem report -T -s mem
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 131 of event 'cpu/mem-loads,ldlat=30/P'
# Total weight : 18561
# Sort order : mem,type
#
# Overhead Samples Memory access Data Type
# ........ ............ ....................................... .........
#
14.84% 22 L1 hit (unknown)
12.02% 8 RAM hit (unknown)
7.68% 8 LFB/MAB hit (unknown)
6.29% 12 L1 hit (stack operation)
3.97% 5 LFB/MAB hit struct psi_group_cpu
3.69% 3 L1 hit struct
3.18% 3 LFB/MAB hit (stack operation)
2.89% 5 L3 hit (unknown)
2.58% 3 L1 hit unsigned int
2.31% 2 L1 hit struct psi_group_cpu
2.21% 2 LFB/MAB hit struct cfs_rq
2.19% 2 RAM hit struct sched_entity
2.16% 1 L1 hit struct task_struct
1.85% 3 L1 hit struct pcpu_hot
1.78% 1 RAM hit struct tss_struct
1.72% 1 LFB/MAB hit struct mm_struct
1.62% 2 L1 hit struct psi_group
...
The code is also available at 'perf/mem-type-v1' branch in
git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git
Thanks,
Namhyung
Namhyung Kim (6):
perf hist: Correct hist_entry->mem_info refcounts
perf mem: Free the allocated sort string
perf mem: Rework command option handling
perf tools: Add mode argument to sort_help()
perf mem: Add -s/--sort option
perf mem: Add -T/--data-type option to report subcommand
tools/perf/builtin-mem.c | 100 ++++++++++++++++++++++-------------
tools/perf/builtin-report.c | 4 +-
tools/perf/util/hist.c | 14 ++---
tools/perf/util/map_symbol.c | 18 +++++++
tools/perf/util/map_symbol.h | 3 ++
tools/perf/util/mem-info.c | 13 +++++
tools/perf/util/mem-info.h | 1 +
tools/perf/util/sort.c | 12 +++--
tools/perf/util/sort.h | 2 +-
9 files changed, 116 insertions(+), 51 deletions(-)
--
2.46.0.rc1.232.g9752f9e123-goog
next reply other threads:[~2024-07-31 23:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 23:54 Namhyung Kim [this message]
2024-07-31 23:55 ` [PATCH 1/6] perf hist: Correct hist_entry->mem_info refcounts Namhyung Kim
2024-07-31 23:55 ` [PATCH 2/6] perf mem: Free the allocated sort string Namhyung Kim
2024-08-01 15:20 ` Arnaldo Carvalho de Melo
2024-07-31 23:55 ` [PATCH 3/6] perf mem: Rework command option handling Namhyung Kim
2024-07-31 23:55 ` [PATCH 4/6] perf tools: Add mode argument to sort_help() Namhyung Kim
2024-07-31 23:55 ` [PATCH 5/6] perf mem: Add -s/--sort option Namhyung Kim
2024-07-31 23:55 ` [PATCH 6/6] perf mem: Add -T/--data-type option to report subcommand Namhyung Kim
2024-08-01 15:23 ` [PATCHSET 0/6] perf mem: Basic support for data type profiling (v1) Ian Rogers
2024-08-02 0:24 ` Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240731235505.710436-1-namhyung@kernel.org \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=atrajeev@linux.vnet.ibm.com \
--cc=eranian@google.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).