Skip to content

Commit ef54c30

Browse files
committed
prog: document ProgramSpec's KernelVersion field more accurately
Signed-off-by: Timo Beckers <[email protected]>
1 parent 039be1e commit ef54c30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

prog.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ type ProgramSpec struct {
6464
// See https://www.kernel.org/doc/html/latest/process/license-rules.html#id1
6565
License string
6666

67-
// Version used by tracing programs.
67+
// Version used by Kprobe programs.
6868
//
69-
// Deprecated: superseded by BTF.
69+
// Deprecated on kernels 5.0 and later. Leave empty to let the library
70+
// detect this value automatically.
7071
KernelVersion uint32
7172

7273
// The BTF associated with this program. Changing Instructions

0 commit comments

Comments
 (0)