All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Jiri Olsa <jolsa@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	Paul Mackerras <paulus@samba.org>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Oleg Nesterov <oleg@redhat.com>
Subject: Re: [PATCHv4] perf x86_64: Fix rsp register for system call fast path
Date: Wed, 03 Oct 2012 15:22:17 +0200	[thread overview]
Message-ID: <1349270537.7780.47.camel@twins> (raw)
In-Reply-To: <20121003131344.GC945@krava.brq.redhat.com>

On Wed, 2012-10-03 at 15:13 +0200, Jiri Olsa wrote:
> @@ -1190,8 +1191,8 @@ static inline void perf_sample_data_init(struct
> perf_sample_data *data,
>         data->raw  = NULL;
>         data->br_stack = NULL;
>         data->period = period;
> -       data->regs_user.abi = PERF_SAMPLE_REGS_ABI_NONE;
> -       data->regs_user.regs = NULL;
> +       /* Sets abi to PERF_SAMPLE_REGS_ABI_NONE. */
> +       memset(&data->regs_user, 0, sizeof(data->regs_user));
>         data->stack_user_size = 0;
>  } 

Hmm, this will slow down all events, regardless of whether they use any
of that stuff or not. Since the one user actually does something like:

  data->regs_user = *pt_regs;

except it does a memcpy() for some obscure reason, it really doesn't
matter what is in there when uninitialized, right?

  reply	other threads:[~2012-10-03 13:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 17:31 [PATCH] perf x86_64: Fix rsp register for system call fast path Jiri Olsa
2012-10-02 10:44 ` Peter Zijlstra
2012-10-02 14:58   ` [PATCHv2] " Jiri Olsa
2012-10-02 15:49     ` Frederic Weisbecker
2012-10-02 16:06       ` Jiri Olsa
2012-10-02 16:16         ` Frederic Weisbecker
2012-10-03 12:29           ` [PATCHv3] " Jiri Olsa
2012-10-03 12:35             ` Frederic Weisbecker
2012-10-03 13:13               ` [PATCHv4] " Jiri Olsa
2012-10-03 13:22                 ` Peter Zijlstra [this message]
2012-10-03 13:30                   ` Jiri Olsa
2012-10-04 10:38                     ` [PATH 0/2] perf: x86_64 rsp related changes Jiri Olsa
2012-10-04 10:38                       ` [PATCH 1/2] perf x86_64: Fix rsp register for system call fast path Jiri Olsa
2012-10-04 10:38                       ` [PATCH 2/2] perf: Simplify the sample's user regs/stack retrieval 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=1349270537.7780.47.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oleg@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.