Skip to content

Commit 4fca0b9

Browse files
committed
Merge remote-tracking branch 'origin/bcc-0.26.0'
2 parents 527ccc1 + 2d447a5 commit 4fca0b9

File tree

7 files changed

+41
-20
lines changed

7 files changed

+41
-20
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ updates:
4747
directory: "tools/biostacks"
4848
schedule:
4949
interval: "weekly"
50+
- package-ecosystem: "gomod"
51+
directory: "tools/biotop"
52+
schedule:
53+
interval: "weekly"
5054
- package-ecosystem: "gomod"
5155
directory: "tools/bitesize"
5256
schedule:
@@ -55,6 +59,10 @@ updates:
5559
directory: "tools/cachestat"
5660
schedule:
5761
interval: "weekly"
62+
- package-ecosystem: "gomod"
63+
directory: "tools/capable"
64+
schedule:
65+
interval: "weekly"
5866
- package-ecosystem: "gomod"
5967
directory: "tools/cpudist"
6068
schedule:
@@ -103,6 +111,10 @@ updates:
103111
directory: "tools/hardirqs"
104112
schedule:
105113
interval: "weekly"
114+
- package-ecosystem: "gomod"
115+
directory: "tools/javagc"
116+
schedule:
117+
interval: "weekly"
106118
- package-ecosystem: "gomod"
107119
directory: "tools/klockstat"
108120
schedule:
@@ -195,10 +207,18 @@ updates:
195207
directory: "tools/tcprtt"
196208
schedule:
197209
interval: "weekly"
210+
- package-ecosystem: "gomod"
211+
directory: "tools/tcpstates"
212+
schedule:
213+
interval: "weekly"
198214
- package-ecosystem: "gomod"
199215
directory: "tools/tcpsynbl"
200216
schedule:
201217
interval: "weekly"
218+
- package-ecosystem: "gomod"
219+
directory: "tools/tcptop"
220+
schedule:
221+
interval: "weekly"
202222
- package-ecosystem: "gomod"
203223
directory: "tools/tcptracer"
204224
schedule:
@@ -207,3 +227,7 @@ updates:
207227
directory: "tools/vfsstat"
208228
schedule:
209229
interval: "weekly"
230+
- package-ecosystem: "gomod"
231+
directory: "tools/wakeuptime"
232+
schedule:
233+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Build tools
22

33
on:
44
push:
5-
branches:
6-
- master
75
pull_request:
86
workflow_dispatch:
97

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
[libbpfgo](https://github.com/aquasecurity/libbpfgo) port of [bcc/libbpf-tools](https://github.com/iovisor/bcc/tree/master/libbpf-tools).
66

77

8-
## tools (30/46)
8+
## tools (30/52)
99

1010
* [x] [bashreadline](./tools/bashreadline)
1111
* [x] [bindsnoop](./tools/bindsnoop)
1212
* [x] [biolatency](./tools/biolatency)
1313
* [x] [biopattern](./tools/biopattern)
1414
* [x] [biosnoop](./tools/biosnoop)
1515
* [x] [biostacks](./tools/biostacks)
16+
* [ ] biotop
1617
* [x] [bitesize](./tools/bitesize)
1718
* [ ] cachestat
19+
* [ ] capable
1820
* [x] [cpudist](./tools/cpudist)
1921
* [ ] cpufreq
2022
* [x] [drsnoop](./tools/drsnoop)
@@ -27,6 +29,7 @@
2729
* [ ] funclatency
2830
* [ ] gethostlatency
2931
* [ ] hardirqs
32+
* [ ] javagc
3033
* [ ] klockstat
3134
* [ ] ksnoop
3235
* [ ] llcstat
@@ -50,6 +53,9 @@
5053
* [x] [tcpconnlat](./tools/tcpconnlat)
5154
* [x] [tcplife](./tools/tcplife)
5255
* [x] [tcprtt](./tools/tcprtt)
56+
* [ ] tcpstates
5357
* [x] [tcpsynbl](./tools/tcpsynbl)
58+
* [ ] tcptop
5459
* [x] [tcptracer](./tools/tcptracer)
5560
* [ ] vfsstat
61+
* [ ] wakeuptime

bcc

Submodule bcc updated 288 files

common/Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,18 @@ $(TOOL_NAME).bpf.o: $(LIBBPF_SRC) $(BPFTOOL_SRC) $(TOOL_BPF_OBJ)
3232

3333
.PHONY: $(LIBBPF_SRC)
3434
$(LIBBPF_SRC):
35-
@if [ ! -d $(LIBBPF_SRC) ]; then
36-
cd $(BCC_SRC)
37-
$(GIT) submodule update --init --recursive
38-
fi
35+
cd $(BCC_SRC)
36+
$(GIT) submodule update --init --recursive
3937

4038
.PHONY: $(BPFTOOL_SRC)
4139
$(BPFTOOL_SRC):
42-
@if [ ! -d $(BPFTOOL_SRC) ]; then
43-
cd $(BCC_SRC)
44-
$(GIT) submodule update --init --recursive
45-
fi
40+
cd $(BCC_SRC)
41+
$(GIT) submodule update --init --recursive
4642

4743
.PHONY: $(TOOL_BPF_OBJ)
4844
$(TOOL_BPF_OBJ):
4945
cd $(LIBBPF_TOOLS_SRC)
46+
@if ! test -d /usr/include/asm; then
47+
sudo ln -s /usr/include/asm-generic /usr/include/asm
48+
fi
5049
$(MAKE)

tools/mountsnoop/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ func main() {
228228
attachPrograms(bpfModule)
229229

230230
eventsChannel := make(chan []byte)
231-
lostChannel := make(chan uint64)
232-
pb, err := bpfModule.InitPerfBuf("events", eventsChannel, lostChannel, PERF_BUFFER_PAGES)
231+
pb, err := bpfModule.InitRingBuf("events", eventsChannel)
233232
if err != nil {
234233
log.Fatalln(err)
235234
}
@@ -254,8 +253,6 @@ loop:
254253
select {
255254
case data := <-eventsChannel:
256255
printEvent(data)
257-
case e := <-lostChannel:
258-
log.Printf("lost %d events", e)
259256
case <-ctx.Done():
260257
break loop
261258
}

tools/oomkill/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ func main() {
7979
}
8080

8181
eventsChannel := make(chan []byte)
82-
lostChannel := make(chan uint64)
83-
pb, err := bpfModule.InitPerfBuf("events", eventsChannel, lostChannel, 1)
82+
pb, err := bpfModule.InitRingBuf("events", eventsChannel)
8483
if err != nil {
8584
log.Fatalln(err)
8685
}
@@ -103,8 +102,6 @@ loop:
103102
log.Fatalf("read data failed: %s\n%v", err, data)
104103
}
105104
formatEvent(event)
106-
case e := <-lostChannel:
107-
log.Printf("lost %d events", e)
108105
case <-ctx.Done():
109106
break loop
110107
}

0 commit comments

Comments
 (0)