8000 Updated elgohr/Publish-Docker-Github-Action to a supported version (v5) by elgohr · Pull Request #1 · htejun/bcc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated elgohr/Publish-Docker-Github-Action to a supported version (v5) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 312 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
a090b46
Fix abnormal symbol parsing when __irqentry_text_end is before __irqe…
netedwardwu Mar 5, 2021
cf6fe1c
Add required libfl-dev in Ubuntu Bionic
kuenishi Mar 8, 2021
57cd85d
tools: add option to include 'LPORT' in tcpconnect otuput (#3301)
suresh2514 Mar 12, 2021
28fa55f
cleanup the style and unused function in XDP examples
yeya24 Mar 10, 2021
0a04c41
libbpf-tools: add cachestat
ethercflow Mar 11, 2021
8bab454
tcpstates: forget sockets when connection is closed
jeromemarchand Mar 5, 2021
00b72fd
In GCC10.2 suffix '.isra.0' was appended to 'finish_task_switch'
docularxu Mar 13, 2021
fa7bec9
tools/virtiostat: add filter
pizhenwei Mar 10, 2021
d80afb2
libbpf-tools: fix non-C89-compliant for loop variable declarations
anakryiko Mar 15, 2021
456cb95
tools: add option to include 'LPORT' in tcpconnlat, update man pages
suresh2514 Mar 15, 2021
f604646
libbpf-tools: fix error handling and cleanup
ethercflow Mar 16, 2021
9b6b05a
FAQ: Update LD_LIBRARY_PATH and PYTHONPATH
seehearfeel Mar 16, 2021
6cf1b6f
libbpf-tools: initialize global variables in cachestat and funclatency
chenhengqi Mar 16, 2021
a47a324
libbpf-tools: fix bug report address
ethercflow Mar 11, 2021
327e4c7
Allow to use BCC as a cmake sub-project
Mar 16, 2021
24eeae2
cmake: make "-no-pie" optional
lcp Mar 12, 2021
887e05a
sync with latest libbpf
yonghong-song Mar 20, 2021
4c561d0
update debian changelog for release v0.19.0
yonghong-song Mar 20, 2021
31d8bdf
bcc: Add some basic support for MIPS
seehearfeel Mar 20, 2021
cdfddc4
tools: handle renamed lookup_fast function in dcache tools
jeromemarchand Mar 20, 2021
9f14f2f
doc: add perf_submit_skb() documentation
FedeParola Mar 21, 2021
d7a08af
libbpf-tools: add ext4dist
ethercflow Mar 26, 2021
3766f48
block tracepoints no longer have struct request_queue arg
rsudarikov Mar 15, 2021
5766d0d
levereging extern Kconfig LINUX_KERNEL_VERSION, adding comments
rsudarikov Mar 17, 2021
d6acd54
addressing review comments
rsudarikov Mar 24, 2021
d998177
some code cleanups
rsudarikov Mar 26, 2021
8a1d264
libbpf-tools: use raw_tp sched_switch instead of kprobe
ethercflow Mar 26, 2021
ecbdc7f
libbpf: update to latest master
anakryiko Mar 26, 2021
a9f461d
libbpf-tools: remove unecessary custom NULL definitions
anakryiko Mar 26, 2021
7fd8cad
libbpf-tools: add libbpf's Linux uapi headers to build
anakryiko Mar 26, 2021
cb62da4
libbpf: update to latest upstream version
anakryiko Apr 5, 2021
c8a2298
libbpf-tools: fix for block io tracepoints changed
chenhengqi Mar 20, 2021
e83019b
libbpf-tools: resolve KERNEL_VERSION macro redefined
chenhengqi Apr 6, 2021
21d866e
fix minor typo
chendotjs Apr 10, 2021
c76cd92
tools/funclatency: support nested or recursive functions
chenyuezhou Apr 6, 2021
0cf8166
update
chenyuezhou Apr 14, 2021
e15e05d
libbpf-tools: add two helpers
ethercflow Apr 24, 2021
c2a14a2
libbpf-tools: fix some minor issues of ext4dist
Apr 2, 2021
748d6b5
add bpf_map_lookup_batch and bpf_map_delete_batch in bcc (#3363)
egobillot Apr 25, 2021
cda7acd
add macros offsetof and container_of
yonghong-song Apr 26, 2021
23447d2
Add BPFStackTable::free_symcache() to free the symbol cache for an PI…
yzhao1012 Apr 28, 2021
e0c8c10
8000 tools/funclatency: Should clear() after display that is what we want …
netedwardwu Apr 28, 2021
09dc278
Fix BPF(src_file="foo")
jeromemarchand Apr 27, 2021
f41f378
tools/biolatency: Extend average/total value
netedwardwu Apr 28, 2021
226816d
introduced Queue/Stack itervalues
smagnani96 Apr 28, 2021
8034be6
modified self.max_entries to be available from all the MAP types
smagnani96 Apr 28, 2021
19df7ee
added bpf_update_batch() API support for Python Maps
smagnani96 Apr 28, 2021
071f1ec
enhanced items_delete_batch() in Python to avoid double list creation
smagnani96 Apr 28, 2021
356ab6c
Revert "add macros offsetof and container_of"
yonghong-song Apr 29, 2021
b209161
feature: support create new map and pin it to bpffs as file(BPF_TABLE…
chenyuezhou Apr 30, 2021
d089013
Move HAVE_BUILTIN_BSWAP includes to separate header
davemarchevsky Apr 30, 2021
1cb0df5
libbpf-tools: add offcputime
ethercflow May 1, 2021
e5217d9
loader: include bpf_workaround.h header
davemarchevsky May 5, 2021
baf0059
bcc/libbpf-tools: Use fentry for vfsstat
Jan 6, 2021
46af130
sync with latest libbpf repo
yonghong-song May 6, 2021
5e1be54
fix llvm compilation errors
yonghong-song May 6, 2021
14278bf
update debian changelog for release v0.20.0
yonghong-song May 6, 2021
3469524
Use arch-specific libdir with pkgconfig
May 6, 2021
6e27192
libbpf-tools: add gethostlatency
chenhengqi Apr 3, 2021
8ddbf3b
bcc_elf: add support for debug information from libdebuginfod
rupran Apr 29, 2021
823321c
SPECS/bcc.spec: add dependencies to libdebuginfod
rupran May 6, 2021
d766fea
Fix rpmbuild error
AnyISalIn May 8, 2021
396d5d3
tools: fix typo in help message
chenhengqi May 11, 2021
dddda3b
tools: display PID intead of TID in statsnoop.py
chenhengqi May 8, 2021
430397f
Update bcc_exception.h
rkubik May 12, 2021
f129fda
libbpf-tools/opensnoop: disable open on aarch64
martinetd Apr 5, 2021
0eef179
libbpf-tools: Fix build dependence for parallel builds
vt-alt May 13, 2021
89c96a8
tools: filter using PID intead of TID
chenhengqi May 13, 2021
151fe19
tools: filter/display using PID intead of TID
chenhengqi May 16, 2021
52e2df8
libbpf-tools: add check BPF_F_MMAPABLE is supported
chenyuezhou May 17, 2021
5de2407
libbpf-tools: add statsnoop
chenhengqi May 10, 2021
77e2b34
libbpf-tools: parse -h option
chenhengqi May 15, 2021
bc04fc5
Update tcpconnect to use "__u32 af" instead of "int af"
marselester May 21, 2021
f0a0dc7
tools: filter/display using PID instead of TID
chenhengqi May 20, 2021
528be5e
feature: add `XDP_FLAGS*` in python lib (#3447)
chenyuezhou May 24, 2021
b1ebd4f
libbpf-tools: fix misuse of bpf_get_current_pid_tgid
chenhengqi May 21, 2021
4cca23e
adjust: bpf_attach_xdp report nicer error
chenyuezhou May 24, 2021
bc1e013
tools/ttysnoop: Fix tty_write probe to use new arguments
olsajiri May 9, 2021
ebd63c1
tools/ttysnoop: Use array map to store data
olsajiri Apr 9, 2021
20061e8
tools/ttysnoop: Add --datasize/--datacount
olsajiri Apr 9, 2021
5d77f50
Fix a llvm compilation error
yonghong-song May 26, 2021
e6aa65e
hardirqs: Migrate to kernel tracepoint
chenhengqi May 22, 2021
77f5252
tools/deadlock: support specifies maxnum of threads and edge cases (#…
chenyuezhou May 27, 2021
ab14faf
Update cpudist.py
Nick-nizhen May 27, 2021 8000
f2bb8f1
docs: add description of attach_raw_socket
chenyuezhou May 28, 2021
5a69ec3
libbpf-tools: add fsdist
chenhengqi May 19, 2021
6c789d9
docs: update description of bcc python BPF()
chenyuezhou Jun 2, 2021
09404eb
libbpf-tool: don't ignore LDFLAGS
jeromemarchand Jun 2, 2021
6699757
Add an option to strip leading zeros from linear histograms
netedwardwu Jun 3, 2021
f77c1a6
finish to add support of subset in items_*_batch() (#3440)
egobillot Jun 6, 2021
5b9a5c6
Add attach_xdp to reference_guide.md (#3450)
masibw Jun 6, 2021
6d88feb
libbcc: support BPF_SOCKHASH specify the key type (#3473)
chenyuezhou Jun 7, 2021
1aeec1f
libbcc: add msg_redirect_hash() and sk_redirect_hash() for sockhash
chenyuezhou Jun 8, 2021
9e38ee1
libbpf-tools: migrate xfsslower to fsslower
chenhengqi Jun 5, 2021
b2a76fa
libbpf-tools: optimize fentry_exists helper
chenhengqi Jun 9, 2021
db4df5f
libbpf-tools: add bindsnoop
chenhengqi May 12, 2021
ce7e523
libbpf-tools: remove ext4dist
chenhengqi Jun 11, 2021
5934161
bcc-python: support attach_func() and detach_func() (#3479)
chenyuezhou Jun 14, 2021
8e6c05d
Remove APInt/APSInt toString() std::string variants
kraj Jun 14, 2021
88ca330
Merge pull request #3466 from chenhengqi/add-bindsnoop
davemarchevsky Jun 15, 2021
dc1bceb
Decode bytes when formatting them as strings
spenczar Jun 11, 2021
2731825
pull out enums from main BPF class to avoid namespace collisions
davemarchevsky Jun 16, 2021
a25ddf7
bcc/python: remove unused imports, remove redundant semicolon
chenhengqi Jun 16, 2021
0567e71
bcc/python: fix attach kprobe/kretprobe using regex
chenhengqi Jun 16, 2021
8b1c973
libbcc: add atomic_increment()
chenyuezhou Jun 18, 2021
649cb3e
ProcSyms should treat the executable like any other mapped file when
davemarchevsky Jun 19, 2021
c60bd48
libbpf-tools: Don't redefine _GNU_SOURCE to avoid redefinition warning
davemarchevsky Jun 19, 2021
722cf83
Allow the use of custom keys in BPF_HASH_OF_MAPS (#3500)
masibw Jun 22, 2021
08a2203
tools: funclatency use atomic_increment
chenyuezhou Jun 21, 2021
a17fbc5
Add docs about BPF_HASH_OF_MAPS
masibw Jun 22, 2021
f7e9898
bcc-test: fix test error
chenyuezhou Jun 22, 2021
5057944
tcprtt: support extension summary(average RTT)
pizhenwei Jun 21, 2021
dcef7bc
tcprtt: fix compatibility for python3
pizhenwei Jun 23, 2021
97c2076
tools/readahead compatible with kernel version >= 5.10 (#3507)
chenyuezhou Jun 25, 2021
f47b81a
add uprobe support in funcinterval (#3512)
zhaoyao73 Jun 30, 2021
6062343
libbpf-tools: display pid instead of tid (#3499)
chenhengqi Jul 1, 2021
9686dcb
cmake: Move bpf-static and bpf-shared targets lower in file
danobi Jun 30, 2021
7191918
cmake: Make libbcc_bpf.so the BCC runtime
danobi Jun 30, 2021
80242fb
tools: replace add with xadd (#3518)
chenyuezhou Jul 1, 2021
ac431bd
libbpf-tools: add solisten
chenhengqi May 31, 2021
6a125d3
Update INSTALL.md - Fix broken links (#3524)
Akuka Jul 6, 2021
1b64fd1
Update cachestat_example.txt
hangyan Jul 2, 2021
6b70119
Add open parentheses
masibw Jul 2, 2021
4e8e8c6
Fix publish github action on docker registry
alban Jul 4, 2021
4535251
Check if raw tracepoint in module is supported
ShirleyFei Jun 20, 2021
4236563
kvmexit.py: introduce a tool to show kvm exit reasons and counts
ShirleyFei Aug 31, 2020
ad83318
libbpf-tools: fix uprobe helper get_elf_func_offset
chenhengqi Jul 1, 2021
b21bd30
Merge pull request #3498 from davemarchevsky/davemarchevsky_exe_syms
davemarchevsky Jul 12, 2021
b0e9807
[py3:tools/deadlock.py] fix usage of str.replace() method to make it …
veshij Jul 14, 2021
97fd8f4
libbpf-tools: gethostlatency code cleanup
chenhengqi Jun 27, 2021
8b09996
libbpf-tools: gethostlatency allow specify libc path
chenhengqi Jul 10, 2021
b057641
bcc/tools: remove unused signal handlers
chenhengqi Jul 15, 2021
ef330a3
tools: Fix filtering by mount namespace
mauriciovasquezbernal Jul 16, 2021
949a4e5
sync with latest libbpf repo (#3529)
yonghong-song Jul 18, 2021
321c9c9
update debian changelog for release v0.21.0
yonghong-song Jul 18, 2021
e330e81
tools/criticalstat: Add new kconfig option to warning message
wutsaiwei Jul 20, 2021
332e2ea
bcc/tools: update mountsnoop's based on comment in containers.py
sum12 Jul 20, 2021
d8176d2
profile.py: Remove unused kernel_ret_ip
mrks Jul 20, 2021
2464501
Tools: add the PPID/PCOMM fields in mountsnoop
taskset Apr 21, 2021
b912d0b
libbpf-tools: add filetop
chenhengqi Jul 15, 2021
d567347
bcc/tools: use device number and inode number to identify a file
chenhengqi Jul 28, 2021
e4e660d
libbpf-tools: add mountsnoop
chenhengqi May 30, 2021
ada66f9
libbpf-tools: readahead: don't mark struct hist as static
jeromemarchand Jul 30, 2021
10dac5f
tcpstates: incorrect display of dport (#3560)
rosenlo Aug 3, 2021
c8d65dc
ClangLoader: Pull out common remapped file operations
davemarchevsky Aug 6, 2021
b768015
Merge pull request #3566 from davemarchevsky/davemarchevsky_remapped_…
davemarchevsky Aug 6, 2021
101304b
libbpf-tools: add exitsnoop (#3564)
chenhengqi Aug 8, 2021
04893e3
Added IPv4/IPv6 filter support for tcp trace tools (#3565)
hariharan-a Aug 12, 2021
b96ab53
Add support for driver/native mode (#3574)
chendotjs Aug 13, 2021
38821fe
bcc/python: Add support for API 'bpf_attach_perf_event_raw' in BPF py…
athira-rajeev Jul 26, 2021
508d969
tools/runqslower: add '-P' optional
pizhenwei Aug 12, 2021
0120770
Merge pull request #3571 from athira-rajeev/attach_perf_event_raw
davemarchevsky Aug 13, 2021
bb691fb
bcc/python: extend perf_event_attr ctype
davemarchevsky Aug 14, 2021
16b65f0
bcc/python tests: pull kernel_version_ge into utils
davemarchevsky Aug 14, 2021
9871201
bcc/python: Add test_attach_perf_event.py to CMake tests
davemarchevsky Aug 14, 2021
04d2039
bcc/python: Add x86 and sw test to test_attach_perf_event.py
davemarchevsky Aug 19, 2021
40d6e85
libbpf-tools: runqslow: add '-P' optional
pizhenwei Aug 17, 2021
5226d0f
Update INSTALL.md - fix disutil missing
irwanshofwan Aug 25, 2021
27f3987
tools/criticalstat: Include CONFIG_PREEMPT_TRACER dependency in warni…
netedwardwu Aug 30, 2021
e984fe8
bcc/python: Add the support for detaching a single kprobe/kretprobe h…
hao-lee Aug 27, 2021
b00e6b4
doc: Add description for detach_kprobe/detach_kretprobe
hao-lee Aug 27, 2021
7abd77a
tools/tcpretrans: add optional tcp seq output
michaelgugino Sep 1, 2021
4df6a53
libbpf-tools/ksnoop: kernel argument/return value tracing/display usi…
alan-maguire Sep 6, 2021
1b9967f
libbpf-tools: add tcprtt
ethercflow Sep 1, 2021
4eb9cee
Permits mountsnoop to filter container using cgroup map or mount name…
eiffel-fl Aug 22, 2021
5125a1f
docs: Fix minor issues with helpers' documentation
mauriciovasquezbernal Sep 3, 2021
99fc868
snapcraft: update to use latest commands
Sep 6, 2021
e113312
snap: add architectures to snap build
Sep 6, 2021
6677321
toos: argdist: support [-t TID] filter
pizhenwei Sep 6, 2021
65d7839
libbpf-tools/syscount: use atomic_add for counter
fuweid Sep 4, 2021
76b114e
doc: Add libbpf to table of content
JackyYin Sep 10, 2021
2ddafc2
cmake: warning message for git submodule update
JackyYin Sep 10, 2021
f458c35
fix: CLI option help typos in offcputime.c
P403n1x87 Sep 10, 2021
57a86aa
Capture UNIX domain socket packet
Rtoax Sep 12, 2021
4d13c17
delete extra lines
Rtoax Sep 13, 2021
291ec6e
Check for kconfig.h presence, not just build dir (#3588)
WGH- Sep 14, 2021
4fa2ed7
src/python: fix filtering by containers when kfunc are supported
mauriciovasquezbernal Sep 8, 2021
598aba3
sync with latest libbpf repo
yonghong-song Sep 15, 2021
68f294f
tools/ttysnoop: Fix KFUNC_PROBE to support new iov_iter signature
Sep 10, 2021
44fc17f
update debian changelog for release v0.22.0
yonghong-song Sep 15, 2021
039a381
threadsnoop: look for pthread_create in libc too
jeromemarchand Sep 16, 2021
eafc80f
fix: debian build settings for LLVM package names
gfx Sep 17, 2021
4615a3f
Modify the code according to chenhengqi's suggestion
Rtoax Sep 17, 2021
2786a7f
tools/readahead: Migrate to kfunc/kretfunc
chenhengqi Sep 16, 2021
f5bc1f5
ksnoop: remove duplicate include
davemarchevsky Sep 23, 2021
45c6ae9
Merge pull request #3633 from iovisor/davemarchevsky_remove_ksnoop_in…
davemarchevsky Sep 23, 2021
695e127
libbpf-tools: fix EINTR related issues
mauriciovasquezbernal Sep 17, 2021
28bfa80
remove ubuntu 16.04 from bcc-test github action
davemarchevsky Sep 24, 2021
bce6a9b
Merge pull request #3636 from iovisor/davemarchevsky_bye_1604
davemarchevsky Sep 24, 2021
48a9bf5
Merge pull request #3630 from kinvolk/mauricio/handle-eint-libbpftools
davemarchevsky Sep 25, 2021
e12ec04
tools/kvmexit: Display header after KeyboardInterrupt
chenhengqi Sep 23, 2021
d3ceae0
Update tcpv4connect.py
bozakov Sep 28, 2021
a73504e
Merge pull request #3615 from Rtoax/patch-3
davemarchevsky Sep 29, 2021
e3e1815
Do not export USDT function when ENABLE_USDT is OFF
shunghsiyu Sep 30, 2021
2053611
Merge pull request #3642 from shunghsiyu/fix_linking_when_disable_usdt
davemarchevsky Sep 30, 2021
8ad3fe3
libbpf-tools/mountsnoop: Fix example strings.
Oct 11, 2021
0659577
Merge pull request #3652 from kinvolk/francis/upstream/c-mountsnoop-f…
davemarchevsky Oct 12, 2021
46a2afd
tools/capable: Set data to zero before setting fields.
Oct 11, 2021
2ec7b7c
fix a llvm14 compilation error
yonghong-song Oct 14, 2021
fb09f59
Merge pull request #3661 from iovisor/yhs_dev
davemarchevsky Oct 15, 2021
531b698
libbpf-tools: Enable compilation warnings for BPF programs
chenhengqi Oct 15, 2021
8b350fd
libbpf-tools: Fix renaming of the state field of task_struct
chenhengqi Oct 14, 2021
d1afbf6
Merge pull request #3662 from chenhengqi/enable-warn-unused-vars
davemarchevsky Oct 16, 2021
4f64e93
bcc: Allow KFUNC_PROBE to instrument function without arguments
chenhengqi Oct 17, 2021
b271b8a
tools: Remove unused variable stub
chenhengqi Oct 17, 2021
1b0eec2
Merge pull request #3665 from chenhengqi/dev/kfunc-no-args
davemarchevsky Oct 18, 2021
bd301e1
export/helpers: only put helpers in special section for B lang
davemarchevsky Oct 18, 2021
89c7f40
ksnoop: fix verification failures on 5.15 kernel
alan-maguire Oct 18, 2021
691a4bf
ksnoop: Fix info command output
chenhengqi Oct 15, 2021
2510ad7
reduce counter.enabled checking in test_perf_event.cc
yonghong-song Oct 20, 2021
bced75a
get the pid namespace by following task_active_pid_ns()
ChengyuanLiCY Oct 1, 2021
e9f140f
libbpf-tools: Fix memory leaks in ksnoop/gethostlatency
chenhengqi Oct 23, 2021
c73d7d8
tools/runqlat.py:get the pid namespace by following task_active_pid_ns()
ChengyuanLiCY Oct 22, 2021
6ce5e88
Fix build on RISC-V
r-value Oct 28, 2021
3036802
sync latest libbpf repo
yonghong-song Nov 1, 2021
8270cf2
bcc: Add kernel_struct_has_field function to BPF object
chenhengqi Oct 31, 2021
08765a9
bcc/tools: Fix renaming of the state field of task_struct
chenhengqi Oct 31, 2021
4d08181
Merge pull request #3673 from chenhengqi/fix-libbpf-tools-memleak
davemarchevsky Nov 4, 2021
61087b9
tools: fix cachestat.py with 5.15 kernel
yonghong-song Nov 8, 2021
bf49924
tools: fix cachetop.py with 5.15 kernel
yonghong-song Nov 11, 2021
039cef6
Fix garbled java class name problem of uobjnew.py
D-D-H Nov 9, 2021
8fc16e2
Guarantee strict weak order in Probe::finalize_locations
eduardo-elizondo Nov 15, 2021
ffec628
Add comment to sorting function
eduardo-elizondo Nov 15, 2021
ee2f0c9
docs: correct typos in BPF.XDP in reference guide
lizrice Nov 15, 2021
67f59ee
update debian changelog for release v0.23.0
yonghong-song Nov 15, 2021
fd34e9d
gh actions: run test and publish actions on pull_request, not push
davemarchevsky Nov 17, 2021
47236bc
Merge pull request #3708 from davemarchevsky/davemarchevsky/gh-actions-1
davemarchevsky Nov 17, 2021
9921ba3
add ubuntu-20.04 to bcc-test.yml
davemarchevsky Nov 16, 2021
74d235f
mark 'test sk_storage map' mayfail
davemarchevsky Nov 16, 2021
e16aca0
tests: Don't run py test_rlimit test on newer kernels
davemarchevsky Nov 17, 2021
2445f2d
python tests: mayFail py_smoke_tests' ttysnoop test on gh actions for…
davemarchevsky Nov 17, 2021
01bdfe0
GH Actions: run bcc-test and publish workflows on push to master bran…
davemarchevsky Nov 17, 2021
b4043cc
Merge pull request #3707 from iovisor/davemarchevsky-patch-4
davemarchevsky Nov 17, 2021
9d6776b
Sync with latest libbpf repo
yonghong-song Nov 17, 2021
155d8ab
add batch methods into libbpf.h
hsqStephenZhang Nov 18, 2021
adf3a79
Mark test_call1.py mayFail
yonghong-song Nov 18, 2021
9fc0493
Enable CMP0074 to allow `${pkg}_ROOT`, especially for LLVM_ROOT (#3713)
gfx Nov 19, 2021
60e0de9
Create examples/tracing/undump.py examples text file (#3714)
Rtoax Nov 19, 2021
e564e6f
simplify AL2 Linux package install command
quiver Nov 21, 2021
6f418aa
bcc: Use bpf_probe_read_str to read tracepoint data_loc field
chenhengqi Nov 22, 2021
2cffe36
tools/hardirqs: Using TP_DATA_LOC_READ_STR to read string field
chenhengqi Nov 22, 2021
91a7983
tools: improve sslsniff (send buffer & filtering)
bacher09 Nov 21, 2021
056ffea
Updated elgohr/Publish-Docker-Github-Action to a supported version (v5)
elgohr Mar 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions .github/workflows/bcc-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: BCC Build and tests

on: push
on:
push:
branches:
- master
pull_request:

jobs:
test_bcc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04] # 16.04.4 release has 4.15 kernel
# 18.04.3 release has 5.0.0 kernel
os: [ubuntu-18.04, ubuntu-20.04] # 18.04.3 release has 5.0.0 kernel
env:
- TYPE: Debug
PYTHON_TEST_LOGFILE: critical.log
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Publish Build Artifacts

on: push
on:
push:
branches:
- master
pull_request:

jobs:
publish_images:
Expand Down Expand Up @@ -88,10 +92,14 @@ jobs:
else
echo "Custom docker credentials not, skipping"
fi
env:
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Build container image and publish to registry
id: publish-registry
uses: elgohr/Publish-Docker-Github-Action@2.8
uses: elgohr/Publish-Docker-Github-Action@v5
if: ${{ steps.vars.outputs.DOCKER_PUBLISH }}
with:
name: ${{ secrets.DOCKER_IMAGE }}
Expand Down
51 changes: 43 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Licensed under the Apache License, Version 2.0 (the "License")
cmake_minimum_required(VERSION 2.8.7)

if (${CMAKE_VERSION} VERSION_EQUAL 3.12.0 OR ${CMAKE_VERSION} VERSION_GREATER 3.12.0)
cmake_policy(SET CMP0074 NEW)
endif()

project(bcc)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
Expand All @@ -14,9 +18,28 @@ endif()
enable_testing()

# populate submodules (libbpf)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/src)
execute_process(COMMAND git submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT CMAKE_USE_LIBBPF_PACKAGE)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/src)
execute_process(COMMAND git submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE UPDATE_RESULT)
if(UPDATE_RESULT AND NOT UPDATE_RESULT EQUAL 0)
message(WARNING "Failed to update submodule libbpf")
endif()
else()
execute_process(COMMAND git diff --shortstat ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/
OUTPUT_VARIABLE DIFF_STATUS)
if("${DIFF_STATUS}" STREQUAL "")
execute_process(COMMAND git submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE UPDATE_RESULT)
if(UPDATE_RESULT AND NOT UPDATE_RESULT EQUAL 0)
message(WARNING "Failed to update submodule libbpf")
endif()
else()
message(WARNING "submodule libbpf dirty, so no sync")
endif()
endif()
endif()

# It's possible to use other kernel headers with
Expand All @@ -27,6 +50,8 @@ endif()
# $ cmake -DKERNEL_INCLUDE_DIRS=/tmp/headers/include/ ...
include_directories(${KERNEL_INCLUDE_DIRS})

option(ENABLE_NO_PIE "Build bcc-lua without PIE" ON)

include(cmake/GetGitRevisionDescription.cmake)
include(cmake/version.cmake)
include(CMakeDependentOption)
Expand All @@ -39,7 +64,9 @@ option(ENABLE_RTTI "Enable compiling with real time type information" OFF)
option(ENABLE_LLVM_SHARED "Enable linking LLVM as a shared library" OFF)
option(ENABLE_CLANG_JIT "Enable Loading BPF through Clang Frontend" ON)
option(ENABLE_USDT "Enable User-level Statically Defined Tracing" ON)
option(ENABLE_EXAMPLES "Build examples" ON)
option(ENABLE_MAN "Build man pages" ON)
option(ENABLE_TESTS "Build tests" ON)
CMAKE_DEPENDENT_OPTION(ENABLE_CPP_API "Enable C++ API" ON "ENABLE_USDT" OFF)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
Expand All @@ -48,13 +75,15 @@ if (CMAKE_USE_LIBBPF_PACKAGE)
find_package(LibBpf)
endif()

if(NOT PYTHON_ONLY AND ENABLE_CLANG_JIT)
if(NOT PYTHON_ONLY)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM: ${LLVM_INCLUDE_DIRS} ${LLVM_PACKAGE_VERSION} (Use LLVM_ROOT envronment variable for another version of LLVM)")

if(ENABLE_CLANG_JIT)
find_package(BISON)
find_package(FLEX)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM: ${LLVM_INCLUDE_DIRS} ${LLVM_PACKAGE_VERSION}")
find_package(LibElf REQUIRED)

find_package(LibDebuginfod)
if(CLANG_DIR)
set(CMAKE_FIND_ROOT_PATH "${CLANG_DIR}")
include_directories("${CLANG_DIR}/include")
Expand All @@ -76,12 +105,14 @@ find_library(libclangRewrite NAMES clangRewrite clang-cpp HINTS ${CLANG_SEARCH})
find_library(libclangSema NAMES clangSema clang-cpp HINTS ${CLANG_SEARCH})
find_library(libclangSerialization NAMES clangSerialization clang-cpp HINTS ${CLANG_SEARCH})
find_library(libclangASTMatchers NAMES clangASTMatchers clang-cpp HINTS ${CLANG_SEARCH})
find_library(libclang-shared libclang-cpp.so HINTS ${CLANG_SEARCH})
if(libclangBasic STREQUAL "libclangBasic-NOTFOUND")
message(FATAL_ERROR "Unable to find clang libraries")
endif()
FOREACH(DIR ${LLVM_INCLUDE_DIRS})
include_directories("${DIR}/../tools/clang/include")
ENDFOREACH()
endif(ENABLE_CLANG_JIT)

# Set to a string path if system places kernel lib directory in
# non-default location.
Expand Down Expand Up @@ -109,18 +140,22 @@ endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 14)

endif(NOT PYTHON_ONLY AND ENABLE_CLANG_JIT)
endif(NOT PYTHON_ONLY)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ${CXX_ISYSTEM_DIRS}")

add_subdirectory(src)
add_subdirectory(introspection)
if(ENABLE_CLANG_JIT)
if(ENABLE_EXAMPLES)
add_subdirectory(examples)
endif(ENABLE_EXAMPLES)
if(ENABLE_MAN)
add_subdirectory(man)
endif(ENABLE_MAN)
if(ENABLE_TESTS)
add_subdirectory(tests)
endif(ENABLE_TESTS)
add_subdirectory(tools)
endif(ENABLE_CLANG_JIT)
2 changes: 1 addition & 1 deletion Dockerfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN apt-get update && apt-get install -y \
libtinfo-dev

RUN pip3 install pyroute2 netaddr dnslib cachetools
RUN pip install pyroute2 netaddr dnslib cachetools
RUN pip install pyroute2==0.5.18 netaddr==0.8.0 dnslib==0.9.14 cachetools==3.1.1

# FIXME this is faster than building from source, but it seems there is a bug
# in probing libruby.so rather than ruby binary
Expand Down
4 changes: 2 additions & 2 deletions FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Q: hello_world.py fails with:
OSError: libbcc.so: cannot open shared object file: No such file or directory
A: make sure to 'make install' and add the directory
where libbcc.so was installed into your LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$(dirname `find /usr -name libbcc.so`):$LD_LIBRARY_PATH

Q: hello_world.py fails with:
ImportError: No module named bcc
A: checkout "sudo make install" output to find out bpf package installation site,
add it to the PYTHONPATH env variable before running the program.
sudo bash -c 'PYTHONPATH=/usr/lib/python2.7/site-packages python examples/hello_world.py'
export PYTHONPATH=$(dirname `find /usr/lib -name bcc`):$PYTHONPATH

Q: hello_world.py still fails with:
bpf: Operation not permitted
Expand Down
Loading
0