login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
7
Re: [PATCH 4/9 - v2][RFC] tracing: Move fields from event to class structure
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: [PATCH 4/9 - v2][RFC] tracing: Move fields from event to class structure
Date: Thursday, May 6, 2010 - 9:49 pm
On Mon, May 03, 2010 at 11:40:49PM -0400, Steven Rostedt wrote:
quoted text
> From: Steven Rostedt <srostedt@redhat.com> > > Move the defined fields from the event to the class structure. > Since the fields of the event are defined by the class they belong > to, it makes sense to have the class hold the information instead > of the individual events. The events of the same class would just > hold duplicate information. > > After this change the size of the kernel dropped another 8K: > > text data bss dec hex filename > 5788186 1337252 9351592 16477030 fb6b66 vmlinux.orig > 5774316 1306580 9351592 16432488 fabd68 vmlinux.reg > 5774503 1297492 9351592 16423587 fa9aa3 vmlinux.fields > > Although the text increased, this was mainly due to the C files > having to adapt to the change. This is a constant increase, where > new tracepoints will not increase the Text. But the big drop is > in the data size (as well as needed allocations to hold the fields). > This will give even more savings as more tracepoints are created. > > Note, if just TRACE_EVENT()s are used and not DECLARE_EVENT_CLASS() > with several DEFINE_EVENT()s, then the savings will be lost. But > we are pushing developers to consolidate events with DEFINE_EVENT() > so this should not be an issue. > > The kprobes define a unique class to every new event, but are dynamic > so it should not be a issue. > > The syscalls however have a single class but the fields for the individual > events are different. The syscalls use a metadata to define the > fields. I moved the fields list from the event to the metadata and > added a "get_fields()" function to the class. This function is used > to find the fields. For normal events and kprobes, get_fields() just > returns a pointer to the fields list_head in the class. For syscall > events, it returns the fields list_head in the metadata for the event. > > v2: Fixed the syscall fields. The syscall metadata needs a list > of fields for both enter and exit. > > Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> > Cc: Masami Hiramatsu <mhiramat@redhat.com> > Cc: Tom Zanussi <tzanussi@gmail.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Now I need to recover from my CPP headache before reviewing this set further ;) --
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 KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate