lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 2 Apr 2010 19:08:19 GMT
From:	tip-bot for Masami Hiramatsu <>
Subject: [tip:perf/core] perf probe: Fix not to return non-matched file

Commit-ID:  c9e385826d4f1ca5a72005ab8503598f791a8dc0
Author:     Masami Hiramatsu <>
AuthorDate: Fri, 2 Apr 2010 12:50:45 -0400
Committer:  Ingo Molnar <>
CommitDate: Fri, 2 Apr 2010 19:35:42 +0200

perf probe: Fix not to return non-matched file

Fix cu_find_realpath() not to return the last file path
if that is not matched to input pattern.

Signed-off-by: Masami Hiramatsu <>
Cc: Paul Mackerras <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Peter Zijlstra <>
Cc: Mike Galbraith <>
Cc: Frederic Weisbecker <>
Cc: systemtap <>
Cc: DLE <>
LKML-Reference: <20100402165045.23551.47780.stgit@...alhost6.localdomain6>
Signed-off-by: Ingo Molnar <>
 tools/perf/util/probe-finder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index db52ec2..b44132e 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -183,6 +183,8 @@ static const char *cu_find_realpath(Dwarf_Die *cu_die, const char *fname)
 		if (strtailcmp(src, fname) == 0)
+	if (i == nfiles)
+		return NULL;
 	return src;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists