Re: [PATCH v2] perf probe: fix module name matching

2016-08-08 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 06, 2016 at 07:30:45PM +0900, Masami Hiramatsu escreveu: > On Fri, 05 Aug 2016 15:22:36 +0300 > Konstantin Khlebnikov wrote: > > > If module is "module" then dso->short_name is "[module]". > > Substring comparing is't enough: "raid10" matches to "[raid1]". > > This patch also checks t

Re: [PATCH v2] perf probe: fix module name matching

2016-08-06 Thread Masami Hiramatsu
On Fri, 05 Aug 2016 15:22:36 +0300 Konstantin Khlebnikov wrote: > If module is "module" then dso->short_name is "[module]". > Substring comparing is't enough: "raid10" matches to "[raid1]". > This patch also checks terminating zero in module name. > > Signed-off-by: Konstantin Khlebnikov Looks

[PATCH v2] perf probe: fix module name matching

2016-08-05 Thread Konstantin Khlebnikov
If module is "module" then dso->short_name is "[module]". Substring comparing is't enough: "raid10" matches to "[raid1]". This patch also checks terminating zero in module name. Signed-off-by: Konstantin Khlebnikov --- tools/perf/util/probe-event.c |4 +++- 1 file changed, 3 insertions(+), 1