mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
	Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [rfc][patch] perf,tools: Remove test_attr_* muck from perf.h
Date: Sun, 4 May 2014 13:20:29 +0200	[thread overview]
Message-ID: <20140504112029.GA1197@krava.brq.redhat.com> (raw)
In-Reply-To: <20140502115201.GI30445@twins.programming.kicks-ass.net>

On Fri, May 02, 2014 at 01:52:01PM +0200, Peter Zijlstra wrote:
> On Thu, May 01, 2014 at 08:35:05PM +0200, Jiri Olsa wrote:
> > On Thu, May 01, 2014 at 10:27:30AM +0200, Peter Zijlstra wrote:
> > > Hi,
> > > 
> > > I occasionally build the odd program against raw perf and use perf.h for
> > > this.
> > > 
> > > Now I find that no longer works because of:
> > > 
> > > 52502bf201a85 ("perf tests: Add framework for automated perf_event_attr tests")
> > > 
> > > So revert the hunk touching on perf.h.
> > 
> > But but but, then you'll brake attr tests
> > 
> > > 
> > > Also, it seems to be for snake shit only, and snakes stink, except on a
> > > plane :-)
> > 
> > wanna get to lwn quotes page, huh? ;)
> > 
> > any details about the breakage? maybe we could find some
> > way to make you happy and keep the snake shit in place
> 
> linux-2.6/tools/perf# gcc -o perf_bug perf_bug.c
> /tmp/cclObJsz.o: In function `sys_perf_event_open':
> perf_bug.c:(.text+0x48): undefined reference to `test_attr__enabled'
> perf_bug.c:(.text+0x72): undefined reference to `test_attr__open'
> collect2: error: ld returned 1 exit status
> 
> Initially perf.h was meant to have just the syscall wrapper and few
> system level defines (like the membars etc..)
> 
> But now its grown all kinds of gunk outside of that.
> 
> So ideally we'd split the thing into two files, one which is a
> stand-alone syscall wrapper + system utils things and one which includes
> the former and adds all the perf (tool, not kernel) gunk on.
> 
> I see all sorts of extern perf_{host,guest} things and util/target.h
> includes.. that all should definitely move elsewhere.

sounds good, I'll prepare something along those lines

jirka

      reply	other threads:[~2014-05-04 11:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01  8:27 Peter Zijlstra
2014-05-01 18:35 ` Jiri Olsa
2014-05-02 11:52   ` Peter Zijlstra
2014-05-04 11:20     ` Jiri Olsa [this message]

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=20140504112029.GA1197@krava.brq.redhat.com \
    --to=jolsa@redhat.com \
    --cc=acme@ghostprotocols.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /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

Powered by JetHome