From: Johannes Weiner Date: Wed, 24 Jun 2009 19:08:36 +0000 (+0200) Subject: perf record: Fix filemap pathname parsing in /proc/pid/maps X-Git-Tag: v2.6.31-rc2~30^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c64c5e4c47b6d28deb3cae8dfa07a93c2229dc;p=pandora-kernel.git perf record: Fix filemap pathname parsing in /proc/pid/maps Looking backward for the first space from the end of a line in /proc/pid/maps does not find the start of the pathname of the mapped file if it contains a space. Since the only slashes we have in this file occur in the (absolute!) pathname column of file mappings, looking for the first slash in a line is a safe method to find the name. Signed-off-by: Johannes Weiner Cc: Stefani Seibold Cc: Andrew Morton Cc: "Eric W. Biederman" Cc: Alexey Dobriyan Cc: Peter Zijlstra LKML-Reference: <20090624190835.GA25548@cmpxchg.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed