1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
#include "sys/sdt.h"
int my_global_var = 56;
static void call0(void)
{
STAP_PROBE(test, mark_z);
my_global_var++;
}
static void call1(int a)
{
STAP_PROBE1(test, mark_a, a);
}
static void call2(int a, int b)
{
STAP_PROBE2(test, mark_b, a, b);
}
static void call3(int a, int b, int c)
{
STAP_PROBE3(test, mark_c, a, b, c);
}
static void call4(int a, int b, int c, int d)
{
STAP_PROBE4(test, mark_d, a, b, c, d);
}
static void call5(int a, int b, int c, int d, int e)
{
STAP_PROBE5(test, mark_e, a, b, c, d, e);
}
static void call6(int a, int b, int c, int d, int e, int f)
{
STAP_PROBE6(test, mark_f, a, b, c, d, e, f);
}
static void call7(int a, int b, int c, int d, int e, int f, int g)
{
STAP_PROBE7(test, mark_g, a, b, c, d, e, f, g);
}
static void call8(int a, int b, int c, int d, int e, int f, int g, int h)
{
STAP_PROBE8(test, mark_h, a, b, c, d, e, f, g, h);
}
static void call9(int a, int b, int c, int d, int e, int f, int g, int h, int i)
{
STAP_PROBE9(test, mark_i, a, b, c, d, e, f, g, h, i);
}
static void call10(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
{
STAP_PROBE10(test, mark_j, a, b, c, d, e, f, g, h, i, j);
}
/* I CAN HAZ MOAR ARGS? */
#ifdef STAP_PROBE12
static void call11(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k)
{
STAP_PROBE11(test, mark_k, a, b, c, d, e, f, g, h, i, j, k);
}
static void call12(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l)
{
STAP_PROBE12(test, mark_l, a, b, c, d, e, f, g, h, i, j, k, l);
}
#endif
int
main (int argc, char **argv)
{
int a, b, c, d, e, f, g, h, i, j, k, l;
a = 1; b = 2; c = 3; d = 4; e = 5; f = 6; g = 7; h = 8; i = 9; j = 10; k = 11; l = 12;
call0();
call1(a);
call2(a, b);
call3(a, b, c);
call4(a, b, c, d);
call5(a, b, c, d, e);
call6(a, b, c, d, e, f);
call7(a, b, c, d, e, f, g);
call8(a, b, c, d, e, f, g, h);
call9(a, b, c, d, e, f, g, h, i);
call10(a, b, c, d, e, f, g, h, i, j);
#ifdef STAP_PROBE12
call11(a, b, c, d, e, f, g, h, i, j, k);
call12(a, b, c, d, e, f, g, h, i, j, k, l);
#else
(void)(k + l);
#endif
(void) argv;
(void) argc;
return 0;
}
|