We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b8ba37 + dd32c58 commit 9613462Copy full SHA for 9613462
pkg/tracing/ig.go
@@ -3,6 +3,7 @@ package tracing
3
import (
4
"fmt"
5
"log"
6
+ "os"
7
"runtime"
8
9
"github.com/cilium/ebpf"
@@ -88,7 +89,7 @@ func (t *Tracer) startAppBehaviorTracing() error {
88
89
}
90
91
// Start tracing randomx
- if runtime.GOARCH == "amd64" {
92
+ if runtime.GOARCH == "amd64" && os.Getenv("KAPROFILER_ENABLE_RANDOMX") == "true" {
93
err = t.startRandomxTracing()
94
if err != nil {
95
log.Printf("error starting randomx tracing: %s\n", err)
0 commit comments