This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [SAMPLE][PATCH 1/3]BTI: Binary Transport Interface for SystemTap


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]