Skip to content

Commit

Permalink
feat: centos8 4.18 kernel btf (#9)
Browse files Browse the repository at this point in the history
* upload all service node

* support centos 8 btf
  • Loading branch information
chengjoey authored Aug 15, 2024
1 parent ea9bfe5 commit fab1a85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file not shown.
1 change: 1 addition & 0 deletions pkg/btfs/btfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var (
"5.10.134-16.1.al8.x86_64": "5.4.28-200.el7.x86_64.btf",
"5.4.278-1.el7.elrepo.x86_64": "5.4.28-200.el7.x86_64.btf",
"5.5.5-1.el7.elrepo.x86_64": "5.4.28-200.el7.x86_64.btf",
"4.18.0-147.5.1.el8_1.x86_64": "4.18.0-147.5.1.el8_1.x86_64.btf",
}
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/kprobe/kprobesysctl/ebpf_kprobe_sysctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (k *KprobeSysctlController) updateServiceNode() error {
if !ok {
continue
}
if pod.Status.HostIP != k.hostIP || len(pod.Labels["DICE_SERVICE"]) == 0 {
if len(pod.Labels["DICE_SERVICE"]) == 0 {
continue
}
m := makeServiceNodeMetric(pod)
Expand Down

0 comments on commit fab1a85

Please sign in to comment.