perf record: Always get text_poke events with --kcore option
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Jun 2022 11:33:12 +0000 (14:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jun 2022 14:54:21 +0000 (11:54 -0300)
commitf42c0ce573df79d1b8bd169008c994dcdd43585a
tree5f71ff2d84b8ee0ad11260d094bd0bc5fddfdbc5
parent924a221581db557f6c61b93fe5f25893a74bc3ea
perf record: Always get text_poke events with --kcore option

kcore provides a copy of the running kernel including any modified code.
A trace that benefits from that also benefits from text_poke events, so
enable them.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220610113316.6682-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c