public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Jiri Olsa <jolsa@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Corey Ashford <cjashfor@linux.vnet.ibm.com>,
	David Ahern <dsahern@gmail.com>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Ingo Molnar <mingo@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>,
	Paul Mackerras <paulus@samba.org>,
	luto@amacapital.net, hpa@linux.intel.com
Subject: Re: [PATCH] perf: Add vm_ops->name call for mmap event name retrieval
Date: Mon, 14 Jul 2014 18:09:47 +0200	[thread overview]
Message-ID: <20140714160947.GB9918@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <1405353439-14211-1-git-send-email-jolsa@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

On Mon, Jul 14, 2014 at 05:57:19PM +0200, Jiri Olsa wrote:
> Following patch added another way to get mmap name:
>   78d683e mm, fs: Add vm_ops->name as an alternative to arch_vma_name

Please add to your .gitconfig:

[core]
        abbrev = 12

Also, you failed to CC the two people involved in that.

> The vdso vma mapping already switch to this and we no longer
> get vdso name via arch_vma_name function. Adding this way to
> the perf mmap event name retrieval code.
> 
> Caught this via perf test:
> 
>   $ sudo ./perf test -v 7
>    7: Validate PERF_RECORD_* events & perf_sample fields     :
>   --- start ---
> 
> SNIP
> 
>   PERF_RECORD_MMAP for [vdso] missing!
>   test child finished with 255
>   ---- end ----
>   Validate PERF_RECORD_* events & perf_sample fields: FAILED!
> 
> Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
> Cc: David Ahern <dsahern@gmail.com>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---
>  kernel/events/core.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/kernel/events/core.c b/kernel/events/core.c
> index 67e3b9c..4799676 100644
> --- a/kernel/events/core.c
> +++ b/kernel/events/core.c
> @@ -5266,6 +5266,12 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event)
>  
>  		goto got_name;
>  	} else {
> +		if (vma->vm_ops && vma->vm_ops->name) {
> +			name = (char *) vma->vm_ops->name(vma);
> +			if (name)
> +				goto cpy_name;
> +		}
> +
>  		name = (char *)arch_vma_name(vma);
>  		if (name)
>  			goto cpy_name;
> -- 
> 1.8.3.1
> 

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2014-07-14 16:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 15:57 [PATCH] perf: Add vm_ops->name call for mmap event name retrieval Jiri Olsa
2014-07-14 16:09 ` Peter Zijlstra [this message]
2014-07-14 16:13   ` Peter Zijlstra
2014-07-14 16:14   ` Andy Lutomirski
2014-07-14 16:17     ` Peter Zijlstra
2014-07-14 16:29       ` Andy Lutomirski
2014-07-14 16:34         ` Peter Zijlstra
2014-07-14 17:37   ` Jiri Olsa
2014-07-14 18:18     ` Peter Zijlstra
2014-07-16 19:21 ` [tip:perf/core] perf: Add vm_ops-> name " tip-bot for Jiri Olsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140714160947.GB9918@twins.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=acme@kernel.org \
    --cc=cjashfor@linux.vnet.ibm.com \
    --cc=dsahern@gmail.com \
    --cc=fweisbec@gmail.com \
    --cc=hpa@linux.intel.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox