1/*
2 Copyright (C) 2005-2019 Intel Corporation
3
4 SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
5*/
6
7#ifndef _ITTNOTIFY_TYPES_H_
8#define _ITTNOTIFY_TYPES_H_
9
10typedef enum ___itt_group_id
11{
12 __itt_group_none = 0,
13 __itt_group_legacy = 1<<0,
14 __itt_group_control = 1<<1,
15 __itt_group_thread = 1<<2,
16 __itt_group_mark = 1<<3,
17 __itt_group_sync = 1<<4,
18 __itt_group_fsync = 1<<5,
19 __itt_group_jit = 1<<6,
20 __itt_group_model = 1<<7,
21 __itt_group_splitter_min = 1<<7,
22 __itt_group_counter = 1<<8,
23 __itt_group_frame = 1<<9,
24 __itt_group_stitch = 1<<10,
25 __itt_group_heap = 1<<11,
26 __itt_group_splitter_max = 1<<12,
27 __itt_group_structure = 1<<12,
28 __itt_group_suppress = 1<<13,
29 __itt_group_arrays = 1<<14,
30 __itt_group_module = 1<<15,
31 __itt_group_all = -1
32} __itt_group_id;
33
34#pragma pack(push, 8)
35
36typedef struct ___itt_group_list
37{
38 __itt_group_id id;
39 const char* name;
40} __itt_group_list;
41
42#pragma pack(pop)
43
44#define ITT_GROUP_LIST(varname) \
45 static __itt_group_list varname[] = { \
46 { __itt_group_all, "all" }, \
47 { __itt_group_control, "control" }, \
48 { __itt_group_thread, "thread" }, \
49 { __itt_group_mark, "mark" }, \
50 { __itt_group_sync, "sync" }, \
51 { __itt_group_fsync, "fsync" }, \
52 { __itt_group_jit, "jit" }, \
53 { __itt_group_model, "model" }, \
54 { __itt_group_counter, "counter" }, \
55 { __itt_group_frame, "frame" }, \
56 { __itt_group_stitch, "stitch" }, \
57 { __itt_group_heap, "heap" }, \
58 { __itt_group_structure, "structure" }, \
59 { __itt_group_suppress, "suppress" }, \
60 { __itt_group_arrays, "arrays" }, \
61 { __itt_group_module, "module" }, \
62 { __itt_group_none, NULL } \
63 }
64
65#endif /* _ITTNOTIFY_TYPES_H_ */
66