Patch "perf script: Add missing separator for "-F ip,brstack" (and brstackoff)" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
perf script: Add missing separator for "-F ip,brstack" (and brstackoff)
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
perf-script-add-missing-separator-for-f-ip-brstack-and-brstackoff.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
e9516c0813aeb89ebd19ec0ed39fbfcd78b6ef3aMon Sep 17 00:00:00 2001
From: Mark Santaniello <[email protected]>
Date: Fri, 6 Oct 2017 01:07:22 -0700
Subject: perf script: Add missing separator for "-F ip,brstack" (and brstackoff)
From: Mark Santaniello <[email protected]>
commit e9516c0813aeb89ebd19ec0ed39fbfcd78b6ef3a upstream.
Prior to commit 55b9b50811ca ("perf script: Support -F brstack,dso and brstacksym,dso"), we were printing a space before the brstack data. It seems that this space was important. Without it, parsing is difficult.
Very sorry for the mistake.
Notice here how the "ip" and "brstack" run together:
$ perf script -F ip,brstack | head -n 1
22e18c40x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0 0x22e195d/0x22e1990/P/-/-/0 0x22e18e9/0x22e1943/P/-/-/0 0x22e1a69/0x22e18c0/P/-/-/0 0x22e19f7/0x22e1a20/P/-/-/0 0x22e1910/0x22e19ee/P/-/-/0 0x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0 0x22e195d/0x22e1990/P/-/-/0 0x22e18e9/0x22e1943/P/-/-/0 0x22e1a69/0x22e18c0/P/-/-/0 0x22e19f7/0x22e1a20/P/-/-/0 0x22e1910/0x22e19ee/P/-/-/0 0x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0After this diff, sanity is restored:
$ perf script -F ip,brstack | head -n 1
22e18c4 0x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0 0x22e195d/0x22e1990/P/-/-/0 0x22e18e9/0x22e1943/P/-/-/0 0x22e1a69/0x22e18c0/P/-/-/0 0x22e19f7/0x22e1a20/P/-/-/0 0x22e1910/0x22e19ee/P/-/-/0 0x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0 0x22e195d/0x22e1990/P/-/-/0 0x22e18e9/0x22e1943/P/-/-/0 0x22e1a69/0x22e18c0/P/-/-/0 0x22e19f7/0x22e1a20/P/-/-/0 0x22e1910/0x22e19ee/P/-/-/0 0x22e19e2/0x22e190b/P/-/-/0 0x22e19a1/0x22e19d0/P/-/-/0--- tools/perf/builtin-script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-script.c +2 -2
@@ -578,7 +578,7 @@ static void print_sample_brstack(structthread__find_addr_map (thread, sample->cpumode,MAP__FUNCTION , to, &alt); } -printf ("0x%" PRIx64, from); +printf (" 0x%" PRIx64, from);if (PRINT_FIELD (DSO )) {printf ("(" );map__fprintf_dsoname (alf.map, stdout);
@@ -673,7 +673,7 @@ static void print_sample_brstackoff(struif (alt.map && !alt.map->dso->adjust_symbols) to =map__map_ip (alt.map, to); -printf ("0x%" PRIx64, from); +printf (" 0x%" PRIx64, from);if (PRINT_FIELD (DSO )) {printf ("(" );map__fprintf_dsoname (alf.map, stdout);
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/perf-script-add-missing-separator-for-f-ip-brstack-and-brstackoff.patch