summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/perfcount.h
blob: cafce4f604d745f9afcddf742dde94e6f8c4158d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/* header auto-generated by pidl */

#include <stdint.h>

#include "libcli/util/ntstatus.h"

#ifndef _HEADER_perfcount
#define _HEADER_perfcount

#define PERF_NO_INSTANCES	( -1 )
#define PERF_NO_UNIQUE_ID	( -1 )
#define PERF_SIZE_DWORD	( 0x00000000 )
#define PERF_SIZE_LARGE	( 0x00000100 )
#define PERF_SIZE_ZERO	( 0x00000200 )
#define PERF_SIZE_VARIABLE_LEN	( 0x00000300 )
#define PERF_TYPE_NUMBER	( 0x00000000 )
#define PERF_TYPE_COUNTER	( 0x00000400 )
#define PERF_TYPE_TEXT	( 0x00000800 )
#define PERF_TYPE_ZERO	( 0x00000C00 )
#define PERF_NUMBER_HEX	( 0x00000000 )
#define PERF_NUMBER_DECIMAL	( 0x00010000 )
#define PERF_NUMBER_DEC_1000	( 0x00020000 )
#define PERF_COUNTER_VALUE	( 0x00000000 )
#define PERF_COUNTER_RATE	( 0x00010000 )
#define PERF_COUNTER_FRACTION	( 0x00020000 )
#define PERF_COUNTER_BASE	( 0x00030000 )
#define PERF_COUNTER_ELAPSED	( 0x00040000 )
#define PERF_COUNTER_QUEUELEN	( 0x00050000 )
#define PERF_COUNTER_HISTOGRAM	( 0x00060000 )
#define PERF_COUNTER_PRECISION	( 0x00070000 )
#define PERF_TEXT_UNICODE	( 0x00000000 )
#define PERF_TEXT_ASCII	( 0x00010000 )
#define PERF_TIMER_TICK	( 0x00000000 )
#define PERF_TIMER_100NS	( 0x00100000 )
#define PERF_OBJECT_TIMER	( 0x00200000 )
#define PERF_DELTA_COUNTER	( 0x00400000 )
#define PERF_DELTA_BASE	( 0x00800000 )
#define PERF_INVERSE_COUNTER	( 0x01000000 )
#define PERF_MULTI_COUNTER	( 0x02000000 )
#define PERF_DISPLAY_NO_SUFFIX	( 0x00000000 )
#define PERF_DISPLAY_PER_SEC	( 0x10000000 )
#define PERF_DISPLAY_PERCENT	( 0x20000000 )
#define PERF_DISPLAY_SECONDS	( 0x30000000 )
#define PERF_DISPLAY_NOSHOW	( 0x40000000 )
#define PERF_DETAIL_NOVICE	( 100 )
#define PERF_DETAIL_ADVANCED	( 200 )
#define PERF_DETAIL_EXPERT	( 300 )
#define PERF_DETAIL_WIZARD	( 400 )
struct SYSTEMTIME {
	uint16_t year;
	uint16_t month;
	uint16_t dayofweek;
	uint16_t day;
	uint16_t hour;
	uint16_t minute;
	uint16_t second;
	uint16_t milliseconds;
};

struct PERF_COUNTER_DEFINITION {
	uint32_t ByteLength;
	uint32_t CounterNameTitleIndex;
	uint32_t CounterNameTitlePointer;
	uint32_t CounterHelpTitleIndex;
	uint32_t CounterHelpTitlePointer;
	uint32_t DefaultScale;
	uint32_t DetailLevel;
	uint32_t CounterType;
	uint32_t CounterSize;
	uint32_t CounterOffset;
}/* [public] */;

struct PERF_COUNTER_BLOCK {
	uint32_t ByteLength;
	uint8_t *data;
}/* [public] */;

struct PERF_INSTANCE_DEFINITION {
	uint32_t ByteLength;
	uint32_t ParentObjectTitleIndex;
	uint32_t ParentObjectTitlePointer;
	uint32_t UniqueID;
	uint32_t NameOffset;
	uint32_t NameLength;
	uint8_t *data;/* [unique] */
	struct PERF_COUNTER_BLOCK counter_data;
}/* [public] */;

struct PERF_OBJECT_TYPE {
	uint32_t TotalByteLength;
	uint32_t DefinitionLength;
	uint32_t HeaderLength;
	uint32_t ObjectNameTitleIndex;
	uint32_t ObjectNameTitlePointer;
	uint32_t ObjectHelpTitleIndex;
	uint32_t ObjectHelpTitlePointer;
	uint32_t DetailLevel;
	uint32_t NumCounters;
	uint32_t DefaultCounter;
	uint32_t NumInstances;
	uint32_t CodePage;
	uint64_t PerfTime;
	uint64_t PerfFreq;
	struct PERF_COUNTER_DEFINITION *counters;
	struct PERF_INSTANCE_DEFINITION *instances;
	struct PERF_COUNTER_BLOCK counter_data;
}/* [public] */;

struct PERF_DATA_BLOCK {
	uint16_t Signature[4];
	uint32_t LittleEndian;
	uint32_t Version;
	uint32_t Revision;
	uint32_t TotalByteLength;
	uint32_t HeaderLength;
	uint32_t NumObjectTypes;
	uint32_t DefaultObject;
	struct SYSTEMTIME SystemTime;
	uint32_t Padding;
	uint64_t PerfTime;
	uint64_t PerfFreq;
	uint64_t PerfTime100nSec;
	uint32_t SystemNameLength;
	uint32_t SystemNameOffset;
	uint8_t *data;/* [unique] */
	struct PERF_OBJECT_TYPE *objects;
}/* [public] */;

#endif /* _HEADER_perfcount */