]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf env: Add helper to lazily compute the os_release
authorIan Rogers <irogers@google.com>
Tue, 2 Jun 2026 15:25:14 +0000 (08:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jun 2026 19:53:16 +0000 (16:53 -0300)
commitb34c7c147bff19722f729d10370f00850d477eac
tree76724fa431027becaa1c0a7f5d9f44aa597c9d98
parent0ff9718c266f9eb334674377501ccf37d8d351a4
perf env: Add helper to lazily compute the os_release

In live mode the os_release isn't being initialized, make a lazy
initialization helper that assumes when the os_release isn't
initialized this is live mode.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Honglei Wang <jameshongleiwang@126.com>
Cc: Jan Polensky <japo@linux.ibm.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data-convert-bt.c
tools/perf/util/data-convert-json.c
tools/perf/util/env.c
tools/perf/util/env.h
tools/perf/util/header.c
tools/perf/util/symbol.c