Skip to content

Commit

Permalink
fix: add returnArg index to bench and sensors
Browse files Browse the repository at this point in the history
Signed-off-by: Kaita Nakamura <[email protected]>
  • Loading branch information
z63d authored and mtardy committed Feb 13, 2025
1 parent 7d1a52d commit b140527
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/bench/trace_bench_rw.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ spec:
- index: 2
type: "size_t"
returnArg:
index: 0
type: "size_t"
selectors:
- matchPIDs:
Expand Down
1 change: 1 addition & 0 deletions pkg/sensors/tracing/kprobe_amd64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
- index: 2
type: "capability"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down
13 changes: 13 additions & 0 deletions pkg/sensors/tracing/kprobe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ spec:
- index: 2
type: "size_t"
returnArg:
index: 0
type: "size_t"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -1531,6 +1532,7 @@ func testKprobeObjectFilterReturnValueGTHook(pidStr, path string) string {
- index: 2
type: "int"
returnArg:
index: 0
type: int
selectors:
- matchPIDs:
Expand Down Expand Up @@ -1570,6 +1572,7 @@ func testKprobeObjectFilterReturnValueLTHook(pidStr, path string) string {
- index: 2
type: "int"
returnArg:
index: 0
type: int
selectors:
- matchPIDs:
Expand Down Expand Up @@ -1861,6 +1864,7 @@ spec:
- index: 1
type: "filename"
returnArg:
index: 0
type: file
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2396,6 +2400,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2459,6 +2464,7 @@ spec:
- index: 0
type: "file"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2517,6 +2523,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2637,6 +2644,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2702,6 +2710,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2767,6 +2776,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2910,6 +2920,7 @@ spec:
- index: 2
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -2940,6 +2951,7 @@ spec:
- index: 4
type: "int"
returnArg:
index: 0
type: "int"
selectors:
- matchPIDs:
Expand Down Expand Up @@ -4406,6 +4418,7 @@ spec:
- index: 2
type: "size_t"
returnArg:
index: 0
type: "size_t"
`

Expand Down

0 comments on commit b140527

Please sign in to comment.