This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [SAMPLE][PATCH 1/3]BTI: Binary Transport Interface for SystemTap
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Masami Hiramatsu <hiramatu at sdl dot hitachi dot co dot jp>
- Cc: systemtap at sources dot redhat dot com
- Date: 15 Dec 2005 07:46:23 -0500
- Subject: Re: [SAMPLE][PATCH 1/3]BTI: Binary Transport Interface for SystemTap
- References: <43A12782.5010604@sdl.hitachi.co.jp>
hiramatu wrote:
> [...] The systemtap script with BTI (*1) has about 1.4 micro secs
> of processing time. The systemtap script with ATI (*2) has about 4
> micro secs of processing time. [...]
> (*2)
> probe kernel.function("sys_gettimeofday") {
> log(string(get_tsc()) . string(get_cpu()) . string(pid()) . string(1)=
> .
> string(2). string(3). string(4). string(5));
> }
With the newer "print" statements, this expression is no longer state of the
art. How would this compare?
printf("%d %d %d %d %d %d %d\n", get_tsc() /* we have that? */,
get_cpu(), pid(), 1, 2, 3, 4, 5);
- FChE