]> git.baikalelectronics.ru Git - kernel.git/commit
perf header: Add ability to keep feature sections
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 20 May 2022 13:24:00 +0000 (16:24 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 May 2022 13:11:01 +0000 (10:11 -0300)
commit0211ddd7935bb41733da48f42b21961c2428942e
tree5c5a638c9f1cd7d565e8be5828d192ce393a5071
parente8367e4f7daf9e089c1fac25b4be73202deb262d
perf header: Add ability to keep feature sections

Many feature sections should not be re-written during perf inject. In
preparation to support that, add callbacks that a tool can use to copy
a feature section from elsewhere. perf inject will use this facility to
copy features sections from the input file.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220520132404.25853-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c
tools/perf/util/header.h