MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / findBTFAssets

Function findBTFAssets

cli/cmd/root.go:486–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

484}
485
486func findBTFAssets() string {
487 var utsname syscall.Utsname
488 err := syscall.Uname(&utsname)
489 if err != nil {
490 fmt.Println("Error:", err)
491 os.Exit(1)
492 }
493 btf_file := "a12-5.10-arm64_min.btf"
494 if strings.Contains(util.B2S(utsname.Release[:]), "rockchip") {
495 btf_file = "rock5b-5.10-arm64_min.btf"
496 }
497 Logger.Printf("findBTFAssets btf_file=%s", btf_file)
498 return btf_file
499}
500
501func findKallsymsSymbol(symbol string) (bool, error) {
502 find := false

Callers 1

persistentPreRunEFuncFunction · 0.85

Calls 1

B2SFunction · 0.92

Tested by

no test coverage detected