[lkml]   [2009]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/4] perf tools: Add support for breakpoint events in perf tools

* Frederic Weisbecker <> wrote:

> Add the breakpoint events support with this new sysnopsis:
> mem:addr[:access]
> Where addr is a raw addr value in the kernel and access can be
> either [r][w][x]
> Example to profile tasklist_lock:
> $ grep tasklist_lock /proc/kallsyms
> ffffffff8189c000 D tasklist_lock
> $ perf record -e mem:0xffffffff8189c000:rw -a -f -c 1

would be nice to also accept a plain cut & paste of an address in hexa
without the 0x prefix, i.e.:
$ perf record -e mem:ffffffff8189c000:rw -a -f -c 1

plus perf stat gets surprised by this new event and prints 'unknown':

$ grep tasklist_lock /proc/kallsyms
ffffffff81802000 D tasklist_lock
$ perf stat -a -e mem:0xffffffff81802000 sleep 1

Performance counter stats for 'sleep 1':

64 unknown

1.000833173 seconds time elapsed


 \ /
  Last update: 2009-11-23 18:41    [W:0.053 / U:3.408 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site