btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / kernel / system_profiler.h
blob1c2c7dae7969cb75b10d70450ef73dcd93506158
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KERNEL_SYSTEM_PROFILER_H
6 #define _KERNEL_SYSTEM_PROFILER_H
8 #include <sys/cdefs.h>
10 #include <OS.h>
12 #include "kernel_debug_config.h"
15 struct system_profiler_parameters;
18 __BEGIN_DECLS
20 #if SYSTEM_PROFILER
21 status_t start_system_profiler(size_t areaSize, uint32 stackDepth,
22 bigtime_t interval);
23 void stop_system_profiler();
24 #endif
26 status_t _user_system_profiler_start(
27 struct system_profiler_parameters* parameters);
28 status_t _user_system_profiler_next_buffer(size_t bytesRead,
29 uint64* _droppedEvents);
30 status_t _user_system_profiler_stop();
31 status_t _user_system_profiler_recorded(
32 struct system_profiler_parameters* parameters);
34 __END_DECLS
37 #endif /* _KERNEL_SYSTEM_PROFILER_H */