Skip to content

pkg/bpf: get and store owner program type for maps#1056

Merged
tgraf merged 1 commit intocilium:masterfrom
tklauser:bpf-prog-type
Jun 30, 2017
Merged

pkg/bpf: get and store owner program type for maps#1056
tgraf merged 1 commit intocilium:masterfrom
tklauser:bpf-prog-type

Conversation

@tklauser
Copy link
Copy Markdown
Member

Parse the owner_prog_type field from the map's fdinfo file and store it
in MapInfo. Add the corresponding BPF program type enum and Stringer
interface.

At the moment, this is not needed for cilium itself but would be useful
for the generic bpf-map tool which uses cilium's pkg/bpf.

Signed-off-by: Tobias Klauser tklauser@distanz.ch

Comment thread pkg/bpf/prog.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type ProgType should have comment or be unexported

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, will fix.

Comment thread pkg/bpf/prog.go Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type ProgType should have comment or be unexported

Parse the owner_prog_type field from the map's fdinfo file and store it
in MapInfo. Add the corresponding BPF program type enum and Stringer
interface.

At the moment, this is not needed for cilium itself but would be useful
for the generic bpf-map tool which uses cilium's pkg/bpf.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tgraf tgraf mentioned this pull request Jun 30, 2017
@tgraf tgraf merged commit 4886967 into cilium:master Jun 30, 2017
@tklauser tklauser deleted the bpf-prog-type branch July 3, 2017 09:57
tklauser added a commit to tklauser/bpf-map that referenced this pull request Jul 19, 2017
Update the cilium godep to get the bpf map owner prog type introduced in
cilium/cilium#1056.

Add two additional vendor dependecies (logrus & x/sys/unix) now used by
cilium's pkg/bpf.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to tklauser/bpf-map that referenced this pull request Jul 19, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in
cilium/cilium#1056.

Add two additional vendor dependecies (logrus & x/sys/unix) now used by
cilium's pkg/bpf.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to tklauser/bpf-map that referenced this pull request Aug 9, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in
cilium/cilium#1056.

Add two additional vendor dependencies (logrus & x/sys/unix) now used by
cilium's pkg/bpf.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tgraf pushed a commit to cilium/bpf-map that referenced this pull request Aug 9, 2017
Re-vendor cilium to get the bpf map owner prog type introduced in
cilium/cilium#1056.

Add two additional vendor dependencies (logrus & x/sys/unix) now used by
cilium's pkg/bpf.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants