mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Ian Rogers <irogers@google.com>, Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	James Clark <james.clark@linaro.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-perf-users@vger.kernel.org
Subject: [PATCH v1 00/11] perf tools: Enhance namespace and chroot handling
Date: Fri, 23 Oct 2026 00:11:30 -0700	[thread overview]
Message-ID: <20261023071141.134149-1-namhyung@kernel.org> (raw)

Hello,

This patchset improves namespace and chroot handling with regards to
file access.  Basically it reads the information from the proc file
system but it's only meaningful when you run the perf command on the
same machine and the target thread is still alive.

Also some file types don't need to namespace and chroot translation
because they are located in a global directory and expected to be in
the same namespace and root directory with the perf command itself.

Thanks,
Namhyung


Namhyung Kim (11):
  perf tools: Add HEADER_BOOT_ID feature
  perf tools: Add perf_env__is_same_boot()
  perf tools: Add nsinfo__new_thread() to track tid
  perf tools: Defer /proc lookup until nsinfo is used
  perf tools: Verify thread status and mount namespace inode
  perf tools: Check thread liveness when accessing /proc
  perf tools: Handle chroot inside nsinfo__mountns_enter()
  perf tools: Export filename__read_build_id_ns()
  perf tools: Remove redundant chroot handling
  perf tools: Only enter mount namespace if necessary
  perf tools: Scope mount namespace entry in dso__load()

 .../Documentation/perf.data-file-format.txt   |   5 +
 tools/perf/builtin-inject.c                   |  13 +-
 tools/perf/builtin-trace.c                    |   2 +-
 tools/perf/util/build-id.c                    |   6 +-
 tools/perf/util/capstone.c                    |   6 +-
 tools/perf/util/dso.c                         |  41 +---
 tools/perf/util/dso.h                         |  36 ++-
 tools/perf/util/dsos.c                        |  17 +-
 tools/perf/util/env.c                         |  65 +++++
 tools/perf/util/env.h                         |   3 +
 tools/perf/util/header.c                      |  28 +++
 tools/perf/util/header.h                      |   1 +
 tools/perf/util/machine.c                     |  12 +-
 tools/perf/util/namespaces.c                  | 230 +++++++++++++++---
 tools/perf/util/namespaces.h                  |  12 +
 tools/perf/util/symbol.c                      |  51 ++--
 tools/perf/util/symbol.h                      |   3 +
 tools/perf/util/thread.c                      |  39 ++-
 tools/perf/util/thread.h                      |   7 +-
 tools/perf/util/util.c                        |  31 ---
 tools/perf/util/util.h                        |   2 -
 21 files changed, 436 insertions(+), 174 deletions(-)

-- 
2.56.0.257.gf7497c7d27-goog


             reply	other threads:[~2026-10-23  7:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  7:11 Namhyung Kim [this message]
2026-10-23  7:11 ` [PATCH v1 01/11] perf tools: Add HEADER_BOOT_ID feature Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 02/11] perf tools: Add perf_env__is_same_boot() Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 03/11] perf tools: Add nsinfo__new_thread() to track tid Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 04/11] perf tools: Defer /proc lookup until nsinfo is used Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 05/11] perf tools: Verify thread status and mount namespace inode Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 06/11] perf tools: Check thread liveness when accessing /proc Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 07/11] perf tools: Handle chroot inside nsinfo__mountns_enter() Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 08/11] perf tools: Export filename__read_build_id_ns() Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 09/11] perf tools: Remove redundant chroot handling Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 10/11] perf tools: Only enter mount namespace if necessary Namhyung Kim
2026-10-23  7:11 ` [PATCH v1 11/11] perf tools: Scope mount namespace entry in dso__load() 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=20261023071141.134149-1-namhyung@kernel.org \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --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

all inboxes | Powered by JetHome®