File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,16 @@ type group struct {
62
62
63
63
var (
64
64
isLibpfmInitialized = false
65
- libpmfMutex = sync.Mutex {}
65
+ libpfmMutex = sync.Mutex {}
66
66
)
67
67
68
68
const (
69
69
groupLeaderFileDescriptor = - 1
70
70
)
71
71
72
72
func init () {
73
- libpmfMutex .Lock ()
74
- defer libpmfMutex .Unlock ()
73
+ libpfmMutex .Lock ()
74
+ defer libpfmMutex .Unlock ()
75
75
pErr := C .pfm_initialize ()
76
76
if pErr != C .PFM_SUCCESS {
77
77
klog .Errorf ("unable to initialize libpfm: %d" , int (pErr ))
@@ -411,8 +411,8 @@ func (c *collector) Destroy() {
411
411
412
412
// Finalize terminates libpfm4 to free resources.
413
413
func Finalize () {
414
- libpmfMutex .Lock ()
415
- defer libpmfMutex .Unlock ()
414
+ libpfmMutex .Lock ()
415
+ defer libpfmMutex .Unlock ()
416
416
417
417
klog .V (1 ).Info ("Attempting to terminate libpfm4" )
418
418
if ! isLibpfmInitialized {
You can’t perform that action at this time.
0 commit comments