login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
7
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace registering
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace registering
Date: Friday, May 7, 2010 - 1:03 pm
On Fri, May 07, 2010 at 03:08:25PM -0400, Steven Rostedt wrote:
quoted text
> On Fri, 2010-05-07 at 20:01 +0200, Frederic Weisbecker wrote: > > On Fri, May 07, 2010 at 10:54:38AM -0400, Mathieu Desnoyers wrote: > > > The second is this extra parameter passed whether or not it is needed. > > And although we suppose it is safe, I don't feel comfortable with it. > > So if we can find a more proper way to avoid it, I'm all for it. > > Now I'm making the extra parameter mandatory for all tracepoint > probes. ;-) > > But this time, it will be at the start not the end. > > void probe(void *data, proto); > > > Unfortunately we can't avoid it. In order to remove the extra code > (registering and unregistering) and even share the probe among several > events, we need a way to pass the data to the probe to let the probe > know what event it is dealing with (to put in the event id into the > buffer, to let the tracer output code know what event this data is for). > > The current method is that only the proto that the tracepoint uses is > passed to the probe. This gives us no way to add any more information. > > This new method allows data to be assigned at probe register, and the > probe gets this data as the first parameter. > > The register_* functions will still do typechecking of the probes, they > just add the "void *" at the beginning. > > Actually, here is a place that I can see where Mathieu's check does come > in handy. If we add the check test to each probe, and the tracepoint > proto changes, it will flag it. > > Mathieu, you've been explaining this wrong ;-) > > I'm not worried about changes to ftrace.h breaking things. I'm worried > about changes to tracepoint.h breaking ftrace.h. This is where your > check comes in. As I change the void *data from the end to the start, > I'm nervous about catching all the probes that are registered this way. > (ftrace events, syscalls, kprobes, and perf)
Yeah right, I see the point. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/9 - v2][RFC] tracing: Lowering the footprint of T ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 1/9 - v2][RFC] tracing: Create class struct for events
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 2/9 - v2][RFC] tracing: Let tracepoints have data p ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 3/9 - v2][RFC] tracing: Remove per event trace regi ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 4/9 - v2][RFC] tracing: Move fields from event to c ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 5/9 - v2][RFC] tracing: Move raw_init from events t ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 6/9 - v2][RFC] tracing: Allow events to share their ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 7/9 - v2][RFC] tracing: Move print functions into e ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 8/9 - v2][RFC] tracing: Remove duplicate id informa ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
[PATCH 9/9 - v2][RFC] tracing: Combine event filter_active ...
, Steven Rostedt
, (Mon May 3, 8:40 pm)
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ...
, Frederic Weisbecker
, (Thu May 6, 8:52 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Frederic Weisbecker
, (Thu May 6, 9:20 pm)
Re: [PATCH 1/9 - v2][RFC] tracing: Create class struct for ...
, Frederic Weisbecker
, (Thu May 6, 9:21 pm)
Re: [PATCH 4/9 - v2][RFC] tracing: Move fields from event ...
, Frederic Weisbecker
, (Thu May 6, 9:49 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Li Zefan
, (Fri May 7, 1:20 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Steven Rostedt
, (Fri May 7, 5:42 am)
Re: [PATCH 4/9 - v2][RFC] tracing: Move fields from event ...
, Steven Rostedt
, (Fri May 7, 5:57 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Steven Rostedt
, (Fri May 7, 5:59 am)
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ...
, Steven Rostedt
, (Fri May 7, 7:09 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Mathieu Desnoyers
, (Fri May 7, 7:54 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Steven Rostedt
, (Fri May 7, 8:12 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Mathieu Desnoyers
, (Fri May 7, 8:31 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Steven Rostedt
, (Fri May 7, 8:43 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Frederic Weisbecker
, (Fri May 7, 11:01 am)
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ...
, Frederic Weisbecker
, (Fri May 7, 11:06 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Steven Rostedt
, (Fri May 7, 12:08 pm)
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ...
, Steven Rostedt
, (Fri May 7, 12:10 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Frederic Weisbecker
, (Fri May 7, 1:03 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ...
, Mathieu Desnoyers
, (Fri May 7, 1:58 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate