podman

Форк
0
315 строк · 6.2 Кб
1
// +build !aix
2

3
// Copyright 2020 Power-Devops.com. All rights reserved.
4
// Use of this source code is governed by the license
5
// that can be found in the LICENSE file.
6
/*
7
Package perfstat is Go interface to IBM AIX libperfstat.
8
To use it you need AIX with installed bos.perf.libperfstat. You can check, if is installed using the following command:
9

10
	$ lslpp -L bos.perf.perfstat
11

12
The package is written using Go 1.14.7 and AIX 7.2 TL5. It should work with earlier TLs of AIX 7.2, but I
13
can't guarantee that perfstat structures in the TLs have all the same fields as the structures in AIX 7.2 TL5.
14

15
For documentation of perfstat on AIX and using it in programs refer to the official IBM documentation:
16
https://www.ibm.com/support/knowledgecenter/ssw_aix_72/performancetools/idprftools_perfstat.html
17
*/
18
package perfstat
19

20
import (
21
	"fmt"
22
	"time"
23
)
24

25
// EnableLVMStat() switches on LVM (logical volumes and volume groups) performance statistics.
26
// With this enabled you can use fields KBReads, KBWrites, and IOCnt
27
// in LogicalVolume and VolumeGroup data types.
28
func EnableLVMStat() {}
29

30
// DisableLVMStat() switchess of LVM (logical volumes and volume groups) performance statistics.
31
// This is the default state. In this case LogicalVolume and VolumeGroup data types are
32
// populated with informations about LVM structures, but performance statistics fields
33
// (KBReads, KBWrites, IOCnt) are empty.
34
func DisableLVMStat() {}
35

36
// CpuStat() returns array of CPU structures with information about
37
// logical CPUs on the system.
38
// IBM documentation:
39
//   * https://www.ibm.com/support/knowledgecenter/ssw_aix_72/performancetools/idprftools_perfstat_int_cpu.html
40
//   * https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/p_bostechref/perfstat_cpu.html
41
func CpuStat() ([]CPU, error) {
42
	return nil, fmt.Errorf("not implemented")
43
}
44

45
// CpuTotalStat() returns general information about CPUs on the system.
46
// IBM documentation:
47
//   * https://www.ibm.com/support/knowledgecenter/ssw_aix_72/performancetools/idprftools_perfstat_glob_cpu.html
48
//   * https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/p_bostechref/perfstat_cputot.html
49
func CpuTotalStat() (*CPUTotal, error) {
50
	return nil, fmt.Errorf("not implemented")
51
}
52

53
// CpuUtilStat() calculates CPU utilization.
54
// IBM documentation:
55
//   * https://www.ibm.com/support/knowledgecenter/ssw_aix_72/performancetools/idprftools_perfstat_cpu_util.html
56
//   * https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/p_bostechref/perfstat_cpu_util.html
57
func CpuUtilStat(intvl time.Duration) (*CPUUtil, error) {
58
	return nil, fmt.Errorf("not implemented")
59
}
60

61
func DiskTotalStat() (*DiskTotal, error) {
62
	return nil, fmt.Errorf("not implemented")
63
}
64

65
func DiskAdapterStat() ([]DiskAdapter, error) {
66
	return nil, fmt.Errorf("not implemented")
67
}
68

69
func DiskStat() ([]Disk, error) {
70
	return nil, fmt.Errorf("not implemented")
71
}
72

73
func DiskPathStat() ([]DiskPath, error) {
74
	return nil, fmt.Errorf("not implemented")
75
}
76

77
func FCAdapterStat() ([]FCAdapter, error) {
78
	return nil, fmt.Errorf("not implemented")
79
}
80

81
func PartitionStat() (*PartitionConfig, error) {
82
	return nil, fmt.Errorf("not implemented")
83
}
84

85
func LogicalVolumeStat() ([]LogicalVolume, error) {
86
	return nil, fmt.Errorf("not implemented")
87
}
88

89
func VolumeGroupStat() ([]VolumeGroup, error) {
90
	return nil, fmt.Errorf("not implemented")
91
}
92

93
func MemoryTotalStat() (*MemoryTotal, error) {
94
	return nil, fmt.Errorf("not implemented")
95
}
96

97
func MemoryPageStat() ([]MemoryPage, error) {
98
	return nil, fmt.Errorf("not implemented")
99
}
100

101
func PagingSpaceStat() ([]PagingSpace, error) {
102
	return nil, fmt.Errorf("not implemented")
103
}
104

105
func NetIfaceTotalStat() (*NetIfaceTotal, error) {
106
	return nil, fmt.Errorf("not implemented")
107
}
108

109
func NetBufferStat() ([]NetBuffer, error) {
110
	return nil, fmt.Errorf("not implemented")
111
}
112

113
func NetIfaceStat() ([]NetIface, error) {
114
	return nil, fmt.Errorf("not implemented")
115
}
116

117
func NetAdapterStat() ([]NetAdapter, error) {
118
	return nil, fmt.Errorf("not implemented")
119
}
120

121
func ProcessStat() ([]Process, error) {
122
	return nil, fmt.Errorf("not implemented")
123
}
124

125
func ThreadStat() ([]Thread, error) {
126
	return nil, fmt.Errorf("not implemented")
127
}
128

129
func Sysconf(name int32) (int64, error) {
130
	return 0, fmt.Errorf("not implemented")
131
}
132

133
func GetCPUImplementation() string {
134
	return ""
135
}
136

137
func POWER9OrNewer() bool {
138
	return false
139
}
140

141
func POWER9() bool {
142
	return false
143
}
144

145
func POWER8OrNewer() bool {
146
	return false
147
}
148

149
func POWER8() bool {
150
	return false
151
}
152

153
func POWER7OrNewer() bool {
154
	return false
155
}
156

157
func POWER7() bool {
158
	return false
159
}
160

161
func HasTransactionalMemory() bool {
162
	return false
163
}
164

165
func Is64Bit() bool {
166
	return false
167
}
168

169
func IsSMP() bool {
170
	return false
171
}
172

173
func HasVMX() bool {
174
	return false
175
}
176

177
func HasVSX() bool {
178
	return false
179
}
180

181
func HasDFP() bool {
182
	return false
183
}
184

185
func HasNxGzip() bool {
186
	return false
187
}
188

189
func PksCapable() bool {
190
	return false
191
}
192

193
func PksEnabled() bool {
194
	return false
195
}
196

197
func CPUMode() string {
198
	return ""
199
}
200

201
func KernelBits() int {
202
	return 0
203
}
204

205
func IsLPAR() bool {
206
	return false
207
}
208

209
func CpuAddCapable() bool {
210
	return false
211
}
212

213
func CpuRemoveCapable() bool {
214
	return false
215
}
216

217
func MemoryAddCapable() bool {
218
	return false
219
}
220

221
func MemoryRemoveCapable() bool {
222
	return false
223
}
224

225
func DLparCapable() bool {
226
	return false
227
}
228

229
func IsNUMA() bool {
230
	return false
231
}
232

233
func KernelKeys() bool {
234
	return false
235
}
236

237
func RecoveryMode() bool {
238
	return false
239
}
240

241
func EnhancedAffinity() bool {
242
	return false
243
}
244

245
func VTpmEnabled() bool {
246
	return false
247
}
248

249
func IsVIOS() bool {
250
	return false
251
}
252

253
func MLSEnabled() bool {
254
	return false
255
}
256

257
func SPLparCapable() bool {
258
	return false
259
}
260

261
func SPLparEnabled() bool {
262
	return false
263
}
264

265
func DedicatedLpar() bool {
266
	return false
267
}
268

269
func SPLparCapped() bool {
270
	return false
271
}
272

273
func SPLparDonating() bool {
274
	return false
275
}
276

277
func SmtCapable() bool {
278
	return false
279
}
280

281
func SmtEnabled() bool {
282
	return false
283
}
284

285
func VrmCapable() bool {
286
	return false
287
}
288

289
func VrmEnabled() bool {
290
	return false
291
}
292

293
func AmeEnabled() bool {
294
	return false
295
}
296

297
func EcoCapable() bool {
298
	return false
299
}
300

301
func EcoEnabled() bool {
302
	return false
303
}
304

305
func BootTime() (uint64, error) {
306
	return 0, fmt.Errorf("Not implemented")
307
}
308

309
func UptimeSeconds() (uint64, error) {
310
	return 0, fmt.Errorf("Not implemented")
311
}
312

313
func FileSystemStat() ([]FileSystem, error) {
314
	return nil, fmt.Errorf("Not implemented")
315
}
316

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.