diff --git a/backport-libbpf-Support-detecting-and-attaching-of-writable-t.patch b/backport-libbpf-Support-detecting-and-attaching-of-writable-t.patch deleted file mode 100644 index dc6f17e1a50fa6002b599f98b37452deecd39cad..0000000000000000000000000000000000000000 --- a/backport-libbpf-Support-detecting-and-attaching-of-writable-t.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 4d32ba754a242fb31827923c4a6f051063b32fea Mon Sep 17 00:00:00 2001 -From: Hou Tao -Date: Mon, 4 Oct 2021 17:48:56 +0800 -Subject: [PATCH] libbpf: Support detecting and attaching of writable - tracepoint program - -Program on writable tracepoint is BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, -but its attachment is the same as BPF_PROG_TYPE_RAW_TRACEPOINT. - -Signed-off-by: Hou Tao -Signed-off-by: Andrii Nakryiko -Link: https://lore.kernel.org/bpf/20211004094857.30868-3-hotforest@gmail.com ---- - src/libbpf.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/libbpf.c b/src/libbpf.c -index d9ece93..02e9d33 100644 ---- a/src/libbpf.c -+++ b/src/libbpf.c -@@ -6894,6 +6894,10 @@ static const struct bpf_sec_def section_defs[] = { - .attach_fn = attach_raw_tp), - SEC_DEF("raw_tp/", RAW_TRACEPOINT, - .attach_fn = attach_raw_tp), -+ SEC_DEF("raw_tracepoint.w/", RAW_TRACEPOINT_WRITABLE, -+ .attach_fn = attach_raw_tp), -+ SEC_DEF("raw_tp.w/", RAW_TRACEPOINT_WRITABLE, -+ .attach_fn = attach_raw_tp), - SEC_DEF("tp_btf/", TRACING, - .expected_attach_type = BPF_TRACE_RAW_TP, - .is_attach_btf = true, --- -2.29.2 - diff --git a/libbpf.spec b/libbpf.spec index 4ae9a5ccc7f59b901e004b7433c529674a059af2..a965fd662ed9307369822a96299f0f778ab4f47a 100644 --- a/libbpf.spec +++ b/libbpf.spec @@ -1,10 +1,10 @@ %global githubname libbpf -%global githubver 0.1.1 +%global githubver 0.3 %global githubfull %{githubname}-%{githubver} Name: %{githubname} Version: %{githubver} -Release: 2 +Release: 1 Summary: Libbpf library License: LGPLv2 or BSD @@ -12,7 +12,6 @@ URL: https://github.com/%{githubname}/%{githubname} Source: https://github.com/%{githubname}/%{githubname}/archive/v%{githubver}.tar.gz BuildRequires: gcc elfutils-libelf-devel elfutils-devel -Patch6000: backport-libbpf-Support-detecting-and-attaching-of-writable-t.patch # This package supersedes libbpf from kernel-tools, # which has default Epoch: 0. By having Epoch: 1 @@ -27,7 +26,6 @@ ABI. %package devel Summary: Development files for %{name} Requires: %{name} = 2:%{version}-%{release} -Requires: kernel-headers >= 5.4.0-1 %description devel The %{name}-devel package contains libraries header files for @@ -53,7 +51,7 @@ developing applications that use %{name} %make_install -C ./src %{make_flags} %files -%{_libdir}/libbpf.so.0.1.0 +%{_libdir}/libbpf.so.0.3.0 %{_libdir}/libbpf.so.0 %files devel @@ -65,6 +63,9 @@ developing applications that use %{name} %{_libdir}/libbpf.a %changelog +* Tue Aug 23 2022 hujiawang - 2:0.3-1 +- updata libbpf v0.1.1 to v0.3 + * Wed Nov 10 2021 Lv Ying - 0.1.1-2 - support detecting and attaching of writable tracepoint program https://lore.kernel.org/bpf/20211004094857.30868-3-hotforest@gmail.com diff --git a/v0.1.1.tar.gz b/v0.1.1.tar.gz deleted file mode 100644 index 5a24c581793695b36dcb112ce836ce6c54f2fd51..0000000000000000000000000000000000000000 Binary files a/v0.1.1.tar.gz and /dev/null differ diff --git a/v0.3.tar.gz b/v0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dc95de423876f1c8ed0fe8ca6c52c020884e4cea Binary files /dev/null and b/v0.3.tar.gz differ