]> git.ipfire.org Git - thirdparty/linux.git/commit
perf trace: Don't change const char strings
authorArnaldo Carvalho de Melo <acme@kernel.org>
Thu, 11 Dec 2025 22:17:56 +0000 (19:17 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Dec 2025 12:30:37 +0000 (09:30 -0300)
commitc85eff00cf296c146a2b189166eaf85188cd1487
treecfa50dbc872c201691a2432bd66657b6dfe55597
parent45718bce7daf39c618188b70a52644bb5a2f968a
perf trace: Don't change const char strings

We got away with this so far but now with fedora 44 complaining about
the return value of strchr et all, lets use strdup for good measure.

Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20251211221756.96294-5-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c