mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Stephane Eranian <eranian@google.com>
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org,
	mingo@elte.hu, acme@redhat.com, jolsa@redhat.com,
	dsahern@gmail.com
Subject: Re: [PATCH v3 1/6] perf: add ability to sample machine state on interrupt
Date: Tue, 26 Aug 2014 17:23:21 +0900	[thread overview]
Message-ID: <87bnr7bqx2.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <1408317500-28146-2-git-send-email-eranian@google.com> (Stephane Eranian's message of "Mon, 18 Aug 2014 01:18:15 +0200")

Hi Stephane,

On Mon, 18 Aug 2014 01:18:15 +0200, Stephane Eranian wrote:
> Enable capture of interrupted machine state for each
> sample.
>
> Registers to sample are passed per event in the
> sample_regs_intr bitmask.
>
> To sample interrupt machine state, the
> PERF_SAMPLE_INTR_REGS must be passed in
> sample_type.
>
> The list of available registers is arch
> dependent and provided by asm/perf_regs.h
>
> Registers are laid out as u64 in the order
> of the bit order of sample_intr_regs.


[SNIP]
> @@ -334,6 +335,15 @@ struct perf_event_attr {
>  
>  	/* Align to u64. */
>  	__u32	__reserved_2;
> +	/*
> +	 * Defines set of regs to dump for each sample
> +	 * state captured on:
> +	 *  - precise = 0: PMU interrupt
> +	 *  - precise > 0: sampled instruction
> +	 *
> +	 * See asm/perf_regs.h for details.
> +	 */
> +	__u64	sample_regs_intr;
>  };

Hmm.. this increases the size of perf_event_attr.  It seems you need to
also define PERF_ATTR_SIZE_VER4 and update attr_file_abi_sizes.

Thanks,
Namhyung

  reply	other threads:[~2014-08-26  8:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-17 23:18 [PATCH v3 0/6] perf: add ability to sample interrupted machine state Stephane Eranian
2014-08-17 23:18 ` [PATCH v3 1/6] perf: add ability to sample machine state on interrupt Stephane Eranian
2014-08-26  8:23   ` Namhyung Kim [this message]
2014-08-17 23:18 ` [PATCH v3 2/6] perf/x86: add support for sampling PEBS machine state registers Stephane Eranian
2014-08-17 23:18 ` [PATCH v3 3/6] perf tools: add core support for sampling intr machine state regs Stephane Eranian
2014-08-17 23:18 ` [PATCH v3 4/6] perf/tests: add interrupted state sample parsing test Stephane Eranian
2014-08-17 23:18 ` [PATCH v3 5/6] perf record: add new -I option to sample interrupted machine state Stephane Eranian
2014-08-17 23:18 ` [PATCH v3 6/6] perf: improve perf_sample_data struct layout Stephane Eranian
2014-09-03  9:42 ` [PATCH v3 0/6] perf: add ability to sample interrupted machine state Stephane Eranian

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=87bnr7bqx2.fsf@sejong.aot.lge.com \
    --to=namhyung@kernel.org \
    --cc=acme@redhat.com \
    --cc=dsahern@gmail.com \
    --cc=eranian@google.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®