diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..0a80fdce31f59c062e2abba28776e9521eddff30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..253340c10dd0e6c417c3c54481cf8ca3b613f4bc --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/systemtap diff --git a/Add-basic-LoongArch64-support.patch b/Add-basic-LoongArch64-support.patch index fdc3ac2230e012054fec51d6c9c7de27962128d7..cd26866178ab73b512e1080aca3f6744b70cc945 100644 --- a/Add-basic-LoongArch64-support.patch +++ b/Add-basic-LoongArch64-support.patch @@ -41,7 +41,7 @@ This patchset is adding basic LoongArch support in mainline systemtap. testsuite/lib/systemtap.exp | 3 +- testsuite/systemtap.syscall/clone.c | 2 +- translate.cxx | 3 +- - util.cxx | 2 + + staputil.cxx | 2 + 30 files changed, 1964 insertions(+), 16 deletions(-) create mode 100644 runtime/unwind/loongarch.h create mode 100644 tapset/linux/loongarch64/aux_syscalls.stp @@ -2417,10 +2417,10 @@ index 0a3b58a..90c3f1f 100644 "#ifdef STP_NEED_UNWIND_DATA\n" "#ifndef STP_USE_DWARF_UNWINDER\n" "#define STP_USE_DWARF_UNWINDER\n" -diff --git a/util.cxx b/util.cxx +diff --git a/staputil.cxx b/staputil.cxx index f2eaf54..24d3215 100644 ---- a/util.cxx -+++ b/util.cxx +--- a/staputil.cxx ++++ b/staputil.cxx @@ -1400,6 +1400,7 @@ normalize_machine(const string& machine) else if (machine == "s390x") return "s390"; else if (machine == "aarch64") return "arm64"; diff --git a/systemtap-4.1-vs-4.3.yaml b/systemtap-4.1-vs-4.3.yaml deleted file mode 100644 index 0cff1d1754d43da4ce8e8216c63ab74fb1e8d692..0000000000000000000000000000000000000000 --- a/systemtap-4.1-vs-4.3.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: systemtap -old_version: 4.1 -new_version: 4.3 -interface_differences: -- type: 'feature' - item: 支持eBPF功能 - diff: 新增 - influence: 支持prometheus导出器、procfs探针等eBPF功能 -- type: 'feature' - item: 同名probe解析功能 - diff: 新增 - influence: 支持用不同的PC地址去区分多个同名的probe -- type: 'feature' - item: 后端执行器支持try-catch捕获异常 - diff: 新增 - influence: 不影响 -- type: 'ABI' - item: 新增gettimeofday() - diff: 返回当前的时间 - influence: 不影响 -- type: 'ABI' - item: 新增dump_stack() - diff: 打印内核调用栈 - influence: 不影响 -- type: 'ABI' - item: gettimeofday_* - diff: 返回当前的时间 - influence: 不影响 -- type: 'CLI' - item: 加强对$variable变量类型的检查 - diff: 可能在解析和编译的时候输出更多的告警信息 - influence: 尽可能的修正这些告警信息,虽然不会影响最终的执行结果 -remark: '功能增强,无影响;' \ No newline at end of file diff --git a/systemtap-5.2.tar.gz b/systemtap-5.2.tar.gz deleted file mode 100644 index a9a5a91c5d956d2a4b5e5fbdd4863ffece00c2ec..0000000000000000000000000000000000000000 Binary files a/systemtap-5.2.tar.gz and /dev/null differ diff --git a/systemtap-5.3.tar.gz b/systemtap-5.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0b72f03bcc8a2b52ec28d56ded161c75bb7440d6 --- /dev/null +++ b/systemtap-5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:966a360fb73a4b65a8d0b51b389577b3c4f92a327e84aae58682103e8c65a69a +size 6604029 diff --git a/systemtap.spec b/systemtap.spec index 05046e5ae86f3a699b80149d517738bc55e1bc2a..d4e301e83bbe1e913055350ce3930cc94989e426 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -21,11 +21,11 @@ %undefine __brp_mangle_shebangs Name: systemtap -Version: 5.2 +Version: 5.3 Release: 1 Summary: Linux trace and probe tool -License: GPLv2+ and Public Domain -URL: http://sourceware.org/systemtap +License: GPL-2.0-or-later +URL: https://sourceware.org/systemtap Source: https://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz Patch9000: huawei-fix-network-tcp-test-error.patch @@ -39,6 +39,7 @@ BuildRequires: pkgconfig(ncurses) pkgconfig(json-c) BuildRequires: jpackage-utils python3-devel BuildRequires: elfutils-devel >= 0.142 elfutils-debuginfod-client elfutils-debuginfod-client-devel BuildRequires: sqlite-devel > 3.7 +BuildRequires: boost-devel %if %{with_dyninst} BuildRequires: dyninst-devel >= 8.0 BuildRequires: pkgconfig(libselinux) @@ -57,7 +58,6 @@ the components needed to locally develop and execute systemtap scripts. %package devel Summary: Programmable system-wide instrumentation system - development headers, tools -License: GPLv2+ Requires: make kernel-devel systemd %description devel @@ -70,7 +70,6 @@ a copy of the standard tapset library and the runtime library C files. %package server Summary: Instrumentation System Server -License: GPLv2+ Requires: systemtap-devel = %{version}-%{release} Requires: coreutils nss zip unzip Requires(pre): shadow-utils @@ -86,7 +85,6 @@ compiles systemtap scripts to kernel objects on their demand. %package runtime Summary: Programmable system-wide instrumentation system - runtime -License: GPLv2+ Requires(pre): shadow-utils %description runtime @@ -96,7 +94,6 @@ using a local or remote systemtap-devel installation. %package client Summary: Programmable system-wide instrumentation system - client -License: GPLv2+ Requires: zip unzip Requires: systemtap-runtime = %{version}-%{release} Requires: coreutils grep sed unzip zip @@ -114,8 +111,9 @@ documentation, and a copy of the tapset library for reference. %package sdt-devel Summary: Static probe support tools -License: GPLv2+ and Public Domain +License: GPL-2.0-or-later AND CC0-1.0 Requires: python3-pyparsing +Provides: %{name}-sdt-dtrace = %{version}-%{release} %description sdt-devel This package includes the header file used for static @@ -125,7 +123,6 @@ with the optional dtrace-compatibility preprocessor to process related %package testsuite Summary: Instrumentation System Testsuite -License: GPLv2+ Requires: systemtap = %{version}-%{release} Requires: systemtap-sdt-devel = %{version}-%{release} Requires: systemtap-server = %{version}-%{release} @@ -145,8 +142,6 @@ systemtap on the current system. %package runtime-python3 Summary: Systemtap Python 3 Runtime Support -License: GPLv2+ -URL: http://sourceware.org/systemtap Requires: systemtap-runtime = %{version}-%{release} %description runtime-python3 @@ -155,8 +150,6 @@ that probe python3 processes. %package stap-exporter Summary: Systemtap-prometheus interoperation mechanism -License: GPLv2+ -URL: http://sourceware.org/systemtap Requires: systemtap-runtime = %{version}-%{release} %description stap-exporter @@ -166,8 +159,6 @@ to remote requesters on demand. %package jupyter Summary: ISystemtap jupyter kernel and examples -License: GPLv2+ -URL: http://sourceware.org/systemtap/ Requires: systemtap = %{version}-%{release} %description jupyter @@ -175,13 +166,7 @@ This package includes files needed to build and run the interactive systemtap Jupyter kernel, either locally or within a container. -%package help -Summary: systemtap manual -License: GPLv2+ -URL: http://sourceware.org/systemtap - -%description help -This package include systemtap manual +%package_help %prep %autosetup -p1 @@ -206,8 +191,7 @@ This package include systemtap manual %{_emacs_bytecompile} emacs/systemtap-mode.el %install -rm -rf ${RPM_BUILD_ROOT} -make DESTDIR=$RPM_BUILD_ROOT install +%make_install %find_lang %{name} for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||") @@ -367,7 +351,6 @@ exit 0 %files %license COPYING %doc README README.unprivileged AUTHORS NEWS -%defattr(-,root,root) %{_unitdir}/systemtap.service %{_sbindir}/systemtap-service %dir %{_sysconfdir}/systemtap @@ -380,7 +363,6 @@ exit 0 %{dracutstap}/* %files server -f systemtap.lang -%defattr(-,root,root) %{_bindir}/stap-server %dir %{_libexecdir}/systemtap %{_libexecdir}/systemtap/stap-serverd @@ -399,7 +381,6 @@ exit 0 %dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server %ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log %ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server -%{!?_licensedir:%global license %%doc} %files devel -f systemtap.lang %{_bindir}/stap @@ -409,7 +390,6 @@ exit 0 %dir %{_datadir}/systemtap %{_datadir}/systemtap/runtime %{_datadir}/systemtap/tapset -%{!?_licensedir:%global license %%doc} %dir %{_libexecdir}/systemtap %{_emacs_sitelispdir}/*.el* %{_emacs_sitestartdir}/systemtap-init.el @@ -417,7 +397,6 @@ exit 0 %{_libexecdir}/systemtap/python/stap-resolve-module-function.py %files runtime -f systemtap.lang -%defattr(-,root,root) %attr(4110,root,stapusr) %{_bindir}/staprun %{_bindir}/stapsh %{_bindir}/stap-merge @@ -426,7 +405,6 @@ exit 0 %dir %{_libexecdir}/systemtap %{_libexecdir}/systemtap/stapio %{_libexecdir}/systemtap/stap-authorize-cert -%{!?_licensedir:%global license %%doc} %if %{with_dyninst} %{_bindir}/stapdyn %endif @@ -436,9 +414,7 @@ exit 0 %endif %files client -f systemtap.lang -%defattr(-,root,root) %{_datadir}/systemtap/examples -%{!?_licensedir:%global license %%doc} %license COPYING %doc docs.installed/*.pdf %{_bindir}/stap @@ -448,15 +424,12 @@ exit 0 %{_datadir}/systemtap/tapset %files sdt-devel -%defattr(-,root,root) %{_bindir}/dtrace %{_includedir}/sys/sdt.h %{_includedir}/sys/sdt-config.h %{_rpmmacrodir}/macros.systemtap -%{!?_licensedir:%global license %%doc} %files testsuite -%defattr(-,root,root) %dir %{_datadir}/systemtap %{_datadir}/systemtap/testsuite @@ -482,6 +455,9 @@ exit 0 %{_mandir}/man[1378]/* %changelog +* Tue May 06 2025 Funda Wang - 5.3-1 +- Update to version 5.3 + * Thu Dec 05 2024 wangxiao - 5.2-1 - Upgrade to 5.2