![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [github.com/containerd/cgroups/v3](https://github.com/containerd/cgroups) from 3.0.2 to 3.0.3. - [Release notes](https://github.com/containerd/cgroups/releases) - [Commits](https://github.com/containerd/cgroups/compare/v3.0.2...v3.0.3) --- updated-dependencies: - dependency-name: github.com/containerd/cgroups/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
17 lines
446 B
Go
17 lines
446 B
Go
package tracefs
|
|
|
|
import "fmt"
|
|
|
|
// UprobeToken creates the PATH:OFFSET(REF_CTR_OFFSET) token for the tracefs api.
|
|
func UprobeToken(args ProbeArgs) string {
|
|
po := fmt.Sprintf("%s:%#x", args.Path, args.Offset)
|
|
|
|
if args.RefCtrOffset != 0 {
|
|
// This is not documented in Documentation/trace/uprobetracer.txt.
|
|
// elixir.bootlin.com/linux/v5.15-rc7/source/kernel/trace/trace.c#L5564
|
|
po += fmt.Sprintf("(%#x)", args.RefCtrOffset)
|
|
}
|
|
|
|
return po
|
|
}
|