Debian Codegraph @

scripts/probe_perf/bench.stp

raw
1 global process_hits
2 %( @2 == "NO_STAP_SDT" %?
3 probe process(@1).function("*").label("BENCH_PERMUTE")
4 { process_hits <<< (get_cycles() - $cycles_start) }
5 %:
6 probe process(@1).mark("permute")
7 { process_hits <<< (get_cycles() - $arg1) }
8 %)
9
10 global tower_hits
11 %( @2 == "NO_STAP_SDT" %?
12 probe process(@1).function("*").label("BENCH_TOWER")
13 { tower_hits <<< (get_cycles() - $cycles_start) }
14 %:
15 probe process(@1).mark("tower")
16 { tower_hits <<< (get_cycles() - $arg1) }
17 %)
18
19 global try_hits
20 %( @2 == "NO_STAP_SDT" %?
21 probe process(@1).function("*").label("BENCH_TRY")
22 { try_hits <<< (get_cycles() - $cycles_start) }
23 %:
24 probe process(@1).mark("try")
25 { try_hits <<< (get_cycles() - $arg1) }
26 %)
27
28 global innerproduct_hits
29 %( @2 == "NO_STAP_SDT" %?
30 probe process(@1).function("*").label("BENCH_INNERPRODUCT")
31 { innerproduct_hits <<< (get_cycles() - $cycles_start) }
32 %:
33 probe process(@1).mark("innerproduct")
34 { innerproduct_hits <<< (get_cycles() - $arg1) }
35 %)
36
37 global trial_hits
38 %( @2 == "NO_STAP_SDT" %?
39 probe process(@1).function("*").label("BENCH_TRIAL")
40 { trial_hits <<< (get_cycles() - $cycles_start) }
41 %:
42 probe process(@1).mark("trial")
43 { trial_hits <<< (get_cycles() - $arg1) }
44 %)
45
46 global quicksort_hits
47 %( @2 == "NO_STAP_SDT" %?
48 probe process(@1).function("*").label("BENCH_QUICKSORT")
49 { quicksort_hits <<< (get_cycles() - $cycles_start) }
50 %:
51 probe process(@1).mark("quicksort")
52 { quicksort_hits <<< (get_cycles() - $arg1) }
53 %)
54
55 global bubble_hits
56 %( @2 == "NO_STAP_SDT" %?
57 probe process(@1).function("*").label("BENCH_BUBBLE")
58 { bubble_hits <<< (get_cycles() - $cycles_start) }
59 %:
60 probe process(@1).mark("bubble")
61 { bubble_hits <<< (get_cycles() - $arg1) }
62 %)
63
64 global insert_hits
65 %( @2 == "NO_STAP_SDT" %?
66 probe process(@1).function("*").label("BENCH_INSERT")
67 { insert_hits <<< (get_cycles() - $cycles_start) }
68 %:
69 probe process(@1).mark("insert")
70 { insert_hits <<< (get_cycles() - $arg1) }
71 %)
72
73 global fft_hits
74 %( @2 == "NO_STAP_SDT" %?
75 probe process(@1).function("*").label("BENCH_FFT")
76 { fft_hits <<< (get_cycles() - $cycles_start) }
77 %:
78 probe process(@1).mark("fft")
79 { fft_hits <<< (get_cycles() - $arg1) }
80 %)