1 /*
2     Copyright (c) 2005-2020 Intel Corporation
3 
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7 
8         http://www.apache.org/licenses/LICENSE-2.0
9 
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 */
16 
17 #ifndef _ITTNOTIFY_TYPES_H_
18 #define _ITTNOTIFY_TYPES_H_
19 
20 typedef enum ___itt_group_id
21 {
22     __itt_group_none      = 0,
23     __itt_group_legacy    = 1<<0,
24     __itt_group_control   = 1<<1,
25     __itt_group_thread    = 1<<2,
26     __itt_group_mark      = 1<<3,
27     __itt_group_sync      = 1<<4,
28     __itt_group_fsync     = 1<<5,
29     __itt_group_jit       = 1<<6,
30     __itt_group_model     = 1<<7,
31     __itt_group_splitter_min = 1<<7,
32     __itt_group_counter   = 1<<8,
33     __itt_group_frame     = 1<<9,
34     __itt_group_stitch    = 1<<10,
35     __itt_group_heap      = 1<<11,
36     __itt_group_splitter_max = 1<<12,
37     __itt_group_structure = 1<<12,
38     __itt_group_suppress = 1<<13,
39     __itt_group_arrays    = 1<<14,
40     __itt_group_all       = -1
41 } __itt_group_id;
42 
43 #pragma pack(push, 8)
44 
45 typedef struct ___itt_group_list
46 {
47     __itt_group_id id;
48     const char*    name;
49 } __itt_group_list;
50 
51 #pragma pack(pop)
52 
53 #define ITT_GROUP_LIST(varname) \
54     static __itt_group_list varname[] = {       \
55         { __itt_group_all,       "all"       }, \
56         { __itt_group_control,   "control"   }, \
57         { __itt_group_thread,    "thread"    }, \
58         { __itt_group_mark,      "mark"      }, \
59         { __itt_group_sync,      "sync"      }, \
60         { __itt_group_fsync,     "fsync"     }, \
61         { __itt_group_jit,       "jit"       }, \
62         { __itt_group_model,     "model"     }, \
63         { __itt_group_counter,   "counter"   }, \
64         { __itt_group_frame,     "frame"     }, \
65         { __itt_group_stitch,    "stitch"    }, \
66         { __itt_group_heap,      "heap"      }, \
67         { __itt_group_structure, "structure" }, \
68         { __itt_group_suppress,  "suppress"  }, \
69         { __itt_group_arrays,    "arrays"    }, \
70         { __itt_group_none,      NULL        }  \
71     }
72 
73 #endif /* _ITTNOTIFY_TYPES_H_ */
74