All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Stephane Eranian <eranian@google.com>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu,
	peterz@infradead.org, dsahern@gmail.com, acme@redhat.com,
	ak@linux.intel.com, jolsa@redhat.com, hughd@google.com
Subject: Re: [PATCH] perf: revert PERF_RECORD_MMAP2 support
Date: Wed, 16 Oct 2013 08:15:02 +0200	[thread overview]
Message-ID: <20131016061502.GB21109@gmail.com> (raw)
In-Reply-To: <20131015161843.GA17653@quad>


* Stephane Eranian <eranian@google.com> wrote:

> 
> This unified patch removes the following commits
> for both kernel and perf tool:
> 
> 6adb0b0 perf tools: Add default handler for mmap2 events
> 384c671 perf trace: Add mmap2 handler
> 5c5e854 perf tools: Add attr->mmap2 support
> d008d52 perf: Fix up MMAP2 buffer space reservation
> 13d7a24 perf: Add attr->mmap2 attribute to an event
> 
> The MMAP2 record extension is not quite ready for prime time.
> We have identified address space cases where mappings would
> not be reported properly when apps fiddled directly with clone()
> and VM_CLONE. We will revisit the patch series soon.
> 
> Signed-off-by: Stephane Eranian <eranian@google.com>
> ---
>  include/uapi/linux/perf_event.h |   24 +----------------
>  kernel/events/core.c            |   47 +++-----------------------------
>  tools/perf/builtin-annotate.c   |    1 -
>  tools/perf/builtin-inject.c     |   15 -----------
>  tools/perf/builtin-mem.c        |    1 -
>  tools/perf/builtin-report.c     |    1 -
>  tools/perf/builtin-script.c     |    1 -
>  tools/perf/builtin-trace.c      |    1 -
>  tools/perf/tests/perf-record.c  |   15 +++--------
>  tools/perf/util/build-id.c      |    1 -
>  tools/perf/util/event.c         |   56 +++++++++------------------------------
>  tools/perf/util/event.h         |   19 -------------
>  tools/perf/util/evsel.c         |   16 +++--------
>  tools/perf/util/header.c        |    3 ---
>  tools/perf/util/machine.c       |   53 +-----------------------------------
>  tools/perf/util/machine.h       |    1 -
>  tools/perf/util/map.c           |    8 +-----
>  tools/perf/util/map.h           |    8 ++----
>  tools/perf/util/session.c       |   27 +------------------
>  tools/perf/util/tool.h          |    1 -
>  20 files changed, 30 insertions(+), 269 deletions(-)

Ugh, that's way too large.

I thought the plan was to do a minimal revert. Is there really no way to 
do this in a (much) shorter fashion?

For example by a simple patch that returns -EINVAL (or -ENOSYS) if the new 
flag is used - i.e. behaves like the old kernel in that regard - but 
leaves the rest in place. (the 'rest' will hopefully be fixed for v3.13)

Tooling will then fall back as if it was an old kernel - i.e. no changes 
needed there at all. Right?

Hm?

	Ingo

  reply	other threads:[~2013-10-16  6:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 16:18 [PATCH] perf: revert PERF_RECORD_MMAP2 support Stephane Eranian
2013-10-16  6:15 ` Ingo Molnar [this message]
2013-10-16  8:28   ` Stephane Eranian
2013-10-16  9:30     ` Ingo Molnar

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=20131016061502.GB21109@gmail.com \
    --to=mingo@kernel.org \
    --cc=acme@redhat.com \
    --cc=ak@linux.intel.com \
    --cc=dsahern@gmail.com \
    --cc=eranian@google.com \
    --cc=hughd@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 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.