Skip to content

Commit acf9a47

Browse files
committed
Merge branch 'bpf-vendor-updates'
2 parents cb97c7f + 7750253 commit acf9a47

File tree

503 files changed

+988311
-793737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+988311
-793737
lines changed

CHANGELOG

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,7 @@ pcp-4.1.0 (15 June 2018)
30703070
- pmdabcc: match process name on /proc/$PID/comm
30713071
- pmdabcc: add process filtering in tracepoint/uprobe modules
30723072
- pmdabcc: fix tcplife with older/newer kernel/bcc
3073-
- pmdabcc: add USDT/dtrace hit count BPF/Python module
3073+
- pmdabcc: add USDT hit count BPF/Python module
30743074
- pmdabcc: add pid check/filter helpers, relax process check
30753075
- pmdabcc: introduce reserved ranges in bcc.conf
30763076
- pmdabcc: README and man page updates
@@ -4149,7 +4149,6 @@ pcp-3.10.8 (30 October 2015)
41494149
- pmdaperfevent: add reference clock cycles for NHM and WSM
41504150
- docs: added upgrade instructions to pmdaperfevent man page
41514151
- containers: bindmount /dev/log for syslog messages
4152-
- build: fix FreeBSD 10.2 with dtrace probes auto-enabled
41534152

41544153
pcp-3.10.7 (16 September 2015)
41554154
- containers: added the pcp-pmie container
@@ -4960,7 +4959,7 @@ pcp-3.8.3 (9 September 2013)
49604959
- Add an option allowing custom pmcd.hostname settings
49614960
- Implement host access checking for unix domain sockets.
49624961
- Man page updates, esp. to pmcd.1 re access controls.
4963-
- Add static probe support for pmcd probes (systemtap/dtrace)
4962+
- Add static probe support for pmcd probes (USDT)
49644963
- Change pmGetContextHostName to be pmcd.hostname aware and thus
49654964
able to report the correct remote hostname through a tunnel.
49664965
- Update numerous tools to use pmGetContextHostName now.

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,19 @@ commit of the remote repository.
128128
Example usage:
129129
```
130130
# Vendor a new library
131-
git subtree add --prefix vendor/github.com/redis/hiredis \
132-
https://github.com/redis/hiredis.git v1.0.0 --squash
131+
git subtree add --prefix vendor/github.com/libbpf/libbpf \
132+
https://github.com/libbpf/libbpf.git v1.6.2 --squash
133133
134134
# Pull changes from the remote repository
135-
git subtree pull --prefix vendor/github.com/redis/hiredis \
136-
https://github.com/redis/hiredis.git v1.0.1 --squash
135+
git subtree pull --prefix vendor/github.com/libbpf/libbpf \
136+
https://github.com/libbpf/libbpf.git v1.6.3 --squash
137137
138138
# Push modifications of vendored sources to the remote repository
139139
# Note: the commit(s) are split automatically, i.e. if one commit modifies
140140
# both PCP and vendored sources, the commit pushed to the remote repository
141141
# only contains updated files from the vendored directory
142-
git subtree push --prefix vendor/github.com/redis/hiredis \
143-
https://github.com/andreasgerstmayr/hiredis.git some-updates
142+
git subtree push --prefix vendor/github.com/libbpf/libbpf \
143+
https://github.com/andreasgerstmayr/libbpf.git some-updates
144144
```
145145

146146
Example vendoring a subdirectory of a remote repository:

Makepkgs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -283,30 +283,19 @@ then
283283
# For FreeBSD 10.4 and 11.3 it seems to fail when trying to build
284284
# Python and Python3 at the same time ... so skip Python(2)
285285
# For FreeBSD 13 I don't have Qt working
286-
# For FreeBSD 14 cppcheck => Qt installed and dtrace/static probes
287-
# is not working
286+
# For FreeBSD 14 cppcheck => Qt installed
288287
#
289288
case `uname -r`
290289
in
291290
9.3*)
292291
# Bog-standard, just without python3
293292
#
294-
configopts="--sysconfdir=/etc --localstatedir=/var --with-python3=no --prefix=/usr"
295-
;;
296-
10.*|11.*)
297-
# Bog-standard
298-
#
299-
configopts="--sysconfdir=/etc --localstatedir=/var --prefix=/usr"
293+
configopts="--sysconfdir=/etc --localstatedir=/var --prefix=/usr --with-python3=no"
300294
;;
301295
13.*)
302-
# Bog-standard, just without qt and static probes
303-
#
304-
configopts="--sysconfdir=/etc --localstatedir=/var --with-qt=no --with-static-probes=no --prefix=/usr"
305-
;;
306-
14.*)
307-
# Bog-standard, just without static probes
296+
# Bog-standard, just without Qt
308297
#
309-
configopts="--sysconfdir=/etc --localstatedir=/var --with-static-probes=no --prefix=/usr"
298+
configopts="--sysconfdir=/etc --localstatedir=/var --prefix=/usr --with-qt=no"
310299
;;
311300
*)
312301
# Bog-standard, as below ...

build/rpm/pcp.spec.in

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ BuildRequires: %{_lib}sasl-devel
7979
BuildRequires: cyrus-sasl-devel
8080
%endif
8181
%endif
82-
%if "@enable_probes@" == "true"
83-
BuildRequires: systemtap-sdt-devel
84-
%endif
8582
%if "@enable_qt@" == "true"
8683
BuildRequires: gcc-c++
8784
%endif
@@ -1487,16 +1484,7 @@ License: Apache-2.0 AND GPL-2.0-or-later
14871484
Summary: Performance Co-Pilot (PCP) metrics from eBPF ELF modules
14881485
URL: https://pcp.io
14891486
Requires: pcp = @package_version@ pcp-libs = @package_version@
1490-
%if 0%{?suse_version} >= 1600
1491-
Requires: libbpf1
1492-
%else
1493-
%if %{defined sle_version} && 0%{?sle_version} >= 150500
1494-
Requires: libbpf1
1495-
%else
1496-
Requires: libbpf
1497-
%endif
1498-
%endif
1499-
BuildRequires: libbpf-devel clang llvm
1487+
BuildRequires: clang llvm
15001488
%description pmda-bpf
15011489
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
15021490
extracting performance metrics from eBPF ELF modules.

build/rpm/redhat.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,6 @@ BuildRequires: chan-devel HdrHistogram_c-devel
268268
%if !%{disable_perfevent}
269269
BuildRequires: libpfm-devel >= 4
270270
%endif
271-
%if !%{disable_sdt}
272-
BuildRequires: systemtap-sdt-devel
273-
%endif
274271
%if !%{disable_libuv}
275272
BuildRequires: libuv-devel >= 1.0
276273
%endif

0 commit comments

Comments
 (0)