public inbox for trinity@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: Jiri Slaby <jslaby@suse.cz>, trinity@vger.kernel.org
Subject: Re: [PATCH 1/3] use config.h in USE_* users
Date: Wed, 5 Jun 2013 15:18:57 -0400	[thread overview]
Message-ID: <20130605191857.GB24567@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1306051509060.7184@vincent-weaver-1.um.maine.edu>

On Wed, Jun 05, 2013 at 03:14:33PM -0400, Vince Weaver wrote:
 > On Tue, 4 Jun 2013, Jiri Slaby wrote:
 > 
 > > Even if I apply those three, I still see:
 > > syscalls/perf_event_open.c: In function 'setup_breakpoints':
 > > syscalls/perf_event_open.c:237: error: 'struct perf_event_attr' has no
 > > member named 'bp_type'
 > 
 > you must be using an older distro, as some of these features that are 
 > missing were added to perf_event_open() in 2.6.33.
 > 
 > the perf_event_open() syscall is a bit annoying as fields get added
 > pretty regularly so it's hard to write code that's backward compatible at 
 > the API level.  
 > 
 > The authors of the "perf" tool don't care because their code is in the 
 > kernel tree and they always have an up-to-date include file.  Other users, 
 > like libpfm4, PAPI, and my various tools have just given up and carry 
 > along our own copy of perf_event.h, which makes things easier in the long run.
 > 
 > I'm not sure what the trinity policy is here.  Is it better to have a 
 > really elaborate config-type interface for this?  There's at least 5 or 6 
 > different versions you'd have to check for to catch all the changes 
 > between 2.6.32 and current.

For "we don't care about out of tree compatibility" like this, carrying our
own copy of the header sounds like probably the best option.

	Dave

  reply	other threads:[~2013-06-05 19:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1370339304-26492-1-git-send-email-jslaby@suse.cz>
2013-06-04  9:50 ` [PATCH 1/3] use config.h in USE_* users Jiri Slaby
2013-06-05 19:14   ` Vince Weaver
2013-06-05 19:18     ` Dave Jones [this message]
2013-06-06 16:14       ` Vince Weaver
2013-06-06 16:17         ` Dave Jones
2013-06-08 15:51           ` Vince Weaver
2013-06-09  2:38             ` Vince Weaver

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=20130605191857.GB24567@redhat.com \
    --to=davej@redhat.com \
    --cc=jslaby@suse.cz \
    --cc=trinity@vger.kernel.org \
    --cc=vincent.weaver@maine.edu \
    /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