09 Dec, 2018

1 commit

  • Use dyn_event framework for kprobe events. This shows
    kprobe events on "tracing/dynamic_events" file.

    User can also define new events via tracing/dynamic_events.

    Link: http://lkml.kernel.org/r/154140855646.17322.6619219995865980392.stgit@devbox

    Reviewed-by: Tom Zanussi
    Tested-by: Tom Zanussi
    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     

11 Oct, 2018

3 commits

  • Add $argN special fetch variable for accessing function
    arguments. This allows user to trace the Nth argument easily
    at the function entry.

    Note that this returns most probably assignment of registers
    and stacks. In some case, it may not work well. If you need
    to access correct registers or stacks you should use perf-probe.

    Link: http://lkml.kernel.org/r/152465888632.26224.3412465701570253696.stgit@devbox

    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     
  • Add array type support for probe events.
    This allows user to get arraied types from memory address.
    The array type syntax is

    TYPE[N]

    Where TYPE is one of types (u8/16/32/64,s8/16/32/64,
    x8/16/32/64, symbol, string) and N is a fixed value less
    than 64.

    The string array type is a bit different from other types. For
    other base types, [1] is equal to
    (e.g. +0(%di):x32[1] is same as +0(%di):x32.) But string[1] is not
    equal to string. The string type itself represents "char array",
    but string array type represents "char * array". So, for example,
    +0(%di):string[1] is equal to +0(+0(%di)):string.

    Link: http://lkml.kernel.org/r/152465891533.26224.6150658225601339931.stgit@devbox

    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     
  • Add "symbol" type to probeevent, which is an alias of u32 or u64
    (depends on BITS_PER_LONG). This shows the result value in
    symbol+offset style. This type is only available with kprobe
    events.

    Link: http://lkml.kernel.org/r/152465882860.26224.14779072294412467338.stgit@devbox

    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     

23 Jul, 2018

2 commits


08 Mar, 2018

1 commit