* [PATCH] perf tools mem: Fix -t store option for record command
@ 2016-08-11 8:50 Jiri Olsa
2016-08-11 11:51 ` Arnaldo Carvalho de Melo
2016-08-16 18:13 ` [tip:perf/urgent] " tip-bot for Jiri Olsa
0 siblings, 2 replies; 6+ messages in thread
From: Jiri Olsa @ 2016-08-11 8:50 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: lkml, David Ahern, Ingo Molnar, Namhyung Kim, Peter Zijlstra,
Michael Petlan
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.
Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
Reported-by: Michael Petlan <mpetlan@redhat.com>
Link: http://lkml.kernel.org/n/tip-dbytnk7urdnnaw7ckdu1w7lq@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
---
tools/perf/builtin-mem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c
index d608a2c9e48c..d1ce29be560e 100644
--- a/tools/perf/builtin-mem.c
+++ b/tools/perf/builtin-mem.c
@@ -88,6 +88,9 @@ static int __cmd_record(int argc, const char **argv, struct perf_mem *mem)
if (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";
--
2.4.11
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] perf tools mem: Fix -t store option for record command
2016-08-11 8:50 [PATCH] perf tools mem: Fix -t store option for record command Jiri Olsa
@ 2016-08-11 11:51 ` Arnaldo Carvalho de Melo
2016-08-11 12:00 ` Jiri Olsa
2016-08-16 18:13 ` [tip:perf/urgent] " tip-bot for Jiri Olsa
1 sibling, 1 reply; 6+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-08-11 11:51 UTC (permalink / raw)
To: Jiri Olsa
Cc: lkml, David Ahern, Ingo Molnar, Namhyung Kim, Peter Zijlstra,
Michael Petlan
Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu:
> 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.
>
> Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
^^^^^^
I'll remove this extraneous bit
> Reported-by: Michael Petlan <mpetlan@redhat.com>
> Link: http://lkml.kernel.org/n/tip-dbytnk7urdnnaw7ckdu1w7lq@git.kernel.org
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> ---
> tools/perf/builtin-mem.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c
> index d608a2c9e48c..d1ce29be560e 100644
> --- a/tools/perf/builtin-mem.c
> +++ b/tools/perf/builtin-mem.c
> @@ -88,6 +88,9 @@ static int __cmd_record(int argc, const char **argv, struct perf_mem *mem)
> if (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";
>
> --
> 2.4.11
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] perf tools mem: Fix -t store option for record command
2016-08-11 11:51 ` Arnaldo Carvalho de Melo
@ 2016-08-11 12:00 ` Jiri Olsa
2016-08-11 14:46 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 6+ messages in thread
From: Jiri Olsa @ 2016-08-11 12:00 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: Jiri Olsa, lkml, David Ahern, Ingo Molnar, Namhyung Kim,
Peter Zijlstra, Michael Petlan
On Thu, Aug 11, 2016 at 08:51:38AM -0300, Arnaldo Carvalho de Melo wrote:
> Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu:
> > 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.
> >
> > Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
> ^^^^^^
> I'll remove this extraneous bit
well, checkpatch script complained about that when
I did not put it there.. but I don't mind ;-)
jirka
>
> > Reported-by: Michael Petlan <mpetlan@redhat.com>
> > Link: http://lkml.kernel.org/n/tip-dbytnk7urdnnaw7ckdu1w7lq@git.kernel.org
> > Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> > ---
> > tools/perf/builtin-mem.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c
> > index d608a2c9e48c..d1ce29be560e 100644
> > --- a/tools/perf/builtin-mem.c
> > +++ b/tools/perf/builtin-mem.c
> > @@ -88,6 +88,9 @@ static int __cmd_record(int argc, const char **argv, struct perf_mem *mem)
> > if (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";
> >
> > --
> > 2.4.11
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] perf tools mem: Fix -t store option for record command
2016-08-11 12:00 ` Jiri Olsa
@ 2016-08-11 14:46 ` Arnaldo Carvalho de Melo
2016-08-11 14:58 ` Jiri Olsa
0 siblings, 1 reply; 6+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-08-11 14:46 UTC (permalink / raw)
To: Jiri Olsa
Cc: Jiri Olsa, lkml, David Ahern, Ingo Molnar, Namhyung Kim,
Peter Zijlstra, Michael Petlan
Em Thu, Aug 11, 2016 at 02:00:32PM +0200, Jiri Olsa escreveu:
> On Thu, Aug 11, 2016 at 08:51:38AM -0300, Arnaldo Carvalho de Melo wrote:
> > Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu:
> > > 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.
> > >
> > > Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
> > ^^^^^^
> > I'll remove this extraneous bit
>
> well, checkpatch script complained about that when
> I did not put it there.. but I don't mind ;-)
Huh?
[acme@jouet linux]$ grep Fixes /wb/1.patch
Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
[acme@jouet linux]$ scripts/checkpatch.pl /wb/1.patch
total: 0 errors, 0 warnings, 9 lines checked
/wb/1.patch has no obvious style problems and is ready for submission.
[acme@jouet linux]$ vim /wb/1.patch
[acme@jouet linux]$ grep Fixes /wb/1.patch
Fixes: acbe613e0c03 ("perf tools: Add monitored events array")
[acme@jouet linux]$ scripts/checkpatch.pl /wb/1.patch
total: 0 errors, 0 warnings, 9 lines checked
/wb/1.patch has no obvious style problems and is ready for submission.
[acme@jouet linux]$
- Arnaldo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] perf tools mem: Fix -t store option for record command
2016-08-11 14:46 ` Arnaldo Carvalho de Melo
@ 2016-08-11 14:58 ` Jiri Olsa
0 siblings, 0 replies; 6+ messages in thread
From: Jiri Olsa @ 2016-08-11 14:58 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: Jiri Olsa, lkml, David Ahern, Ingo Molnar, Namhyung Kim,
Peter Zijlstra, Michael Petlan
On Thu, Aug 11, 2016 at 11:46:46AM -0300, Arnaldo Carvalho de Melo wrote:
> Em Thu, Aug 11, 2016 at 02:00:32PM +0200, Jiri Olsa escreveu:
> > On Thu, Aug 11, 2016 at 08:51:38AM -0300, Arnaldo Carvalho de Melo wrote:
> > > Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu:
> > > > 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.
> > > >
> > > > Fixes: commit acbe613e0c03 ("perf tools: Add monitored events array")
> > > ^^^^^^
> > > I'll remove this extraneous bit
> >
> > well, checkpatch script complained about that when
> > I did not put it there.. but I don't mind ;-)
>
> Huh?
ah that was the other line with the commit number,
the one with Fixes: tag is ok.. nevermind, sry for noise ;-)
jirka
---
[jolsa@krava linux-perf]$ ./scripts/checkpatch.pl 0001-perf-tools-mem-Fix-t-store-option-for-record-command.patch
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit acbe613e0c03 ("perf tools: Add monitored events array")'
#8:
acbe613e0c03 ("perf tools: Add monitored events array")
total: 1 errors, 0 warnings, 9 lines checked
^ permalink raw reply [flat|nested] 6+ messages in thread
* [tip:perf/urgent] perf tools mem: Fix -t store option for record command
2016-08-11 8:50 [PATCH] perf tools mem: Fix -t store option for record command Jiri Olsa
2016-08-11 11:51 ` Arnaldo Carvalho de Melo
@ 2016-08-16 18:13 ` tip-bot for Jiri Olsa
1 sibling, 0 replies; 6+ messages in thread
From: tip-bot for Jiri Olsa @ 2016-08-16 18:13 UTC (permalink / raw)
To: linux-tip-commits
Cc: dsahern, namhyung, a.p.zijlstra, tglx, mingo, jolsa, jolsa, acme,
linux-kernel, mpetlan, hpa
Commit-ID: 33da54fa86e29b87fe1e83bd0f15b4ef2be53ecb
Gitweb: http://git.kernel.org/tip/33da54fa86e29b87fe1e83bd0f15b4ef2be53ecb
Author: Jiri Olsa <jolsa@kernel.org>
AuthorDate: Thu, 11 Aug 2016 10:50:57 +0200
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 12 Aug 2016 14:39:48 -0300
perf tools mem: Fix -t store option for record command
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
#
Reported-by: Michael Petlan <mpetlan@redhat.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Fixes: acbe613e0c03 ("perf tools: Add monitored events array")
Link: http://lkml.kernel.org/r/1470905457-18311-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/builtin-mem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c
index d608a2c..d1ce29b 100644
--- a/tools/perf/builtin-mem.c
+++ b/tools/perf/builtin-mem.c
@@ -88,6 +88,9 @@ static int __cmd_record(int argc, const char **argv, struct perf_mem *mem)
if (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";
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-08-16 18:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 8:50 [PATCH] perf tools mem: Fix -t store option for record command Jiri Olsa
2016-08-11 11:51 ` Arnaldo Carvalho de Melo
2016-08-11 12:00 ` Jiri Olsa
2016-08-11 14:46 ` Arnaldo Carvalho de Melo
2016-08-11 14:58 ` Jiri Olsa
2016-08-16 18:13 ` [tip:perf/urgent] " tip-bot for Jiri Olsa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.