public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* optimize event register codes for LKET
@ 2006-11-10 15:14 Li Guanglei
  0 siblings, 0 replies; only message in thread
From: Li Guanglei @ 2006-11-10 15:14 UTC (permalink / raw)
  To: systemtap

Hi,
   I checked in some changes about the event register codes of LKET. 
The problem with the old codes is that register_sys_event() is a 
script function which make stap unable to optimize away the unused 
events register codes and global variables.

  Here is a comparison:

"stap -e 'probe addevent.* {}' -bMv" will reduce the Pass 4 time from 
136841real ms to 82107real ms, and the generated .ko size reduce from 
  4.2M to 3.8MB

And it will be more obvious, say, only a few events are traced, e.g, 
'stap -e "probe addevent.iosyscall.read.entry {}" -bMv' will reduce 
the Pass 4 time from 77616real ms to 8557real ms, and generated .ko 
size reduce from 1.6M to 585KB.

- Guanglei

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-10  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-10 15:14 optimize event register codes for LKET Li Guanglei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).