From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765665AbZDIJ4t (ORCPT ); Thu, 9 Apr 2009 05:56:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765397AbZDIJzf (ORCPT ); Thu, 9 Apr 2009 05:55:35 -0400 Received: from hera.kernel.org ([140.211.167.34]:40714 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765405AbZDIJzd (ORCPT ); Thu, 9 Apr 2009 05:55:33 -0400 Date: Thu, 9 Apr 2009 09:54:56 GMT From: Peter Zijlstra To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, paulus@samba.org, hpa@zytor.com, mingo@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, paulus@samba.org, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu In-Reply-To: <20090409085524.601794134@chello.nl> References: <20090409085524.601794134@chello.nl> Subject: [tip:perfcounters/core] perf_counter: log full path names Message-ID: Git-Commit-ID: d3d21c412d8525eb2e208d990ab5eee5fb0fe03d X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Thu, 09 Apr 2009 09:54:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d3d21c412d8525eb2e208d990ab5eee5fb0fe03d Gitweb: http://git.kernel.org/tip/d3d21c412d8525eb2e208d990ab5eee5fb0fe03d Author: Peter Zijlstra AuthorDate: Thu, 9 Apr 2009 10:53:46 +0200 Committer: Ingo Molnar CommitDate: Thu, 9 Apr 2009 11:50:54 +0200 perf_counter: log full path names Impact: fix perf-report output for /home mounted binaries, etc. dentry_path() only provide path-names up to the mount root, which is unsuited for out purpose, use d_path() instead. Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: <20090409085524.601794134@chello.nl> Signed-off-by: Ingo Molnar --- kernel/perf_counter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 7efb7eb..7f9521c 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c @@ -2116,7 +2116,7 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event) name = strncpy(tmp, "//enomem", sizeof(tmp)); goto got_name; } - name = dentry_path(file->f_dentry, buf, PATH_MAX); + name = d_path(&file->f_path, buf, PATH_MAX); if (IS_ERR(name)) { name = strncpy(tmp, "//toolong", sizeof(tmp)); goto got_name;