Patch "perf tools mem: Fix -t store option for record command" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
perf tools mem: Fix -t store option for record command
to the 4.7-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-tools-mem-fix-t-store-option-for-record-command.patch
and it can be found in the queue-4.7 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
33da54fa86e29b87fe1e83bd0f15b4ef2be53ecbMon Sep 17 00:00:00 2001
From: Jiri Olsa <[email protected]>
Date: Thu, 11 Aug 2016 10:50:57 +0200
Subject: perf tools mem: Fix -t store option for record command
From: Jiri Olsa <[email protected]>
commit 33da54fa86e29b87fe1e83bd0f15b4ef2be53ecb upstream.
Michael reported 'perf mem -t store record' being broken. The reason is latest rework of this area:
commit acbe613e0c03 ("perf tools: Add monitored events array")
We don't mark perf_mem_events store record when -t store option is specified.
Committer notes:
Before:
# perf mem -t store record usleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.020 MB perf.data (7 samples) ] # perf evlist cycles:ppp #
After:
# perf mem -t store record usleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.020 MB perf.data (7 samples) ] # perf evlist cpu/mem-stores/P #
--- tools/perf/builtin-mem.c | 3 +++ 1 file changed, 3 insertions(+)
tools/perf/builtin-mem.c +3 -0
@@ -87,6 +87,9 @@ static int __cmd_record(int argc, constif (mem->operation &MEM_OPERATION_LOAD ) perf_mem_events[PERF_MEM_EVENTS__LOAD ].record = true; +if (mem->operation &MEM_OPERATION_STORE ) + perf_mem_events[PERF_MEM_EVENTS__STORE ].record = true; +if (perf_mem_events[PERF_MEM_EVENTS__LOAD ].record) rec_argv[i++] ="-W" ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/perf-tools-mem-fix-t-store-option-for-record-command.patch