Skip to content

Commit

Permalink
增加uprobe opts的address解释说明
Browse files Browse the repository at this point in the history
Signed-off-by: CFC4N <[email protected]>
  • Loading branch information
cfc4n committed Apr 29, 2023
1 parent fc40a61 commit 2f62e08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ type Probe struct {

// UAddress Symbol address. Must be provided in case of external symbols (shared libs).
// same as UprobeOptions.Address in cilium/ebpf
// offset的含义变为相对偏移量,会自动跟symbol name的地址相加,作为真正hook的地址。
// address参数也就是不需要类库再计算的绝对地址,即等于上面二者只和。 优先级最高。
UAddress uint64

// ProbeRetry - Defines the number of times that the probe will retry to attach / detach on error.
Expand Down

0 comments on commit 2f62e08

Please sign in to comment.