b1f8ac453b
feat!: base template * first bit of templating * codeowners * linuxbased * restart * baseline project * add grpc api and basic integration test * startqueue * queueMsg * splitscripts * migrations * queueintegrationtest * gateway
20 lines
312 B
Go
20 lines
312 B
Go
//go:build aix
|
|
// +build aix
|
|
|
|
package perfstat
|
|
|
|
/*
|
|
#cgo LDFLAGS: -lperfstat
|
|
|
|
#include <libperfstat.h>
|
|
*/
|
|
import "C"
|
|
|
|
func EnableLVMStat() {
|
|
C.perfstat_config(C.PERFSTAT_ENABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil)
|
|
}
|
|
|
|
func DisableLVMStat() {
|
|
C.perfstat_config(C.PERFSTAT_DISABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil)
|
|
}
|