bpf: rename event softirq to softirq_tracing

softirq event is a tracing in running kernel.

Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
This commit is contained in:
Tonghao Zhang 2025-07-13 06:05:36 -04:00
parent 42b2204de9
commit 93c15c0d30
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import (
"huatuo-bamai/pkg/tracing" "huatuo-bamai/pkg/tracing"
) )
//go:generate $BPF_COMPILE $BPF_INCLUDE -s $BPF_DIR/softirq.c -o $BPF_DIR/softirq.o //go:generate $BPF_COMPILE $BPF_INCLUDE -s $BPF_DIR/softirq_tracing.c -o $BPF_DIR/softirq_tracing.o
type softirqTracing struct{} type softirqTracing struct{}
@ -55,7 +55,7 @@ type SoftirqTracingData struct {
} }
func init() { func init() {
tracing.RegisterEventTracing("softirq", newSoftirq) tracing.RegisterEventTracing("softirq_tracing", newSoftirq)
} }
func newSoftirq() (*tracing.EventTracingAttr, error) { func newSoftirq() (*tracing.EventTracingAttr, error) {