* [PATCH 0/2] perf misc cleanup
@ 2011-04-29 8:41 Lin Ming
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
2011-04-29 8:41 ` [PATCH 2/2] perf annotate: Remove duplicate header file Lin Ming
0 siblings, 2 replies; 9+ messages in thread
From: Lin Ming @ 2011-04-29 8:41 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: linux-kernel
Hi, Arnaldo
Could you take below 2 one-line patches?
[RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
[PATCH 2/2] perf annotate: Remove duplicate header file
Thanks,
Lin Ming
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-29 8:41 [PATCH 0/2] perf misc cleanup Lin Ming
@ 2011-04-29 8:41 ` Lin Ming
2011-04-29 9:44 ` Ingo Molnar
` (2 more replies)
2011-04-29 8:41 ` [PATCH 2/2] perf annotate: Remove duplicate header file Lin Ming
1 sibling, 3 replies; 9+ messages in thread
From: Lin Ming @ 2011-04-29 8:41 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: linux-kernel
pubname_callback_param::found should be initialized to 0 in fastpath lookup.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
tools/perf/util/probe-finder.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index a7c7145..3b9d0b8 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
.file = pp->file,
.cu_die = &pf->cu_die,
.sp_die = &pf->sp_die,
+ .found = 0,
};
struct dwarf_callback_param probe_param = {
.data = pf,
--
1.7.4.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] perf annotate: Remove duplicate header file
2011-04-29 8:41 [PATCH 0/2] perf misc cleanup Lin Ming
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
@ 2011-04-29 8:41 ` Lin Ming
1 sibling, 0 replies; 9+ messages in thread
From: Lin Ming @ 2011-04-29 8:41 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: linux-kernel
annotate.h was included twice, remove one.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
tools/perf/util/ui/browsers/annotate.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/tools/perf/util/ui/browsers/annotate.c b/tools/perf/util/ui/browsers/annotate.c
index 15633d6..4bb69e8 100644
--- a/tools/perf/util/ui/browsers/annotate.c
+++ b/tools/perf/util/ui/browsers/annotate.c
@@ -1,7 +1,6 @@
#include "../browser.h"
#include "../helpline.h"
#include "../libslang.h"
-#include "../../annotate.h"
#include "../../hist.h"
#include "../../sort.h"
#include "../../symbol.h"
--
1.7.4.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
@ 2011-04-29 9:44 ` Ingo Molnar
2011-04-29 13:18 ` Lin Ming
2011-04-29 17:33 ` Arnaldo Carvalho de Melo
2011-05-10 20:13 ` [tip:perf/core] " tip-bot for Lin Ming
2 siblings, 1 reply; 9+ messages in thread
From: Ingo Molnar @ 2011-04-29 9:44 UTC (permalink / raw)
To: Lin Ming; +Cc: Arnaldo Carvalho de Melo, linux-kernel
* Lin Ming <ming.m.lin@intel.com> wrote:
> pubname_callback_param::found should be initialized to 0 in fastpath lookup.
>
> Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> ---
> tools/perf/util/probe-finder.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> index a7c7145..3b9d0b8 100644
> --- a/tools/perf/util/probe-finder.c
> +++ b/tools/perf/util/probe-finder.c
> @@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
> .file = pp->file,
> .cu_die = &pf->cu_die,
> .sp_die = &pf->sp_die,
> + .found = 0,
Hm, why is this a 'misc cleanup'? If this field is uninitialized (it does
appear so) and we rely on the field then right now this is a bug and the fix
should be pushed to perf/urgent.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-29 9:44 ` Ingo Molnar
@ 2011-04-29 13:18 ` Lin Ming
0 siblings, 0 replies; 9+ messages in thread
From: Lin Ming @ 2011-04-29 13:18 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Arnaldo Carvalho de Melo, linux-kernel
On Fri, 2011-04-29 at 17:44 +0800, Ingo Molnar wrote:
> * Lin Ming <ming.m.lin@intel.com> wrote:
>
> > pubname_callback_param::found should be initialized to 0 in fastpath lookup.
> >
> > Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> > ---
> > tools/perf/util/probe-finder.c | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> > index a7c7145..3b9d0b8 100644
> > --- a/tools/perf/util/probe-finder.c
> > +++ b/tools/perf/util/probe-finder.c
> > @@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
> > .file = pp->file,
> > .cu_die = &pf->cu_die,
> > .sp_die = &pf->sp_die,
> > + .found = 0,
>
> Hm, why is this a 'misc cleanup'? If this field is uninitialized (it does
I should call it 'misc cleanup and fix'.
> appear so) and we rely on the field then right now this is a bug and the fix
> should be pushed to perf/urgent.
Indeed.
>
> Thanks,
>
> Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
2011-04-29 9:44 ` Ingo Molnar
@ 2011-04-29 17:33 ` Arnaldo Carvalho de Melo
2011-04-30 4:14 ` Lin Ming
2011-05-10 20:13 ` [tip:perf/core] " tip-bot for Lin Ming
2 siblings, 1 reply; 9+ messages in thread
From: Arnaldo Carvalho de Melo @ 2011-04-29 17:33 UTC (permalink / raw)
To: Lin Ming; +Cc: linux-kernel
Em Fri, Apr 29, 2011 at 08:41:57AM +0000, Lin Ming escreveu:
> pubname_callback_param::found should be initialized to 0 in fastpath lookup.
Is this really needed? Or is this just to stress it, for documentational
purposes?
> Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> ---
> tools/perf/util/probe-finder.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> index a7c7145..3b9d0b8 100644
> --- a/tools/perf/util/probe-finder.c
> +++ b/tools/perf/util/probe-finder.c
> @@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
> .file = pp->file,
> .cu_die = &pf->cu_die,
> .sp_die = &pf->sp_die,
> + .found = 0,
> };
> struct dwarf_callback_param probe_param = {
> .data = pf,
> --
> 1.7.4.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-29 17:33 ` Arnaldo Carvalho de Melo
@ 2011-04-30 4:14 ` Lin Ming
2011-05-10 13:43 ` Lin Ming
0 siblings, 1 reply; 9+ messages in thread
From: Lin Ming @ 2011-04-30 4:14 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: linux-kernel
On Sat, 2011-04-30 at 01:33 +0800, Arnaldo Carvalho de Melo wrote:
> Em Fri, Apr 29, 2011 at 08:41:57AM +0000, Lin Ming escreveu:
> > pubname_callback_param::found should be initialized to 0 in fastpath lookup.
>
>
> Is this really needed? Or is this just to stress it, for documentational
> purposes?
Yes, this is really needed.
It should be initialized to 0, and pubname_search_cb will set it to 1 if
the function is found.
>
> > Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> > ---
> > tools/perf/util/probe-finder.c | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> > index a7c7145..3b9d0b8 100644
> > --- a/tools/perf/util/probe-finder.c
> > +++ b/tools/perf/util/probe-finder.c
> > @@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
> > .file = pp->file,
> > .cu_die = &pf->cu_die,
> > .sp_die = &pf->sp_die,
> > + .found = 0,
> > };
> > struct dwarf_callback_param probe_param = {
> > .data = pf,
> > --
> > 1.7.4.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization
2011-04-30 4:14 ` Lin Ming
@ 2011-05-10 13:43 ` Lin Ming
0 siblings, 0 replies; 9+ messages in thread
From: Lin Ming @ 2011-05-10 13:43 UTC (permalink / raw)
To: Lin Ming; +Cc: Arnaldo Carvalho de Melo, linux-kernel
On Sat, Apr 30, 2011 at 12:14 PM, Lin Ming <ming.m.lin@intel.com> wrote:
> On Sat, 2011-04-30 at 01:33 +0800, Arnaldo Carvalho de Melo wrote:
>> Em Fri, Apr 29, 2011 at 08:41:57AM +0000, Lin Ming escreveu:
>> > pubname_callback_param::found should be initialized to 0 in fastpath lookup.
>>
>>
>> Is this really needed? Or is this just to stress it, for documentational
>> purposes?
>
> Yes, this is really needed.
>
> It should be initialized to 0, and pubname_search_cb will set it to 1 if
> the function is found.
ping ...
--
Lin Ming -- Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 9+ messages in thread
* [tip:perf/core] perf probe: Fix the missed parameter initialization
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
2011-04-29 9:44 ` Ingo Molnar
2011-04-29 17:33 ` Arnaldo Carvalho de Melo
@ 2011-05-10 20:13 ` tip-bot for Lin Ming
2 siblings, 0 replies; 9+ messages in thread
From: tip-bot for Lin Ming @ 2011-05-10 20:13 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, acme, ming.m.lin, tglx, mingo
Commit-ID: 2b348a77981227c6b64fb9cf19f7c711a6806bc9
Gitweb: http://git.kernel.org/tip/2b348a77981227c6b64fb9cf19f7c711a6806bc9
Author: Lin Ming <ming.m.lin@intel.com>
AuthorDate: Fri, 29 Apr 2011 08:41:57 +0000
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 10 May 2011 17:06:23 +0200
perf probe: Fix the missed parameter initialization
pubname_callback_param::found should be initialized to 0 in
fastpath lookup, the structure is on the stack and
uninitialized otherwise.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Link: http://lkml.kernel.org/r/1304066518-30420-2-git-send-email-ming.m.lin@intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
tools/perf/util/probe-finder.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index a7c7145..3b9d0b8 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
.file = pp->file,
.cu_die = &pf->cu_die,
.sp_die = &pf->sp_die,
+ .found = 0,
};
struct dwarf_callback_param probe_param = {
.data = pf,
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-05-10 20:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 8:41 [PATCH 0/2] perf misc cleanup Lin Ming
2011-04-29 8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
2011-04-29 9:44 ` Ingo Molnar
2011-04-29 13:18 ` Lin Ming
2011-04-29 17:33 ` Arnaldo Carvalho de Melo
2011-04-30 4:14 ` Lin Ming
2011-05-10 13:43 ` Lin Ming
2011-05-10 20:13 ` [tip:perf/core] " tip-bot for Lin Ming
2011-04-29 8:41 ` [PATCH 2/2] perf annotate: Remove duplicate header file Lin Ming
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.