We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e079b38 commit 613e417Copy full SHA for 613e417
1 file changed
pkg/event/category.go
@@ -19,7 +19,6 @@
19
package event
20
21
import (
22
- "github.com/bits-and-blooms/bitset"
23
"github.com/rabbitstack/fibratus/pkg/util/hashers"
24
)
25
@@ -70,21 +69,6 @@ func (c Category) Hash() uint32 {
70
69
return hashers.FnvUint32([]byte(c))
71
}
72
73
-// CategoryMasks allows setting and checking the category bit mask.
74
-type CategoryMasks struct {
75
- bs bitset.BitSet
76
-}
77
-
78
-// Set sets the category bit in the bit mask.
79
-func (m *CategoryMasks) Set(c Category) {
80
- m.bs.Set(uint(c.Index()))
81
82
83
-// Test checks if the given category bit is set.
84
-func (m *CategoryMasks) Test(c Category) bool {
85
- return m.bs.Test(uint(c.Index()))
86
87
88
// MaxCategoryIndex designates the maximum category index.
89
const MaxCategoryIndex = 13
90
0 commit comments