summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2014-07-26 14:12:42 -0700
committerAliaksey Kandratsenka <alk@tut.by>2014-07-26 14:12:42 -0700
commita12890df2519d254d1c497b8e0a65bb8fc9e1ab2 (patch)
tree304e23b3f54cdeb02842001cd70d2d4a4e846fc2
parentd5e36788d8bc626403dc020a86213cfc740ee73d (diff)
downloadgperftools-a12890df2519d254d1c497b8e0a65bb8fc9e1ab2.tar.gz
issue-635: allow whitespace in libraries paths
This applies change suggested by user mich...@sebesbefut.com
-rwxr-xr-xsrc/pprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pprof b/src/pprof
index 6e1c9cb..d42677c 100755
--- a/src/pprof
+++ b/src/pprof
@@ -4393,7 +4393,7 @@ sub ParseLibraries {
my $finish;
my $offset;
my $lib;
- if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(\S+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)$/i) {
+ if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(.+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)$/i) {
# Full line from /proc/self/maps. Example:
# 40000000-40015000 r-xp 00000000 03:01 12845071 /lib/ld-2.3.2.so
$start = HexExtend($1);