Skip to content

Granulate perf v5.12 (v1)

Latest

Choose a tag to compare

@Jongy Jongy released this 27 Apr 16:42
· 237273 commits to granulate-perf since this release
perf inject: Keep previous cmdline

Force "perf inject" to write the cmdline it has read from the input file,
instead of writing its own cmdline. "perf inject" cmdline is hardly useful,
"perf record"s is what we care about.

Do note it's not exactly complete - I did not change write_cmdline() so
that one still writes readlink("/proc/self/exe") of "perf inject" as the
argv[0], and we drop the argv[0] we've read from the file. Unless you use
different "perf" binaries for "record" and "inject", this doesn't matter.

Signed-off-by: Yonatan Goldschmidt <yonatan.goldschmidt@granulate.io>