mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: German Gomez <german.gomez@arm.com>
To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
	acme@kernel.org
Cc: German Gomez <german.gomez@arm.com>,
	John Garry <john.garry@huawei.com>, Will Deacon <will@kernel.org>,
	Mathieu Poirier <mathieu.poirier@linaro.org>,
	Leo Yan <leo.yan@linaro.org>, Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 0/6] perf tools/arm64: Fix missing leaf-function callers in ARM64 when using "--call-graph=fp"
Date: Fri, 17 Dec 2021 15:45:14 +0000	[thread overview]
Message-ID: <20211217154521.80603-1-german.gomez@arm.com> (raw)

(This cset applies on top of [1])

Call-graphs on ARM64 using the option "--call-grah fp" are missing the
callers of the leaf functions. See [PATCH 6/6] for a before and after
after example using this cset.

[1] https://lore.kernel.org/all/20211207180653.1147374-1-german.gomez@arm.com/

---
Changes since v4
  - [PATCH 4/6] Apply Mark Rutland's comments.
  - [PATCH 6/6] Rewrite commit log.

Changes since v3
  - Only record LR register instead of all registers in [PATCH 1/6].
  - Introduce [PATCH 5/6] to refactor the SAMPL_REG macro.
  - Fix compilation issues on different platforms.

Alexandre Truong (5):
  perf tools: record ARM64 LR register automatically
  perf tools: add a mechanism to inject stack frames
  perf tools: Refactor script__setup_sample_type()
  perf tools: enable dwarf_callchain_users on arm64
  perf tools: determine if LR is the return address

German Gomez (1):
  perf tools: Refactor SMPL_REG macro in perf_regs.h

 tools/perf/arch/arm64/util/machine.c          |  7 +++
 tools/perf/builtin-record.c                   |  8 +++
 tools/perf/builtin-report.c                   |  4 +-
 tools/perf/builtin-script.c                   | 13 +---
 tools/perf/util/Build                         |  1 +
 .../util/arm64-frame-pointer-unwind-support.c | 63 +++++++++++++++++++
 .../util/arm64-frame-pointer-unwind-support.h | 10 +++
 tools/perf/util/callchain.c                   | 14 ++++-
 tools/perf/util/callchain.h                   |  4 +-
 tools/perf/util/machine.c                     | 50 ++++++++++++++-
 tools/perf/util/machine.h                     |  1 +
 tools/perf/util/perf_regs.h                   |  7 ++-
 12 files changed, 162 insertions(+), 20 deletions(-)
 create mode 100644 tools/perf/util/arm64-frame-pointer-unwind-support.c
 create mode 100644 tools/perf/util/arm64-frame-pointer-unwind-support.h

-- 
2.25.1


             reply	other threads:[~2021-12-17 15:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 15:45 German Gomez [this message]
2021-12-17 15:45 ` [PATCH v5 1/6] perf tools: record ARM64 LR register automatically German Gomez
2021-12-17 15:45 ` [PATCH v5 2/6] perf tools: add a mechanism to inject stack frames German Gomez
2021-12-17 15:45 ` [PATCH v5 3/6] perf tools: Refactor script__setup_sample_type() German Gomez
2021-12-17 15:45 ` [PATCH v5 4/6] perf tools: enable dwarf_callchain_users on arm64 German Gomez
2021-12-17 15:45 ` [PATCH v5 5/6] perf tools: Refactor SMPL_REG macro in perf_regs.h German Gomez
2021-12-17 15:45 ` [PATCH v5 6/6] perf arm64: inject missing frames if perf-record used "--call-graph=fp" German Gomez
2021-12-17 16:01   ` James Clark
2021-12-18 11:35     ` Arnaldo Carvalho de Melo
2021-12-21  9:32   ` Jiri Olsa
2021-12-21 14:17     ` Arnaldo Carvalho de Melo
2021-12-21 15:06       ` Jiri Olsa
2022-01-10 10:48     ` German Gomez

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=20211217154521.80603-1-german.gomez@arm.com \
    --to=german.gomez@arm.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=john.garry@huawei.com \
    --cc=jolsa@redhat.com \
    --cc=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=namhyung@kernel.org \
    --cc=will@kernel.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

all inboxes | Powered by JetHome®