sigar-test 0.7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/NOTICE +117 -0
- data/README +2 -0
- data/Rakefile +105 -0
- data/bindings/SigarBuild.pm +301 -0
- data/bindings/SigarWrapper.pm +3025 -0
- data/bindings/ruby/extconf.rb +131 -0
- data/bindings/ruby/rbsigar.c +888 -0
- data/include/sigar.h +984 -0
- data/include/sigar_fileinfo.h +157 -0
- data/include/sigar_format.h +65 -0
- data/include/sigar_getline.h +18 -0
- data/include/sigar_log.h +80 -0
- data/include/sigar_private.h +429 -0
- data/include/sigar_ptql.h +53 -0
- data/include/sigar_util.h +197 -0
- data/src/os/aix/aix_sigar.c +2168 -0
- data/src/os/aix/sigar_os.h +73 -0
- data/src/os/darwin/Info.plist.in +27 -0
- data/src/os/darwin/darwin_sigar.c +3718 -0
- data/src/os/darwin/sigar_os.h +80 -0
- data/src/os/hpux/hpux_sigar.c +1361 -0
- data/src/os/hpux/sigar_os.h +49 -0
- data/src/os/linux/linux_sigar.c +2810 -0
- data/src/os/linux/sigar_os.h +82 -0
- data/src/os/solaris/get_mib2.c +321 -0
- data/src/os/solaris/get_mib2.h +127 -0
- data/src/os/solaris/kstats.c +181 -0
- data/src/os/solaris/procfs.c +97 -0
- data/src/os/solaris/sigar_os.h +224 -0
- data/src/os/solaris/solaris_sigar.c +2732 -0
- data/src/os/win32/peb.c +212 -0
- data/src/os/win32/sigar.rc.in +40 -0
- data/src/os/win32/sigar_os.h +685 -0
- data/src/os/win32/sigar_pdh.h +47 -0
- data/src/os/win32/win32_sigar.c +4109 -0
- data/src/sigar.c +2444 -0
- data/src/sigar_cache.c +253 -0
- data/src/sigar_fileinfo.c +815 -0
- data/src/sigar_format.c +696 -0
- data/src/sigar_getline.c +1849 -0
- data/src/sigar_ptql.c +1976 -0
- data/src/sigar_signal.c +216 -0
- data/src/sigar_util.c +1060 -0
- data/src/sigar_version.c.in +22 -0
- data/src/sigar_version_autoconf.c.in +22 -0
- data/version.properties +11 -0
- metadata +91 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2004, 2006 Hyperic, Inc.
|
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 SIGAR_PDH_H
|
18
|
+
#define SIGAR_PDH_H
|
19
|
+
|
20
|
+
/* performance data helpers */
|
21
|
+
|
22
|
+
#define PdhFirstObject(block) \
|
23
|
+
((PERF_OBJECT_TYPE *)((BYTE *) block + block->HeaderLength))
|
24
|
+
|
25
|
+
#define PdhNextObject(object) \
|
26
|
+
((PERF_OBJECT_TYPE *)((BYTE *) object + object->TotalByteLength))
|
27
|
+
|
28
|
+
#define PdhFirstCounter(object) \
|
29
|
+
((PERF_COUNTER_DEFINITION *)((BYTE *) object + object->HeaderLength))
|
30
|
+
|
31
|
+
#define PdhNextCounter(counter) \
|
32
|
+
((PERF_COUNTER_DEFINITION *)((BYTE *) counter + counter->ByteLength))
|
33
|
+
|
34
|
+
#define PdhGetCounterBlock(inst) \
|
35
|
+
((PERF_COUNTER_BLOCK *)((BYTE *) inst + inst->ByteLength))
|
36
|
+
|
37
|
+
#define PdhFirstInstance(object) \
|
38
|
+
((PERF_INSTANCE_DEFINITION *)((BYTE *) object + object->DefinitionLength))
|
39
|
+
|
40
|
+
#define PdhNextInstance(inst) \
|
41
|
+
((PERF_INSTANCE_DEFINITION *)((BYTE *)inst + inst->ByteLength + \
|
42
|
+
PdhGetCounterBlock(inst)->ByteLength))
|
43
|
+
|
44
|
+
#define PdhInstanceName(inst) \
|
45
|
+
((wchar_t *)((BYTE *)inst + inst->NameOffset))
|
46
|
+
|
47
|
+
#endif /* SIGAR_PDH_H */
|