Skip to content

Commit

Permalink
Add fix for rcx
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Feb 26, 2025
1 parent 42229ae commit 1783468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collector/scripts/bpftmpl/replace/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func getValueFunc(arch string) (func(string) string, error) {
return "bx"
case "-8@%rbp":
return "bp"
case "-8@%rcx":
return "cx"
default:
// Preserve the "r" in the remaining eg. r15.
return strings.TrimPrefix(argument, "-8@%")
Expand Down

0 comments on commit 1783468

Please sign in to comment.