]> git.saurik.com Git - apple/hfs.git/blob - core/hfs_alloc_trace.h
hfs-556.60.1.tar.gz
[apple/hfs.git] / core / hfs_alloc_trace.h
1 //
2 // hfs_alloc_trace.h
3 // hfs
4 //
5 // Created by Chris Suter on 8/19/15.
6 //
7 //
8
9 #ifndef hfs_alloc_trace_h
10 #define hfs_alloc_trace_h
11
12 #include <sys/types.h>
13 #include <stdbool.h>
14
15 enum {
16 HFS_ALLOC_BACKTRACE_LEN = 4,
17 };
18
19 #pragma pack(push, 8)
20
21 struct hfs_alloc_trace_info {
22 int entry_count;
23 bool more;
24 struct hfs_alloc_info_entry {
25 uint64_t ptr;
26 uint64_t sequence;
27 uint64_t size;
28 uint64_t backtrace[HFS_ALLOC_BACKTRACE_LEN];
29 } entries[];
30 };
31
32 #pragma pack(pop)
33
34 #endif /* hfs_alloc_trace_h */