Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates > by-pkgid > fe7c341633b7d979ab8178b22304d6b5 > files > 195

systemtap-1.3-1.1.mga1.i586.rpm

#! /usr/bin/env stap

# When the output of this script is fed to stapgraph, it produces a
# mousable event line with events at each call of interest. When the
# event is hovered over, the backtrace is displayed in stapgraph.

probe begin
{
    printf("%%DataSet:call 75 ff0000 discreet\n")
    printf("call %%Title:Calls to %s\n", @2)
    printf ("call %%XAxisTitle:Time\n")
    printf ("%%LineEnd:0\n")
}

probe process(@1).function(@2).call {
    printf("call %d ", gettimeofday_ms())
    print_ubacktrace_brief();
    printf("%c", 0)
}