X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=benchmark%2Fbenchmark.h;h=bbdadbbd8080530a49856522691befa133375d21;hb=768102358c0646342496b2b07b4518e0d5258b6f;hp=6232dee8c51aa46f87a97086496248c005d3878f;hpb=b25a886891f7172c0abb189ac71bf2bf9b40ec76;p=lttng-tools.git diff --git a/benchmark/benchmark.h b/benchmark/benchmark.h index 6232dee8c..bbdadbbd8 100644 --- a/benchmark/benchmark.h +++ b/benchmark/benchmark.h @@ -27,14 +27,25 @@ #define RESULTS_FILE_NAME "/tmp/lttng-bench-results.txt" -void benchmark_print_boot_results(void); - -#define record_cycles(name) \ - time_##name = get_cycles(); +extern FILE *fp; + +void bench_init(void); +void bench_close(void); +void bench_print_boot_process(void); +void bench_print_ust_register(void); +void bench_print_ust_unregister(void); +void bench_print_ust_notification(void); +double bench_get_create_session(void); +double bench_get_destroy_session(void); + +#define record_cycles(name) \ + do { \ + time_##name = get_cycles(); \ + } while (0) -#define tracepoint(name, args...) \ - do { \ - record_cycles(name); \ +#define tracepoint(name, args...) \ + do { \ + record_cycles(name); \ } while (0) #endif /* _BENCHMARK_H */