Re: [PATCH -tip 6/7] perf bts trace: print function+offset

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Akihiro Nagai
Date: Monday, December 6, 2010 - 3:08 am

(2010/12/03 22:00), Peter Zijlstra wrote:
We have developed the coverage test tool and execution path analyzer using BTS
called "Btrax". It can show the executed/unexecuted source codes with color.
Please refer this slide about details of Btrax.
   http://lca2009.linux.org.au/slides/52.pdf

The purpose of 'perf bts' is to implement similar functions to Btrax.

And also, I'll try to reduce memory copies from kernel space to user,
because perf copies 3 times. But btrax does just one copy.
Please see the following benchmark results.

Test program: compile with -O0 option this source code
int main(void)
{
     int i;
     while(i++ < 100000000);
     return 0;
}

Execution Results:
Native:
# time ./a.out

real    0m0.349s
user    0m0.346s
sys     0m0.002s

Btrax:
(enabling BTS_OFF_OS flag for this benchmark)
(kernel 2.6.30 on RHEL 5.4)
# bt_collect_log -d log -c ./a.out
real    1m19.950s
user    0m14.783s
sys     0m40.655s

(trace data size: 1,537,307,064 bytes)

perf:
# time perf bts record ./a.out
Processed 0 events and LOST 5002!

Check IO/CPU overload!

  #  perf record: Captured and wrote 2704.231 MB perf.data (~118149662 samples)

real    2m1.885s
user    0m7.184s
sys     0m19.194s


Bench Mark Enviroment:
Native and perf: latest -tip kernel on Fedora14
Btrax: vanilla 2.6.30 on RHEL5.4

Core2Duo E6550  @2.33GHz
Mem DDR2 4GB


best regards,

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -tip 0/7] perf: Introduce bts sub commands, Akihiro Nagai, (Thu Dec 2, 8:58 pm)
[PATCH -tip 1/7] perf: add OPT_CALLBACK_DEFAULT_NOOPT, Akihiro Nagai, (Thu Dec 2, 8:58 pm)
[PATCH -tip 4/7] perf bts trace: print pid and command, Akihiro Nagai, (Thu Dec 2, 8:59 pm)
[PATCH -tip 6/7] perf bts trace: print function+offset, Akihiro Nagai, (Thu Dec 2, 9:00 pm)
[PATCH -tip 7/7] perf bts trace: add print all option, Akihiro Nagai, (Thu Dec 2, 9:00 pm)
Re: [PATCH -tip 1/7] perf: add OPT_CALLBACK_DEFAULT_NOOPT, Masami Hiramatsu, (Sun Dec 5, 7:23 pm)
Re: [PATCH -tip 6/7] perf bts trace: print function+offset, Frederic Weisbecker, (Sun Dec 5, 7:42 pm)
Re: [PATCH -tip 4/7] perf bts trace: print pid and command, Masami Hiramatsu, (Sun Dec 5, 8:16 pm)
Re: [PATCH -tip 6/7] perf bts trace: print function+offset, Masami Hiramatsu, (Sun Dec 5, 8:20 pm)
Re: [PATCH -tip 7/7] perf bts trace: add print all option, Masami Hiramatsu, (Sun Dec 5, 8:20 pm)
Re: [PATCH -tip 6/7] perf bts trace: print function+offset, Akihiro Nagai, (Mon Dec 6, 3:08 am)
[tip:perf/core] perf options: add OPT_CALLBACK_DEFAULT_NOOPT, tip-bot for Akihiro ..., (Mon Dec 6, 11:56 pm)