commit f7c0cf9e424693d30770df3e8deecd0beff796cb8e458eb8d1c3c1470ef025c1 Author: Martin Pluskal Date: Wed Jan 15 07:39:56 2025 +0000 - Avoid usage of %{_libdir} in a noarch package: noarch cannot rely on libdir, an arch-dependent variable. Rather use %{_prefix}/lib* to remove files. Fixes build with RPM 4.20. OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=152 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README-BEFORE-ADDING-PATCHES b/README-BEFORE-ADDING-PATCHES new file mode 100644 index 0000000..a3d989f --- /dev/null +++ b/README-BEFORE-ADDING-PATCHES @@ -0,0 +1,13 @@ +All patches need to have a patch description header similar to what is used in +SuSE kernel git tree. Patches added without this will be reverted. Thanks. + +From: Name +Subject: Summary of fix +Date: date +References: bnc#xxxxxx (bugzilla reference if applicable) +Upstream: yes (provide repo/commit-id in description) or no (provide reason) +Signed-Off-by: Name (same as From: if committer is patch author) + +Short paragraph describing problem/fix. + +References to upstream repo-path/commit-id if applicable. diff --git a/README-KEYRING b/README-KEYRING new file mode 100644 index 0000000..d4d8a70 --- /dev/null +++ b/README-KEYRING @@ -0,0 +1,13 @@ +How to update the systemtap keyring +=================================== +1. update systemtap version in specfile to new version +2. run 'osc service localrun download_files' to download the new tarball and signatrure files (the signature file may be .sig or .asc, it varies depending on who +made the release) +3. run 'gpg systemtap-${ver}.tar.gz.{sig,asc}' -- look for "gpg: Signature made {date} using RSA key ID {key}" in output +4. run 'gpg --keyserver pgp.mit.edu --recv-key $key' to obtain the key from the public keyserver +5. run 'gpg --export --armor --output systemtap.keyring $key'. Select 'y' to + overwrite existing file (previous is backed up in .osc) + +How to verify against the keyring +================================= +1. run 'gpg --keyring systemtap.keyring systemtap-${ver}.tar.gz.sig' diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..5d5a2a4 --- /dev/null +++ b/_multibuild @@ -0,0 +1,6 @@ + + systemtap-docs + systemtap-headers + systemtap-dtrace + + diff --git a/stap-server.conf b/stap-server.conf new file mode 100644 index 0000000..7237623 --- /dev/null +++ b/stap-server.conf @@ -0,0 +1,2 @@ +# Systemtap-server needs some files in /var/run +d /run/stap-server 0755 root root - diff --git a/systemtap-5.1.tar.gz b/systemtap-5.1.tar.gz new file mode 100644 index 0000000..0a3ee6d --- /dev/null +++ b/systemtap-5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1db8c1d65bb13b65bc3f30e4cee2f7e174d517e908d994bb0fcde0051f181b40 +size 6590820 diff --git a/systemtap-5.1.tar.gz.asc b/systemtap-5.1.tar.gz.asc new file mode 100644 index 0000000..efbc2eb --- /dev/null +++ b/systemtap-5.1.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEETdE2SQQRwKQrKIRPJYtu+g8gnSQFAmYsJFgACgkQJYtu+g8g +nSRR7g/+PBWvHSsD24d/k4QR39X9+eANOY166u+SEbDKc2Wh+5JOjjCKY1cTf8mY +M+Z8nFeHZcQW5bXexX8HHui3W1+Nk2IkrLE0Tc11TaIz/Sjj8jouNsM8OVp3GYIu +nZlhOrGmBnh//ojJRV0eiccgHWxVJUfQf4JV8CPt4gKDm1a0tIJVId2HsUQXl4hN +u/cdrCPQgDk2WzpKTQqnfLHrCjEsfgxRVEDERyn+cjYfeYMZyMkyYG+0ln+775i8 +64S8Qe9oOX80dRjRPQ7S0IvOLje4PWUlw6p2ZhW1P6Wf0G2xXKJ4n6T0PSI77ju8 +QdZUDm78j4S0fJLjrkFe1IWepsZYCmom/JQWGufmPTn8xEgIAXji7vHRu2fx9pa2 +HBtFrrRqwdxfEa5UB3McSZl128B/x8+jkCROKdV+e/Uk8lu7KUkVkeLQzbXgh8kd +2nRxzDPCwN/Ps1Udz/6DUiEBAUwSjtqnIe+p+a1fG/HSxTEHYhCj99SFyQB/8ufd +Zh+7W33eki2zMiUzTWBMSOjkydUdQ0rEYcJryWh9RCpeEZKcwwIPvU9p3hKtpUxD +zsE2Piy8NWqdjTBY+ENkPNEkEIMcqSgqW3nZTRbDuZ85PmC5ikide3p6ql085PRr +kpMImFX76fTbiToAC76bXjrtuKzvmgd/uCt9Kt143162cxAZdao= +=nS25 +-----END PGP SIGNATURE----- diff --git a/systemtap-build-source-dir.patch b/systemtap-build-source-dir.patch new file mode 100644 index 0000000..044c87b --- /dev/null +++ b/systemtap-build-source-dir.patch @@ -0,0 +1,88 @@ +From: Tony Jones +Subject: adjust build source dir for SuSE packaging +References: bnc#796574 + +kernel-$flavor: + /lib/modules/$version-$flavor + +kernel-$flavor-devel: requires kernel-source + /usr/src/linux-$version-obj/$arch/$flavor + /lib/modules/$version-$flavor/build -> /usr/src/linux-$version-obj/$arch/$flavor + /lib/modules/$version-$flavor/source -> /usr/src/linux-$version [kernel-source] + +kernel-flavor-debugsource: + /usr/src/debug/kernel-$flavor/ + linux-obj/ {corresponds to /lib/modules/$version-$flavor/build} + linux-3.0/ {mirrors kernel-source} + +DW_AT_comp_dir points to debugsource/linux-obj directory but internal trace +headers are only found in linux-3.0. Regardless, we don't want to require +debugsource as devel already requires kernel-source which provides the +necessary headers. + +--- + session.cxx | 28 ++++++++++++++++++++++++---- + 1 file changed, 24 insertions(+), 4 deletions(-) + +--- a/session.cxx ++++ b/session.cxx +@@ -108,6 +108,7 @@ systemtap_session::systemtap_session (): + kernel_release = string (buf.release); + release = kernel_release; + kernel_build_tree = "/lib/modules/" + kernel_release + "/build"; ++ kernel_source_tree = "/lib/modules/" + kernel_release + "/source"; + architecture = machine = normalize_machine(buf.machine); + + for (unsigned i=0; i<5; i++) perpass_verbose[i]=0; +@@ -298,6 +299,7 @@ systemtap_session::systemtap_session (co + { + release = kernel_release = kern; + kernel_build_tree = "/lib/modules/" + kernel_release + "/build"; ++ kernel_source_tree = "/lib/modules/" + kernel_release + "/source"; + kernel_extra_cflags = other.kernel_extra_cflags; + architecture = machine = normalize_machine(arch); + setup_kernel_release(kern.c_str()); +@@ -2218,21 +2220,39 @@ systemtap_session::setup_kernel_release + // normal search in tapsets.cxx. Without CONFIG_DEBUG_INFO, we'd + // need heuristics such as this one: + +- string some_random_source_only_file = kernel_build_tree + "/COPYING"; ++ // SUSE: if "build" link specified, attempt to determine "source" link ++ // N.B we won't match using above tapsets.cxx check ++ struct stat buf; ++ string source_tree = kernel_build_tree; ++ ++ if (lstat(kernel_build_tree.c_str(), &buf) != -1 && S_ISLNK(buf.st_mode)) { ++ size_t pos = source_tree.find_last_of('/'); ++ if (pos < source_tree.length() && source_tree.substr(pos+1, string::npos) == "build") ++ source_tree.replace(pos+1, string::npos, "source"); ++ } ++ ++retry: ++ string some_random_source_only_file = source_tree + "/COPYING"; + ifstream epic (some_random_source_only_file.c_str()); + if (! epic.fail()) + { +- kernel_source_tree = kernel_build_tree; ++ kernel_source_tree = source_tree; + if (verbose > 2) + clog << _F("Located kernel source tree (COPYING) at '%s'", kernel_source_tree.c_str()) << endl; +- } ++ } else if (source_tree != kernel_build_tree) { ++ // one last try using kernel_build_tree (local fs build) ++ source_tree = kernel_build_tree; ++ goto retry; ++ } + } + else + { + update_release_sysroot = true; + kernel_release = kstr; +- if (!kernel_release.empty()) ++ if (!kernel_release.empty()) { + kernel_build_tree = "/lib/modules/" + kernel_release + "/build"; ++ kernel_source_tree = "/lib/modules/" + kernel_release + "/source"; ++ } + + // PR10745 + // Let's not look for the kernel_source_tree; it's definitely diff --git a/systemtap-docdir-fix.diff b/systemtap-docdir-fix.diff new file mode 100644 index 0000000..7cd2832 --- /dev/null +++ b/systemtap-docdir-fix.diff @@ -0,0 +1,61 @@ +From: Tony Jones +Subject: change doc install path +References: none +Upstream: never + +SuSE %{_docdir} is /usr/share/doc/packages. Change install locations to match. + +--- + Makefile.am | 2 +- + doc/Makefile.am | 2 +- + doc/SystemTap_Tapset_Reference/Makefile.am | 4 ++-- + doc/beginners/Makefile.am | 2 +- + 4 files changed, 5 insertions(+), 5 deletions(-) + +--- a/Makefile.am ++++ b/Makefile.am +@@ -266,7 +266,7 @@ endif + | while read f; do if test -x $$f; then \ + i_cmd="$(INSTALL_PROGRAM)"; else \ + i_cmd="$(INSTALL_DATA)"; fi; \ +- $$i_cmd -D $$f $(DESTDIR)$(pkgdatadir)/examples/$$f; done) ++ $$i_cmd -D $$f $(DESTDIR)$(datadir)/doc/packages/systemtap/examples/$$f; done) + test -e $(DESTDIR)$(sysconfdir)/systemtap || mkdir -p $(DESTDIR)$(sysconfdir)/systemtap + if BUILD_SERVER + test -e $(DESTDIR)$(localstatedir)/run/stap-server || mkdir -p $(DESTDIR)$(localstatedir)/run/stap-server +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -3,7 +3,7 @@ + + AUTOMAKE_OPTIONS = subdir-objects + PDF_FILES = tutorial.pdf langref.pdf +-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap ++DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap + SUBDIRS = SystemTap_Tapset_Reference beginners + + if BUILD_DOCS +--- a/doc/SystemTap_Tapset_Reference/Makefile.am ++++ b/doc/SystemTap_Tapset_Reference/Makefile.am +@@ -1,9 +1,9 @@ + ## process this file with automake to produce Makefile.in + + +-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap ++DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap + MAN_INSTALL_DIR = $(DESTDIR)$(mandir)/man3 +-HTML_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap/tapsets ++HTML_INSTALL_DIR = $(DOC_INSTALL_DIR)/tapsets + + if XMLTO_STRINGPARAM + XMLTOHTMLPARAMS=--stringparam use.id.as.filename=1 -m $(abs_srcdir)/generate-toc.xml +--- a/doc/beginners/Makefile.am ++++ b/doc/beginners/Makefile.am +@@ -2,7 +2,7 @@ + ## process this file with automake to produce Makefile.in + + +-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap ++DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap + SBG = SystemTap_Beginners_Guide + BEGIN_INSTALL_DIR = $(DOC_INSTALL_DIR)/$(SBG) + diff --git a/systemtap-docs.changes b/systemtap-docs.changes new file mode 100644 index 0000000..cbf79da --- /dev/null +++ b/systemtap-docs.changes @@ -0,0 +1,578 @@ +------------------------------------------------------------------- +Mon Jan 6 13:20:23 UTC 2025 - Dominique Leuenberger + +- Avoid usage of %{_libdir} in a noarch package: noarch cannot rely + on libdir, an arch-dependent variable. Rather use %{_prefix}/lib* + to remove files. Fixes build with RPM 4.20. + +------------------------------------------------------------------- +Mon Jun 17 22:44:47 UTC 2024 - Tony Jones + +- Upgrade to version 5.1. See systemtap.changes for changelog + +------------------------------------------------------------------- +Sat Dec 30 13:48:44 UTC 2023 - Florian "sp1rit" + +- Upgrade to version 5.0. See systemtap.changed for changelog + +------------------------------------------------------------------- +Tue Sep 13 01:21:04 UTC 2022 - Tony Jones + +- Upgrade to version 4.7. See systemtap.spec for changelog + +------------------------------------------------------------------- +Thu Jan 27 23:26:36 UTC 2022 - Tony Jones + +- Upgrade to version 4.6. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Dec 6 17:33:04 UTC 2019 - Tony Jones + +- Upgrade to version 4.2. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Aug 9 20:06:57 UTC 2019 - Tony Jones + +- Upgrade to version 4.1. See systemtap.spec for changelog +- Remove systemtap-exporter files (built due to BuildRequires: python3-devel) + +------------------------------------------------------------------- +Fri Aug 3 16:50:41 UTC 2018 - sschricker@suse.de + +- Upgrade to version 3.3: + + Changelog: https://lwn.net/Articles/757030/ + + eBPF backend extensions, easier access to examples, adapting to + meltdown/spectre complications, real-time / high-cpu-count + concurrency fixes + +- Added public key of "Frank Ch. Eigler ", + since he signed the new package + +------------------------------------------------------------------- +Fri Feb 2 23:31:59 UTC 2018 - tonyj@suse.com + +- Fix python3 build failures + +------------------------------------------------------------------- +Mon Nov 20 23:06:17 UTC 2017 - tonyj@suse.com + +- Upgrade to version 3.2. See systemtap.spec for changelog + Drop patch: systemtap-doc-back-down-gettext-version.diff + +------------------------------------------------------------------- +Tue Mar 28 20:04:44 UTC 2017 - jeffm@suse.com + +- Update to version 3.1. See systemtap.spec for changelog + Added patch: systemtap-doc-back-down-gettext-version.diff + +------------------------------------------------------------------- +Fri Apr 1 17:29:31 UTC 2016 - tonyj@suse.com + +- Update to version 3.0. See systemtap.spec for changelog + Drop patch: systemtap-xmlto-fop.diff + +------------------------------------------------------------------- +Tue Nov 10 00:40:17 UTC 2015 - tonyj@suse.com + +- Update to version 2.9. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Sep 11 18:00:49 UTC 2015 - tonyj@suse.com + +- Update to version 2.8. See systemtap.spec for changelog + Update patch 'systemtap-docdir-fix.diff' (package beginners guide) + +------------------------------------------------------------------- +Fri Mar 27 14:11:25 UTC 2015 - p.drouand@gmail.com + +- Update to version 2.7. See systemtap.spec for changelog +- Update systemtap-docdir-fix.diff + +------------------------------------------------------------------- +Tue Feb 17 20:51:58 UTC 2015 - mpluskal@suse.com + +- Add gpg signature and keyring +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- +Tue Sep 9 06:06:42 UTC 2014 - tonyj@suse.com + +- Update to version 2.6. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri May 2 19:50:28 UTC 2014 - tonyj@suse.com + +- Update to version 2.5. See systemtap.spec for changelog +- Drop patch: langref.tex-add-option-to-babel-setup.patch (upstream) +- Patch systemtap-docs-autoconf-version.diff was still present + despite being "dropped" in 2.4, really delete it + +------------------------------------------------------------------- +Thu Dec 19 22:05:14 UTC 2013 - tonyj@suse.com + +- Fix build errors due to changes in LaTeX packaging +- Add patch 'langref.tex-add-option-to-babel-setup.patch' + +------------------------------------------------------------------- +Fri Nov 15 18:51:03 UTC 2013 - tonyj@suse.com + +- Update to version 2.4. See systemtap.spec for changelog +- Drop patch systemtap-docs-autoconf-version.diff + +------------------------------------------------------------------- +Wed Aug 7 17:44:37 UTC 2013 - tonyj@suse.com + +- Update to version 2.3. See systemtap.spec for changelog + +------------------------------------------------------------------- +Wed May 22 17:47:56 UTC 2013 - tonyj@suse.com + +- Update to version 2.2.1. See systemtap.spec for changelog + +------------------------------------------------------------------- +Sat Jan 12 05:10:48 UTC 2013 - tonyj@suse.com + +- Update to version 2.0. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Jul 27 10:29:23 UTC 2012 - aj@suse.de + +- Fix build with glibc 2.16 + +------------------------------------------------------------------- +Mon Jun 18 09:47:49 CEST 2012 - jslaby@suse.de + +- Upgrade to version 1.8 + +------------------------------------------------------------------- +Thu Jun 14 20:11:49 UTC 2012 - dimstar@opensuse.org + +- Add systemtap-automake112.patch: Fix build with automake 1.12: + + Support for automatic de-ANSI-fication has been removed. + + Patch taken from upstream, git commit id 5b2bc70. + +------------------------------------------------------------------- +Sat Feb 18 01:36:46 UTC 2012 - tonyj@suse.com + +- Update to version 1.7. See systemtap.spec for changelog + +------------------------------------------------------------------- +Sun Jan 29 06:34:11 UTC 2012 - coolo@suse.com + +- add automake too + +------------------------------------------------------------------- +Wed Dec 21 10:44:28 UTC 2011 - coolo@suse.com + +- add autoconf as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Wed Nov 2 10:54:46 CET 2011 - jslaby@suse.de + +- update to 1.6 + +------------------------------------------------------------------- +Tue Jun 7 08:11:15 UTC 2011 - coolo@novell.com + +- fix file dependencies of examples and testsuite + +------------------------------------------------------------------- +Tue May 17 11:28:27 CEST 2011 - jslaby@suse.de + +- fix gcc 4.6 build + +------------------------------------------------------------------- +Fri Jan 21 18:45:18 UTC 2011 - tonyj@novell.com + +- Update to version 1.4. See systemtap.changes for full changelog. + +------------------------------------------------------------------- +Thu Aug 26 02:15:11 UTC 2010 - tonyj@novell.com + +- Update to version 1.3 + +------------------------------------------------------------------- +Thu Mar 11 22:49:52 UTC 2010 - tonyj@novell.com + +- Update to version 1.1. See systemtap.changes for full changelog. + +------------------------------------------------------------------- +Wed Dec 2 23:52:10 UTC 2009 - tonyj@novell.com + +- Minor changes to spec file + +------------------------------------------------------------------- +Fri Oct 2 18:57:14 CEST 2009 - tonyj@suse.de + +- updated to version 1.0. See systemtap.changes for full changelog. + +------------------------------------------------------------------- +Tue Jul 21 08:47:33 CEST 2009 - tiwai@suse.de + +- corrected to use libexecdir +- fix summary and description + +------------------------------------------------------------------- +Thu Jun 18 12:46:08 CEST 2009 - tiwai@suse.de + +- change to noarch + +------------------------------------------------------------------- +Tue Jun 16 16:26:52 CEST 2009 - tiwai@suse.de + +- updated to version 0.9.8: + * Module signing support + * Debuginfo suggestions when a script fails + * Using %M in print formats for hex dumps can now print entire + buffers + * Dwarfless syscalls: The nd_syscalls tapset is now available to + probe system calls without requiring kernel debug info. + * sid() returns the session ID of the current process + * stringat() indexes a single character from a string. + * New script examples + +------------------------------------------------------------------- +Fri May 22 09:38:19 CEST 2009 - tiwai@suse.de + +- add missing examples installation in docs subpackage + +------------------------------------------------------------------- +Wed May 20 13:02:00 CEST 2009 - tiwai@suse.de + +- split docs and examples to docs subpackage and generate from its + own spec file to cut off the dependency loop + +------------------------------------------------------------------- +Fri May 15 11:46:11 CEST 2009 - tiwai@suse.de + +- split to several subpackages, systemtap-runtime, -client, -server + and -sdt-devel (bnc#503088). + +------------------------------------------------------------------- +Fri May 8 16:43:08 CEST 2009 - tiwai@suse.de + +- updated to released version 0.9.7: + * Lots of fixes, improvements, see NEWS file for details + +------------------------------------------------------------------- +Thu Feb 19 16:55:48 CET 2009 - tiwai@suse.de + +- updated to systemtap snashot 20090214: + * Version bump to 0.8 + * Bunch of fixes and updates, see ChangeLog + * Fix for recent 2.6.29 kernels +- fixed doc build, using fop instead of direct xmlto pdf + +------------------------------------------------------------------- +Thu Feb 12 16:32:29 CET 2009 - tiwai@suse.de + +- backport the blacklist additions from upstream to fix possible + system crash (bnc#459387, bnc#473277) + +------------------------------------------------------------------- +Thu Feb 5 13:31:19 CET 2009 - tiwai@suse.de + +- Backport tapset/signal.stp to fix the signal probe problem + (bnc#468321) + +------------------------------------------------------------------- +Tue Feb 3 14:39:38 CET 2009 - tiwai@suse.de + +- Fix debugpath.exp with $SYSTEMTAP_DEBUGINFO_PATH (bnc#471811) + +------------------------------------------------------------------- +Thu Jan 29 12:58:42 CET 2009 - tiwai@suse.de + +- Fix procfs dir_entry count warning (bnc#470526) +- Improve the parsing of lineno checks (bnc#468247) + +------------------------------------------------------------------- +Thu Jan 15 08:22:24 CET 2009 - tiwai@suse.de + +- Fix quoting in Tcl scripts (bnc#461588) + +------------------------------------------------------------------- +Mon Jan 12 12:55:06 CET 2009 - tiwai@suse.de + +- Fix syntax errors with Tcl send_log (bnc#460886) + +------------------------------------------------------------------- +Thu Dec 18 16:59:23 CET 2008 - tiwai@suse.de + +- Fix stap failures with signal tapsets (bnc#459387) + +------------------------------------------------------------------- +Tue Dec 16 13:50:32 CET 2008 - tiwai@suse.de + +- Fix dependency on libebl1 (bnc#448331, #445783) +- Fix stap for 2.6.28 kernels + +------------------------------------------------------------------- +Fri Dec 12 16:32:35 CET 2008 - tiwai@suse.de + +- Don't assert of dwarf_getsrcfiles(). This hits recent SUSE + kernels (bnc#455992) +- Backport fix patches for stap-*-server scripts to run with + netcat (bnc#446686) + +------------------------------------------------------------------- +Mon Dec 8 14:09:01 CET 2008 - tiwai@suse.de + +- fixed unresolved path in man pages (bnc#457217) +- fixed build for old distros on OBS + +------------------------------------------------------------------- +Thu Dec 4 18:08:23 CET 2008 - tiwai@suse.de + +- fix ioblock.stp for SUSE 2.6.27.x kernel (bnc#456175) + +------------------------------------------------------------------- +Fri Nov 21 14:09:21 CET 2008 - tiwai@suse.de + +- Add the bound check of parameters to fix segfault (bnc#447551) + +------------------------------------------------------------------- +Tue Nov 4 13:57:24 CET 2008 - tiwai@suse.de + +- Fix systemtap assertion with CONFIG_RELOCATABLE (bnc#440351) + +------------------------------------------------------------------- +Thu Sep 11 17:14:47 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080906 + * Fix / clean up autotools stuff + * Ugly workaround for 2.6.27 and later kernel + * stap-server updates + * Lots of small fixes + +------------------------------------------------------------------- +Tue Aug 12 18:11:10 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080809 + * bump to 0.7.1 + * tutorials + * examples + * i386-fix merged + * previous patches are all merged in +- add latex2html to buildrequires for generating documents + +------------------------------------------------------------------- +Fri Jun 20 15:58:30 CEST 2008 - tiwai@suse.de + +- fix run on i386 (bnc#401970) +- don't include obsolete linux/compile.h. + +------------------------------------------------------------------- +Wed Jun 18 16:04:01 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080614: + * bump to version 0.7, man page updates, misc fixes + see ChangeLog for details + +------------------------------------------------------------------- +Fri Mar 14 14:15:17 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080308: + * configure fixes, compile option changes + * fixes for 2.6.25 kernel + +------------------------------------------------------------------- +Wed Jan 30 18:26:01 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080126 + * fix configure and automake stuff + * gcc 4.3 fix is included + * ufprobes fixes, improvements + * reorganized probe condition implementation. + +------------------------------------------------------------------- +Fri Jan 11 17:10:09 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080105 +- fixed build of the snapshot with gcc 4.3 + +------------------------------------------------------------------- +Mon Nov 19 14:53:53 CET 2007 - tiwai@suse.de + +- enable gcc-4.3 patch (yes, we use only gcc4.3 now) +- updated to snapshot 20071117 + +------------------------------------------------------------------- +Thu Oct 25 12:53:04 CEST 2007 - tiwai@suse.de + +- disable gcc-4.3 fix again since it breaks older gccs... + +------------------------------------------------------------------- +Wed Oct 24 16:33:35 CEST 2007 - tiwai@suse.de + +- fix build with gcc 4.3 + +------------------------------------------------------------------- +Mon Oct 22 15:23:15 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20071020: + * bump up version 0.6 + * bunch of updates and fixes, see ChangeLog + +------------------------------------------------------------------- +Tue Aug 14 16:53:57 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070811: + * Updated -m MODNAME usage + * Rework on line editing functions + +------------------------------------------------------------------- +Mon Jul 16 17:39:33 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070714: + * configure fix for sqlite + * support for crash extension module + * new enum for type column in coverage_element + +------------------------------------------------------------------- +Wed Jul 4 12:22:34 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070630: + * auto-tools fixes, sqlite3 requirement +- add sqlite-devel and glib2-devel to buildrequires + +------------------------------------------------------------------- +Wed Jun 6 16:13:15 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070602: + * fix for gcc4.3 + * minor fixes in elaborate.* +- include the snapshot date into version string +- clean up spec file + +------------------------------------------------------------------- +Tue May 22 17:09:38 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070519: + * Updated temporary handlings + * Autoconf tweaks + * Performance improvements with const and temporary handlings + * Removed do_write and do_read probles, added aio_write, + aio_read, writev and readv probes. + +------------------------------------------------------------------- +Mon May 21 12:24:15 CEST 2007 - tiwai@suse.de + +- use the external elfutils packages. + +------------------------------------------------------------------- +Tue Apr 24 18:15:56 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070421 and elfutils-0.127: + * minor compile warning fixes + * add interruptible parameter + * improvement on documents + * fix for debugfs and relayfs mounts + * see ChangeLog for other changes + +------------------------------------------------------------------- +Mon Mar 19 17:25:52 CET 2007 - tiwai@suse.de + +- updated to snapshot 20070317: + including all fix patches + +------------------------------------------------------------------- +Thu Mar 8 15:24:56 CET 2007 - tiwai@suse.de + +- fix the handling of function arguments in more generic way + (#245310, #252311) + added a new option -P to switch the prologue-search behavior + +------------------------------------------------------------------- +Wed Mar 7 15:47:20 CET 2007 - tiwai@suse.de + +- fix misalignment of exception table entry on s390x (#249576) + +------------------------------------------------------------------- +Mon Feb 26 12:42:41 CET 2007 - tiwai@suse.de + +- fix crash with large H value in hist_linear() (#248430) + +------------------------------------------------------------------- +Fri Feb 23 16:43:53 CET 2007 - tiwai@suse.de + +- fix mmap syscall on s390x (#248110) + +------------------------------------------------------------------- +Thu Feb 15 13:20:32 CET 2007 - tiwai@suse.de + +- fix a wrong name of store_deref definition (#245544) + +------------------------------------------------------------------- +Wed Feb 14 16:39:39 CET 2007 - tiwai@suse.de + +- fix the handling of function arguments on s390x (#245310) + +------------------------------------------------------------------- +Tue Feb 6 14:51:54 CET 2007 - tiwai@suse.de + +- update to snapshot 20070203, bugfixes including: + * add missing sockets tapset support (#239346) + * fix the array membership (#242481) + +------------------------------------------------------------------- +Wed Jan 31 13:44:43 CET 2007 - tiwai@suse.de + +- turn on Autoprov again to fix broken dependency. + +------------------------------------------------------------------- +Tue Jan 30 12:01:03 CET 2007 - tiwai@suse.de + +- update to snapshot 20070120 and elfutils-0.125 to fix major + bugs (#238710): + * fixed libdw known bugs in elfutils 0.124 + * add the missing support of tapsetr/errno.stp for s390x + * fix conditionals in syscall tapset for s390x + * new macros to safely read/write values from kernel pointers + * fix the non-standard C behavior to handle NULL in an array + * fixed support for benchmarking mode with off-line code + * added support to allow user to use array size declarations + * reduce number of calls to stp_module_relocate within $tvar + functions + +------------------------------------------------------------------- +Tue Jan 9 19:30:00 CET 2007 - tiwai@suse.de + +- updated to the recent snapshot version (FATE 301670). + * fix cache bugs + * auto-tools fixes + * probe registartion rework + * allow negative numeric literals + * bugfixes/optmizations +- elfutls 1.2.4 + removed codes with problematic license in elfutils (#232894) + +------------------------------------------------------------------- +Thu Aug 24 19:10:59 CEST 2006 - tiwai@suse.de + +- update elfutils to 1.2.3, including vmlinux.debuginfo fix. + +------------------------------------------------------------------- +Thu Aug 24 18:20:39 CEST 2006 - tiwai@suse.de + +- fix the auto-lookup of vmlinux debuginfo for SUSE systems +- fix the stp compilation with 2.6.18 kernel + +------------------------------------------------------------------- +Wed Aug 9 15:27:09 CEST 2006 - tiwai@suse.de + +- updated to latest snapshot (version 0.5.8) + with elfutils-1.2.2. + +------------------------------------------------------------------- +Tue Apr 18 03:14:22 CEST 2006 - mason@suse.de + +- Update to latest snapshot + +------------------------------------------------------------------- +Sun Apr 9 20:32:35 CEST 2006 - mason@suse.de + +- created package + diff --git a/systemtap-docs.spec b/systemtap-docs.spec new file mode 100644 index 0000000..24ca11f --- /dev/null +++ b/systemtap-docs.spec @@ -0,0 +1,96 @@ +# +# spec file for package systemtap-docs +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: systemtap-docs +Version: 5.1 +Release: 0 +Summary: Documents and examples for systemtap +License: GPL-2.0-or-later +Group: Development/Tools/Debuggers +URL: https://sourceware.org/systemtap/ +Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz +Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc +Source2: systemtap.keyring +Source3: README-BEFORE-ADDING-PATCHES +Source4: README-KEYRING +Patch1: systemtap-docdir-fix.diff +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: pkgconfig(json-c) +# for documents +BuildRequires: fop +BuildRequires: gcc-c++ +BuildRequires: latex2html +BuildRequires: libdw-devel +BuildRequires: pkgconfig +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: texlive-amsfonts +BuildRequires: texlive-babel-english +BuildRequires: texlive-collection-fontsrecommended +BuildRequires: texlive-metafont-bin +BuildRequires: xmlto +BuildRequires: pkgconfig(libdebuginfod) +BuildRequires: tex(charter.sty) +BuildRequires: tex(fancybox.sty) +BuildRequires: tex(fancyhdr.sty) +BuildRequires: tex(fancyvrb.sty) +BuildRequires: tex(float.sty) +BuildRequires: tex(fullpage.sty) +BuildArch: noarch + +%description +SystemTap is an instrumentation system for systems running Linux. +This package contains the documents and examples for systemtap. + +%prep +%setup -q -n systemtap-%{version} +%autopatch -p1 + +%build +# fix interpreter +find testsuite examples -name "*.stp" | xargs -n1 sed -i -e 's, /bin/env, %{_bindir}/env,' +find testsuite examples -type f | xargs chmod 644 +autoreconf -fi +%configure --docdir=%{_docdir}/systemtap --disable-nls --with-python3 +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install %{?_smp_mflags} doc +# COPYING packaged by main spec +cp README AUTHORS NEWS %{buildroot}%{_docdir}/systemtap/ +# remove binaries and runtime stuff +rm -rf %{buildroot}%{_bindir} +rm -rf %{buildroot}%{_sbindir} +rm -rf %{buildroot}%{_prefix}/lib* +rm -rf %{buildroot}%{_libexecdir} +rm -rf %{buildroot}%{_datadir}/systemtap +rm -rf %{buildroot}%{_includedir} +rm -rf %{buildroot}%{_sysconfdir} +rm -rf %{buildroot}%{_unitdir} +# these man pages are in each sub package +rm -rf %{buildroot}%{_mandir}/man[178] +rm -rf %{buildroot}%{_mandir}/cs/man[178] + +%files +%defattr(-,root,root) +%doc %{_docdir}/systemtap +%{_mandir}/man3/* +%{_mandir}/cs/man3/* + +%changelog diff --git a/systemtap-dtrace.changes b/systemtap-dtrace.changes new file mode 100644 index 0000000..b1e0568 --- /dev/null +++ b/systemtap-dtrace.changes @@ -0,0 +1,67 @@ +------------------------------------------------------------------- +Mon Jun 17 22:44:47 UTC 2024 - Tony Jones + +- Upgrade to version 5.1. See systemtap.changes for changelog + +------------------------------------------------------------------- +Fri Mar 8 15:56:21 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang macro, [bsc#1212476] + +------------------------------------------------------------------- +Sat Dec 30 13:48:44 UTC 2023 - Florian "sp1rit" + +- Upgrade to version 5.0. See systemtap.changed for changelog + +------------------------------------------------------------------- +Tue Sep 13 01:21:04 UTC 2022 - Tony Jones + +- Upgrade to version 4.7. See systemtap.spec for changelog + +------------------------------------------------------------------- +Thu Apr 21 23:43:35 UTC 2022 - Tony Jones + +- Remove unnecessary patches. Only patches specific to dtrace are needed. + +------------------------------------------------------------------- +Wed Mar 2 19:19:36 UTC 2022 - Tony Jones + +- Add gcc12 support (bsc#1196583) + New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch + New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch + New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch + New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch + New patch: gcc12-warning-suppression.patch + +------------------------------------------------------------------- +Mon Feb 21 10:56:37 UTC 2022 - Andreas Schwab + +- Handle-user-supplied-sdt-probe-argument-template.patch: Fix glibc build + failure on s390x + +------------------------------------------------------------------- +Mon Feb 14 15:46:00 UTC 2022 - Tony Jones + +- Resolve gcc compilation error reported against glib2 and libvirt + New patch: sys-sdt.h-fp-constraints-arm32.patch + New patch: sys-sdt.h-fp-constraints-x86_64.patch + New patch: sys-sdt.h-fp-constraints-aarch64-s390.patch + +- Add existing patch systemtap-build-source-dir.patch to spec for consistency + +------------------------------------------------------------------- +Thu Jan 27 23:26:36 UTC 2022 - Tony Jones + +- Upgrade to version 4.6. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Dec 6 17:32:23 UTC 2019 - Tony Jones + +- Upgrade to version 4.2. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Sep 27 15:07:24 UTC 2019 - Michael Gorse + +- Moved the dtrace binary into a separate package to resolve build + cycle with glib2 (bsc#1145438). diff --git a/systemtap-dtrace.spec b/systemtap-dtrace.spec new file mode 100644 index 0000000..63ebe92 --- /dev/null +++ b/systemtap-dtrace.spec @@ -0,0 +1,61 @@ +# +# spec file for package systemtap-dtrace +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if ! %{defined _rundir} +%define _rundir %{_localstatedir}/run +%endif +Name: systemtap-dtrace +Version: 5.1 +Release: 0 +Summary: SystemTap dtrace utility +License: GPL-2.0-or-later +Group: Development/Tools/Debuggers +URL: http://sourceware.org/systemtap/ +Source0: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz +Source1: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc +Source2: systemtap.keyring +Source3: README-BEFORE-ADDING-PATCHES +Source4: README-KEYRING + +BuildRequires: python-rpm-macros +BuildArch: noarch + +%description +SystemTap is an instrumentation system for systems running Linux. +This package contains the dtrace utility to build provider and probe +definitions. + +%prep +%setup -q -n systemtap-%{version} +%autopatch -p1 + +%build +# Our binutils always support '?' in the section characters on all +# architectures, no need for configure tests +sed s=@preferred_python@=%{_bindir}/python3= dtrace.in |sed s=@prefix@=%{_prefix}= >dtrace + +%install +mkdir -p %{buildroot}%{_bindir} +install -m 755 dtrace %{buildroot}%{_bindir} +%python3_fix_shebang + +%files +%defattr(-,root,root) +%{_bindir}/dtrace + +%changelog diff --git a/systemtap-headers.changes b/systemtap-headers.changes new file mode 100644 index 0000000..18e4860 --- /dev/null +++ b/systemtap-headers.changes @@ -0,0 +1,92 @@ +------------------------------------------------------------------- +Mon Jun 17 22:44:47 UTC 2024 - Tony Jones + +- Upgrade to version 5.1. See systemtap.changes for changelog + +------------------------------------------------------------------- +Tue Sep 13 01:21:04 UTC 2022 - Tony Jones + +- Upgrade to version 4.7. See systemtap.spec for changelog + +- Remove patches (upstream): + Handle-user-supplied-sdt-probe-argument-template.patch + PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch + buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch + gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch + gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch + gcc12-warning-suppression.patch + sys-sdt.h-fp-constraints-aarch64-s390.patch + sys-sdt.h-fp-constraints-arm32.patch + sys-sdt.h-fp-constraints-x86_64.patch + +------------------------------------------------------------------- +Wed Mar 2 19:19:36 UTC 2022 - Tony Jones + +- Add gcc12 support (bsc#1196583) + New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch + New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch + New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch + New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch + New patch: gcc12-warning-suppression.patch + +------------------------------------------------------------------- +Mon Feb 21 10:56:37 UTC 2022 - Andreas Schwab + +- Handle-user-supplied-sdt-probe-argument-template.patch: Fix glibc build + failure on s390x + +------------------------------------------------------------------- +Mon Feb 14 15:46:00 UTC 2022 - Tony Jones + +- Resolve gcc compilation error reported against glib2 and libvirt + New patch: sys-sdt.h-fp-constraints-arm32.patch + New patch: sys-sdt.h-fp-constraints-x86_64.patch + New patch: sys-sdt.h-fp-constraints-aarch64-s390.patch + +------------------------------------------------------------------- +Thu Jan 27 23:26:36 UTC 2022 - Tony Jones + +- Upgrade to version 4.6. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Dec 6 17:32:56 UTC 2019 - Tony Jones + +- Upgrade to version 4.2. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Aug 9 20:06:57 UTC 2019 - Tony Jones + +- Upgrade to version 4.1. See systemtap.spec for changelog + +------------------------------------------------------------------- +Fri Aug 3 16:50:41 UTC 2018 - sschricker@suse.de + +- Upgrade to version 3.3: + + Changelog: https://lwn.net/Articles/757030/ + + eBPF backend extensions, easier access to examples, adapting to + meltdown/spectre complications, real-time / high-cpu-count + concurrency fixes + +- Remove patches, because the issues were fixed upstream: + systemtap-change-extra_cflags-escape-processing.patch + +- Adjust patch for version 3.3: + systemtap-build-source-dir.patch + +- Added public key of "Frank Ch. Eigler ", + since he signed the new package + +------------------------------------------------------------------- +Fri Feb 16 15:20:50 UTC 2018 - matz@suse.com + +- Add Conflicts with systemtap-sdt-devel, as that one again + provides the headers as well. + +------------------------------------------------------------------- +Thu Feb 8 15:26:17 UTC 2018 - matz@suse.com + +- Created new specfile systemtap-headers.spec, so bootstrap cycles + packages can use them without blowing up the cycle. + [fate#324969] diff --git a/systemtap-headers.spec b/systemtap-headers.spec new file mode 100644 index 0000000..4120da3 --- /dev/null +++ b/systemtap-headers.spec @@ -0,0 +1,68 @@ +# +# spec file for package systemtap-headers +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# Note: this separate package systemtap-headers exists so that ring0 +# packages can make use of the SDT headers without pulling in all +# build requirements of the normal systemtap package. Normal use +# outside of BuildRequires in ring0 packages should use systemtap-sdt-devel +%if ! %{defined _rundir} +%define _rundir %{_localstatedir}/run +%endif +Name: systemtap-headers +Version: 5.1 +Release: 0 +Summary: SystemTap headers +License: GPL-2.0-or-later +Group: Development/Tools/Debuggers +URL: http://sourceware.org/systemtap/ +Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz +Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc +Source2: systemtap.keyring +Source3: README-BEFORE-ADDING-PATCHES +Source4: README-KEYRING +Source5: stap-server.conf +Patch1: systemtap-build-source-dir.patch + +# sdt-devel provides the same header files as us, so we +# must conflict +Conflicts: systemtap-sdt-devel + +%description +SystemTap is an instrumentation system for systems running Linux. +This package contains only the headers for static system probes and +exists only to limit build cycles. Normally you should install +systemtap-sdt-devel, which also contains these headers. + +%prep +%setup -q -n systemtap-%{version} +%autopatch -p1 + +%build +# Our binutils always support '?' in the section characters on all +# architectures, no need for configure tests +sed -e 's/@support_section_question@/1/' < includes/sys/sdt-config.h.in > includes/sys/sdt-config.h + +%install +mkdir -p %{buildroot}%{_includedir}/sys +cp -rp includes/sys/*.h %{buildroot}%{_includedir}/sys/ + +%files +%defattr(-,root,root) +%{_includedir}/sys/*.h + +%changelog diff --git a/systemtap.changes b/systemtap.changes new file mode 100644 index 0000000..2ca6521 --- /dev/null +++ b/systemtap.changes @@ -0,0 +1,1014 @@ +------------------------------------------------------------------- +Mon Jun 17 22:40:06 UTC 2024 - Tony Jones + +- Update to version 5.1 + + Summary of changes: + * SystemTap frontend (stap) changes + - An experimental "--build-as=USER" flag to reduce privilege during + script compilation, which is a security improvement effort. + - New probe-points for userland hardware breakpoints/watchpoints + targeting processes (PR31180): + probe process.data(ADDRESS).write + probe process.data(ADDRESS).rw + probe process.data(ADDRESS).length(LEN).write + probe process.data(ADDRESS).length(LEN).rw + - Support for stap --remote=bpf. + - Improved searching heuristics for probing symbol names with/without + symbol-version suffixes and with/without weak names. + - Made long-running debuginfod downloads more cleanly interruptible. + - Improved stap-prep heuristics for finding debuginfo for "-rt" + (real-time) kernels. + + * SystemTap backend changes + - Dynamic namespace switching for processes targeted via "-x PID", + allowing processes running within containers to be probed. + - Improved message transport robustness for heavy traffic (individual + messages spanning pages) and for short runs (avoiding loss of + last-gasp messages). + - Added MTAG macro on several internal memory allocation routines + to improve leak warnings. Corrected a bunch of leaks. + - "stap -t" now reports module initialization timings too. + - Ported runtime for GCC14 compatibility, with its more recent C + dialect warnings. + - Support for DW_OP_bra in DWARF location lists, which makes a few + more $context variables accessible to systemtap. + + * SystemTap tapset changes + - Portability fixes for more recent kernels, as always. + - set_kernel_string* tapset functions improved range checking. + - print_ubacktrace_fileline() works with PIE binaries. + - Many portability improvements and some fixes in the testsuite. + - Enhancements for the tcp, nfs, memory tapsets. + + Drop following patches (upstream): + - bpf-translate.cxx-fix-build-against-upcoming-gcc14.patch + - get-shm_flag-defines-from-the-appropriate-include-file-for-linux-6.8-kernel.patch + - pr31288-build-with-gcc14-cont.patch + - pr31288-build-with-gcc14.patch + - pr31373-deal-with-the-removal-of-strlcpy-from-linux-6.8.patch + - staprun-fix-build-against-upcoming-gcc14.patch + - stapvirt.c-more-gcc-14-werror-calloc-transposed-args-compatibility.patch + +------------------------------------------------------------------- +Tue Apr 2 17:32:02 UTC 2024 - Tony Jones + +- Fix runtime issues with v6.8 kernel (bsc#1222249) + New patch: get-shm_flag-defines-from-the-appropriate-include-file-for-linux-6.8-kernel.patch + New patch: pr31373-deal-with-the-removal-of-strlcpy-from-linux-6.8.patch + +------------------------------------------------------------------- +Thu Mar 28 01:06:45 UTC 2024 - Tony Jones + +- Fix gcc14 build errors (bsc#1221706) + New patch: bpf-translate.cxx-fix-build-against-upcoming-gcc14.patch + New patch: pr31288-build-with-gcc14-cont.patch + New patch: pr31288-build-with-gcc14.patch + New patch: staprun-fix-build-against-upcoming-gcc14.patch + New patch: stapvirt.c-more-gcc-14-werror-calloc-transposed-args-compatibility.patch + +------------------------------------------------------------------- +Fri Mar 8 15:56:21 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang macro, [bsc#1212476] + +------------------------------------------------------------------- +Sat Dec 30 13:48:44 UTC 2023 - Florian "sp1rit" + +- Upgrade to version 5.0: + * Performance improvements in uprobe registration and module startup. + * More probe point process details are printed in "-L" list mode with + more "-v". + * For the case where newer kernels may break systemtap runtime APIs, + better pass-4 failure diagnostics are printed. + * Tapset function print_ubacktrace_fileline() now understands DWARF5. + * The target(s) of process probes may be specified by path name + globs, as located selected debuginfod servers. This requires the + debuginfod servers to support "metadata" queries. The following + probes all of the binaries matching /usr/*/curl known to the + debuginfod servers, regardless of what's currently installed as the + system /usr/bin/curl: + # export DEBUGINFOD_URLS="URL1 URL2 ..." + # stap -e 'probe debuginfod.process("/usr/*/curl").begin { log("hi") }' + The archive glob may be given as an optional component to filter further: + # stap -e 'probe debuginfod.archive("*.fc38*") + .process("/usr/*/c*").function("main") { log("Hello World") }' + * The kernel-user message transport system added framing codes, + making the transport more reliable, but becoming incompatible + across pre-5.0 versions. Use matching versions of stap and + staprun. + * RHEL6, kernel 2.6.32* as well as older releases have been + deprecated from the codebase. RHEL7 and kernel version 3.10 are + now the oldest supported versions for Systemtap. + * The testsuite Makefile has been simplified to remove concurrency, + so "parallel" and "resume" modes are gone. + * New runtime macro STP_TIMING_NSECS is now supported for reporting + probe timing stats in nsecs instead of cycles. This may become + default later. + * Add new runtime macro STP_FORCE_STDOUT_TTY to override + STP_STDOUT_NOT_ATTY. + +------------------------------------------------------------------- +Wed May 10 06:00:27 UTC 2023 - Dirk Müller + +- update to 4.9: + * ISystemtap: the new interactive systemtap jupyter kernel. + This provides a simple GUI for writing/running Systemtap + scripts in an easy, incremental way within Jupyterlab. + Added 2 news scripts, stap-jupyter-install + and stap-jupyter-container. See stap-jupyter(1). + * The new "language-server" mode, specified by "stap + --language-server", starts a LSP server which will + communicate with the client via stdio. + * This server currently supports code completion suggestions. + * See language-server/README.md for more details and usage + instructions. + * Safety/liveness checking for $context variable assignments in + probes of retpoline-compiled kernels is temporarily disabled. + * DWARF-related probes (.function, .statement) now merge DWARF + and non-DWARF symbol-table based matches, rather than being + either-or. + * The python3 tapset was extended to support python3 3.9, 3.10, + and 3.11. See stapprobes(3stap) for further details on probing + python functions. + * A template cve band-aid script is now included, which + demonstrates how to use a new 'livepatch.stp' tapset to + standardize activation, interactive control, + and monitoring of systemtap cve band-aids. + * The kernel runtime now uses much less memory when the number + of "possible CPUs" are way more than the online ones. For + example, VMWare guests usually have 128 "possible CPUs" while fewer + CPUs are actually present or online in the guest system. + * The memory allocation size is now irrelevant to the value of + NR_CPUS of the current kernel. It is only subject to the + number of "possible CPUs" or "online CPUs". + * CPU hotplug is supported to the extent that there won't be + any kernel panics or memory corruptions. + * The bpf backend's embedded-code assembler has been improved + to support more conventional assembly syntax with named + opcodes. The opcode names are based on the iovisor bpf-docs + documentation at + https://github.com/iovisor/bpf-docs/blob/master/eBPF.md + +------------------------------------------------------------------- +Thu May 4 11:27:26 UTC 2023 - Dominique Leuenberger + +- Add _multibuild to define 2nd spec file as additional flavor. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Tue Sep 13 00:13:36 UTC 2022 - Tony Jones + +- Update to version 4.7 + Release notes: https://sourceware.org/pipermail/systemtap/2022q2/027491.html + +- Remove patches (upstream): + Handle-user-supplied-sdt-probe-argument-template.patch + PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch + buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch + gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch + gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch + gcc12-warning-suppression.patch + sys-sdt.h-fp-constraints-aarch64-s390.patch + sys-sdt.h-fp-constraints-arm32.patch + sys-sdt.h-fp-constraints-x86_64.patch + +- Update systemtap.keyring + +------------------------------------------------------------------- +Wed Mar 2 19:19:36 UTC 2022 - Tony Jones + +- Add gcc12 support (bsc#1196583) + New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch + New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch + New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch + New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch + New patch: gcc12-warning-suppression.patch + +------------------------------------------------------------------- +Mon Feb 21 10:56:37 UTC 2022 - Andreas Schwab + +- Handle-user-supplied-sdt-probe-argument-template.patch: Fix glibc build + failure on s390x + +------------------------------------------------------------------- +Mon Feb 14 15:46:00 UTC 2022 - Tony Jones + +- Resolve gcc compilation error reported against glib2 and libvirt + New patch: sys-sdt.h-fp-constraints-arm32.patch + New patch: sys-sdt.h-fp-constraints-x86_64.patch + New patch: sys-sdt.h-fp-constraints-aarch64-s390.patch + +------------------------------------------------------------------- +Thu Jan 27 23:21:10 UTC 2022 - Tony Jones + +- Update to version 4.6 (bsc#1194395) + 4.6 release notes: https://sourceware.org/pipermail/systemtap/2021q4/027370.html + 4.5 release notes: https://sourceware.org/pipermail/systemtap/2021q2/027225.html + 4.4 release notes: https://sourceware.org/pipermail/systemtap/2020q4/027074.html + 4.3 release notes: https://sourceware.org/pipermail/systemtap/2020q2/026923.html + + Remove patches (upstream): + - systemtap-amend-fallback-comment-to-work-with-newer-gcc.patch + - systemtap-fix-strict-prototypes-in-autoconf-stack-trace-save-regs.c.patch + + Update systemtap.keyring for new signer + +------------------------------------------------------------------- +Wed Apr 28 16:46:32 UTC 2021 - Tony Jones + +- Adjust stap-server.conf to refer to /run not /var/run (bsc#1185068) + +------------------------------------------------------------------- +Mon Aug 24 12:13:19 UTC 2020 - Dominique Leuenberger + +- Use %{_tmpfilesdir} instead of wrong %{_libexecdir}/tmpfiles.d + that just coincidentally happened to match (boo#1174075). + +------------------------------------------------------------------- +Thu Feb 6 02:02:58 UTC 2020 - Tony Jones + +- Add recommends on kernel-devel (bsc#1158733) + +------------------------------------------------------------------- +Mon Feb 3 23:01:33 UTC 2020 - Tony Jones + +- Resolve protoype issue when invoking tracebacks (bsc#1161296) + Also dependent fix to handle GCC fallthrough + + New patch: systemtap-fix-strict-prototypes-in-autoconf-stack-trace-save-regs.c.patch + New patch: systemtap-amend-fallback-comment-to-work-with-newer-gcc.patch + +------------------------------------------------------------------- +Mon Jan 27 11:29:47 UTC 2020 - Dominique Leuenberger + +- Replace libebl-devel BuildRequires with libdw-devel: ebl is + being absorbed by libdw. + +------------------------------------------------------------------- +Fri Dec 6 17:29:35 UTC 2019 - Tony Jones + +- Update to version 4.2 + Release notes: https://sourceware.org/ml/systemtap/2019-q4/msg00044.html + + Delete patch: systemtap-support-wimplicit-fallthrough-vsprintf.patch + Delete patch: systemtap-support-wimplicit-fallthrough-gen_map.patch + +------------------------------------------------------------------- +Thu Nov 7 18:18:07 UTC 2019 - Tony Jones + +- Add support for gcc -Wimplicit-fallthrough to resolve compilation errors + of the form "this statement may fall through" + New patch: systemtap-support-wimplicit-fallthrough-vsprintf.patch + New patch: systemtap-support-wimplicit-fallthrough-gen_map.patch + +------------------------------------------------------------------- +Mon Oct 14 07:32:43 UTC 2019 - Martin Pluskal + +- Do not require exact version of systemtap-dtrace as build + counters are not same for different packages + +------------------------------------------------------------------- +Mon Sep 30 14:07:44 UTC 2019 - Michael Gorse + +- Moved the dtrace binary into a separate package to resolve build + cycle with glib2 (bsc#1145438). + +------------------------------------------------------------------- +Fri Aug 9 20:06:57 UTC 2019 - Tony Jones + +- Update to version 4.1. + Do not package systemtap-exporter. + 4.1 release notes: https://sourceware.org/ml/systemtap/2019-q2/msg00043.html + 4.0 release notes: https://sourceware.org/ml/systemtap/2018-q4/msg00018.html + +- Force autoreconf of configure to match systemtap-docs (tarball configure + is stale). + +------------------------------------------------------------------- +Mon Apr 15 13:40:09 UTC 2019 - jlee@suse.com + +- Add BuildRequire libavahi-devel, otherwise that the systemstap-server + and systemstap client do not work. (bsc#1132538) + +------------------------------------------------------------------- +Wed Jan 30 13:17:03 UTC 2019 - Dominique Leuenberger + +- BuildRequire pkgconfig(systemd) instead of systemd: allow to use + systemd-mini during build. +- Use %tmpfiles_create macro in -server package: consider the right + usage in transactional update cases. + +------------------------------------------------------------------- +Fri Jan 4 18:38:37 UTC 2019 - mgorse@suse.com + +- Remove glib2-devel from BuildRequires: it appears not to be used + and causes a build loop if glib2 is built with SDT markers + (bsc#1090047). + +------------------------------------------------------------------- +Fri Aug 3 16:50:41 UTC 2018 - sschricker@suse.de + +- Upgrade to version 3.3: + + Changelog: https://lwn.net/Articles/757030/ + + eBPF backend extensions, easier access to examples, adapting to + meltdown/spectre complications, real-time / high-cpu-count + concurrency fixes + +- Remove patches, because the issues were fixed upstream: + systemtap-fixes-for-gcc-8.patch + systemtap-change-extra_cflags-escape-processing.patch + +- Adjust patch for version 3.3: + systemtap-build-source-dir.patch + +- Added public key of "Frank Ch. Eigler ", + since he signed the new package + +------------------------------------------------------------------- +Fri Mar 23 23:54:17 UTC 2018 - tonyj@suse.com + +- GCC 8 fixes (bsc#1084642) + New patch: systemtap-fixes-for-gcc-8.patch + +------------------------------------------------------------------- +Fri Feb 16 15:28:22 UTC 2018 - matz@suse.com + +- Care for pecularities of build counter syncs between different + build rings: the Requires from sdt-devel can't use %release + for systemtap-headers, but we also don't want to just include + %version, so separate both totally: + * Add the include headers to sdt-devel again. + * Add Conflicts with systemtap-headers to care for the resulting + file conflicts. + * Remove Require from sdt-devel to systemtap-headers again. + +------------------------------------------------------------------- +Thu Feb 8 15:28:32 UTC 2018 - matz@suse.com + +- Don't include the headers files in sdt-devel +- Add systemtap-headers to Requires of sdt-devel, so that it + provides the same files as before. [fate#324969] + +------------------------------------------------------------------- +Mon Nov 20 23:01:35 UTC 2017 - tonyj@suse.com + +- Upgrade to version 3.2 + Changelog: https://sourceware.org/ml/systemtap/2017-q4/msg00096.html + Drop patch: systemtap-tweak-i386-argument-passing.patch (upstream) + Update keyring. + +- Fix issue with Kbuild handling of escaped paths (bsc#1067437) + Add patch: systemtap-change-extra_cflags-escape-processing.patch + +------------------------------------------------------------------- +Fri Nov 10 12:48:28 UTC 2017 - mpluskal@suse.com + +- Use pytho3 by default (fate#323526) + * Do not explicitly require python by subpackage, dependency gets + generated automatically + +------------------------------------------------------------------- +Thu Mar 30 19:42:04 UTC 2017 - tonyj@suse.com + +- Tweak i386 argument-passing (bsc#1030285) + New patch: systemtap-tweak-i386-argument-passing.patch + +------------------------------------------------------------------- +Tue Mar 28 19:32:02 UTC 2017 - jeffm@suse.com + +- Update to version 3.1 + Update keyring with new key + Changelog: + https://sourceware.org/ml/systemtap/2017-q1/msg00106.html + +------------------------------------------------------------------- +Fri Apr 1 19:28:53 CEST 2016 - tonyj@suse.de + +- Update to version 3.0 + Update keyring with new key + Update info in README-KEYRING + Changelog: + https://sourceware.org/ml/systemtap/2016-q1/msg00179.html + +------------------------------------------------------------------- +Tue Nov 10 00:32:54 UTC 2015 - tonyj@suse.com + +- Update to version 2.9. + Update keyring with new key + Changelog: + https://sourceware.org/ml/systemtap/2015-q4/msg00025.html + +------------------------------------------------------------------- +Fri Sep 11 17:59:49 UTC 2015 - tonyj@suse.com + +- Update to version 2.8. + Update keyring with new key + New file: README-KEYRING documenting how to update keyring + Changelog: + https://sourceware.org/ml/systemtap/2015-q2/msg00160.html + +------------------------------------------------------------------- +Fri Mar 27 17:03:48 UTC 2015 - mpluskal@suse.com + +- Update keyring with new key + +------------------------------------------------------------------- +Fri Mar 27 14:12:15 UTC 2015 - p.drouand@gmail.com + +- Update to version 2.7 + Changelog: + https://sourceware.org/ml/systemtap/2015-q1/msg00173.html +- Update systemtap-docdir-fix.diff + +------------------------------------------------------------------- +Tue Feb 17 20:49:14 UTC 2015 - mpluskal@suse.com + +- Add keyring and signature +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- +Tue Sep 9 06:05:47 UTC 2014 - tonyj@suse.com + +- Update to version 2.6 + Changelog: + 2.6: https://sourceware.org/ml/systemtap/2014-q3/msg00231.html + +------------------------------------------------------------------- +Sat May 17 19:34:40 UTC 2014 - coolo@suse.com + +- use %_rundir if available + +------------------------------------------------------------------- +Fri May 2 19:48:19 UTC 2014 - tonyj@suse.com + +- Update to version 2.5 + Changelog: + 2.5: https://sourceware.org/ml/systemtap/2014-q2/msg00103.html + +------------------------------------------------------------------- +Fri Nov 15 18:51:03 UTC 2013 - tonyj@suse.com + +- Update to version 2.4 + Changelog: + 2.4: http://sourceware.org/ml/systemtap/2013-q4/msg00165.html + +------------------------------------------------------------------- +Wed Aug 7 17:40:24 UTC 2013 - tonyj@suse.com + +- Update to version 2.3 + Changelog: + 2.3: http://sourceware.org/ml/systemtap/2013-q3/msg00062.html +- Refresh systemtap-build-source-dir.patch for context + +------------------------------------------------------------------- +Wed May 22 17:42:53 UTC 2013 - tonyj@suse.com + +- Upgrade to version 2.2.1 + Drop patch: systemtap-fix-for-kernels-without-vm_executable.patch + Refresh patch (context): systemtap-build-source-dir.patch + + Changelog: + 2.1: http://sourceware.org/ml/systemtap/2013-q1/msg00130.html + 2.2.1: http://sourceware.org/ml/systemtap/2013-q2/msg00138.html + +------------------------------------------------------------------- +Fri Feb 22 06:30:58 UTC 2013 - tonyj@suse.com + +- Change how systemtap looks for tracepoint header files + (bnc#796574, new patch: systemtap-build-source-dir.patch) +- Add libebl1 dependancy. Systemtap manually loads libebl backends and + the manual Requires: was incorrectly removed in a previous revision + (bnc#800335) + +------------------------------------------------------------------- +Fri Dec 14 23:42:06 UTC 2012 - tonyj@suse.com + +- Update to version 2.0 + Changelog: http://sourceware.org/ml/systemtap/2012-q4/msg00047.html +- Delete previous patches (present in version 2.0): + link-with-pthread.patch + systemtap-linux-types.patch +- Add patches: + systemtap-fix-for-kernels-without-vm_executable.patch + +------------------------------------------------------------------- +Wed Oct 17 12:20:17 UTC 2012 - fcrozat@suse.com + +- Fix build with new systemd location. + +------------------------------------------------------------------- +Fri Jul 27 10:29:19 UTC 2012 - aj@suse.de + +- Fix build with glibc 2.16 + +------------------------------------------------------------------- +Mon Jun 18 09:46:52 CEST 2012 - jslaby@suse.de + +- Upgrade to version 1.8 + Changelog: http://sourceware.org/ml/systemtap/2012-q2/msg00277.html + +------------------------------------------------------------------- +Sat Feb 18 01:33:56 UTC 2012 - tonyj@suse.com + +- Upgrade to version 1.7 + Changelog: http://sourceware.org/ml/systemtap/2012-q1/msg00097.html + +------------------------------------------------------------------- +Wed Nov 23 14:30:33 CET 2011 - aj@suse.de + +- Create tmpfiles during new install. + +------------------------------------------------------------------- +Wed Nov 2 10:54:26 CET 2011 - jslaby@suse.de + +- update to 1.6 + changes 1.5-1.6: http://sourceware.org/ml/systemtap/2011-q3/msg00105.html + changes 1.4-1.5: http://sourceware.org/ml/systemtap/2011-q2/msg00218.html + +------------------------------------------------------------------- +Fri Aug 19 08:38:29 UTC 2011 - tonyj@novell.com + +- Fix for bnc#710291 - systemtap: fails rpmlint check non-ghost-in-var-run + +------------------------------------------------------------------- +Mon May 2 15:11:31 UTC 2011 - idoenmez@novell.com + +- Add systemtap-1.4-gcc46.patch to fix compilation with gcc 4.6 + +------------------------------------------------------------------- +Tue Mar 15 17:50:11 CET 2011 - jslaby@suse.de + +- add ifdef CLONE_STOPPED to fix compilation on newer kernels + +------------------------------------------------------------------- +Fri Jan 21 18:46:18 UTC 2011 - tonyj@novell.com + +- Update to version 1.4 + Changes in this release: https://lkml.org/lkml/2011/1/17/101 + Drop patches: + systemtap-hppa.diff + systemtap-support-2.6.36.diff + systemtap_fix_mod_vs_del_timer_race.patch + systemtap_improve_gettimeofday_stability.patch + +------------------------------------------------------------------- +Fri Jan 14 14:32:11 UTC 2011 - trenn@novell.com + +- Hopefully fix bnc#664105: + Kernel segfault in kernel/timer.c - comm: stapio (process) - related to preloadtrace.ko + +------------------------------------------------------------------- +Mon Sep 13 11:25:26 UTC 2010 - coolo@novell.com + +- take fix for pr11940 from systemtap git + +------------------------------------------------------------------- +Sun Sep 5 18:39:44 UTC 2010 - bg@novell.com + +- fix build for hppa + +------------------------------------------------------------------- +Thu Aug 26 01:35:21 UTC 2010 - tonyj@novell.com + +- Update from version 1.1 to version 1.3 + Upstream release notes: + 1.3: http://sourceware.org/ml/systemtap/2010-q3/msg00098.html + 1.2: http://sourceware.org/ml/systemtap/2010-q1/msg00740.html + +------------------------------------------------------------------- +Wed Jul 21 12:51:32 CEST 2010 - vuntz@opensuse.org + +- Add python Requires to sdt-devel subpackage since dtrace is a + python script. + +------------------------------------------------------------------- +Thu Mar 11 23:56:17 UTC 2010 - tonyj@novell.com + +- Add dependancies for systemtap shell scripts (coreutils, zip, avahi) + +------------------------------------------------------------------- +Thu Mar 11 22:47:15 UTC 2010 - tonyj@novell.com + +- Update to version 1.1 +- Fixes for CVE-2009-4273 (second part, also known as CVE-2010-0412) and + CVE-2010-0411. +- Fix parsing error (systemtap-prevent-nested-arg.diff) + +------------------------------------------------------------------- +Wed Dec 2 23:51:24 UTC 2009 - tonyj@novell.com + +- Fixes for CVE-2009-2911, BNC#548361 + +------------------------------------------------------------------- +Fri Oct 2 18:57:14 CEST 2009 - tonyj@suse.de + +- updated to version 1.0: + * SystemTap frontend (stap) changes + - EXPERIMENTAL support for unprivileged users. + - -a ARCH allows cross compiling of scripts, stap-start-server arguments + extended to support starting a cross compiling server + - Change notion of architecture to be same as kernels + - Support output file switching by SIGUSR2 + - New experimental transport mechanism using ftrace's ring_buffer + - Reduction in memory consumption for scripts using many uprobes + - Support for recognizing DW_OP_{stack,implicit}_value DWARF expressions + * SystemTap script language changes + - Dwarf probes now support C++ scopes and so can be limited to classes or + namespaces. + - Preprocessor support for || and && + - Probe alias names may be overloaded (multiple aliases of same name) + * SystemTap tapset changes + - Enabling semaphore now used to reduce computation overhead of dorman + process().mark() probes. + - Many functions marked as usable by unprivileged users (return global info + or specific to user process). + - New netdev tapset probe points for monitoring network traffic and device + configurations. + - New task_backtrace function returns the current hex backtrace of any + arbitrary task in the system. + - Function is_myproc returns whether the current process is owned by user + which started systemtap script. + +------------------------------------------------------------------- +Thu Aug 13 15:55:14 CEST 2009 - tiwai@suse.de + +- updated to version 0.9.9: + * Systemwide kernel .function.return (kretprobe) maxactive overridden + with -DKRETACTIVE=nnn parameter. + * performance improvement in translation pass 2 + * new DW_OP_call_frame_CFA handling with elfutils 0.142 + * dwarf probes now show parameters and local variables in the verbose + listing mode (-L) + * symbol aliases are now resolved to their canonical dwarf names + * The syntax for dereferencing $target variables and @cast() gained new + capabilities + * For reading all probe variables, kernel.mark now supports $$vars and + $$parms, and process.syscall now supports $$vars. + * SNMP tapset for many network statistics + * dentry tapset to map kernel VFS directory entries to file or full + path names: d_path(), d_name() and reverse_path_walk(). + * SystemTap now has userspace markers in its own binaries + * More to see in NEWS + +------------------------------------------------------------------- +Tue Jul 21 08:47:11 CEST 2009 - tiwai@suse.de + +- corrected to use libexecdir +- fix summary and description + +------------------------------------------------------------------- +Tue Jun 16 16:24:28 CEST 2009 - tiwai@suse.de + +- updated to version 0.9.8: + * Module signing support + * Debuginfo suggestions when a script fails + * Using %M in print formats for hex dumps can now print entire + buffers + * Dwarfless syscalls: The nd_syscalls tapset is now available to + probe system calls without requiring kernel debug info. + * sid() returns the session ID of the current process + * stringat() indexes a single character from a string. + * New script examples + +------------------------------------------------------------------- +Wed May 20 13:02:00 CEST 2009 - tiwai@suse.de + +- split docs and examples to docs subpackage and generate from its + own spec file to cut off the dependency loop + +------------------------------------------------------------------- +Fri May 15 11:46:11 CEST 2009 - tiwai@suse.de + +- split to several subpackages, systemtap-runtime, -client, -server + and -sdt-devel (bnc#503088). + +------------------------------------------------------------------- +Fri May 8 16:43:08 CEST 2009 - tiwai@suse.de + +- updated to released version 0.9.7: + * Lots of fixes, improvements, see NEWS file for details + +------------------------------------------------------------------- +Thu Feb 19 16:55:48 CET 2009 - tiwai@suse.de + +- updated to systemtap snashot 20090214: + * Version bump to 0.8 + * Bunch of fixes and updates, see ChangeLog + * Fix for recent 2.6.29 kernels +- fixed doc build, using fop instead of direct xmlto pdf + +------------------------------------------------------------------- +Thu Feb 12 16:32:29 CET 2009 - tiwai@suse.de + +- backport the blacklist additions from upstream to fix possible + system crash (bnc#459387, bnc#473277) + +------------------------------------------------------------------- +Thu Feb 5 13:31:19 CET 2009 - tiwai@suse.de + +- Backport tapset/signal.stp to fix the signal probe problem + (bnc#468321) + +------------------------------------------------------------------- +Tue Feb 3 14:39:38 CET 2009 - tiwai@suse.de + +- Fix debugpath.exp with $SYSTEMTAP_DEBUGINFO_PATH (bnc#471811) + +------------------------------------------------------------------- +Thu Jan 29 12:58:42 CET 2009 - tiwai@suse.de + +- Fix procfs dir_entry count warning (bnc#470526) +- Improve the parsing of lineno checks (bnc#468247) + +------------------------------------------------------------------- +Thu Jan 15 08:22:24 CET 2009 - tiwai@suse.de + +- Fix quoting in Tcl scripts (bnc#461588) + +------------------------------------------------------------------- +Mon Jan 12 12:55:06 CET 2009 - tiwai@suse.de + +- Fix syntax errors with Tcl send_log (bnc#460886) + +------------------------------------------------------------------- +Thu Dec 18 16:59:23 CET 2008 - tiwai@suse.de + +- Fix stap failures with signal tapsets (bnc#459387) + +------------------------------------------------------------------- +Tue Dec 16 13:50:32 CET 2008 - tiwai@suse.de + +- Fix dependency on libebl1 (bnc#448331, #445783) +- Fix stap for 2.6.28 kernels + +------------------------------------------------------------------- +Fri Dec 12 16:32:35 CET 2008 - tiwai@suse.de + +- Don't assert of dwarf_getsrcfiles(). This hits recent SUSE + kernels (bnc#455992) +- Backport fix patches for stap-*-server scripts to run with + netcat (bnc#446686) + +------------------------------------------------------------------- +Mon Dec 8 14:09:01 CET 2008 - tiwai@suse.de + +- fixed unresolved path in man pages (bnc#457217) +- fixed build for old distros on OBS + +------------------------------------------------------------------- +Thu Dec 4 18:08:23 CET 2008 - tiwai@suse.de + +- fix ioblock.stp for SUSE 2.6.27.x kernel (bnc#456175) + +------------------------------------------------------------------- +Fri Nov 21 14:09:21 CET 2008 - tiwai@suse.de + +- Add the bound check of parameters to fix segfault (bnc#447551) + +------------------------------------------------------------------- +Tue Nov 4 13:57:24 CET 2008 - tiwai@suse.de + +- Fix systemtap assertion with CONFIG_RELOCATABLE (bnc#440351) + +------------------------------------------------------------------- +Thu Sep 11 17:14:47 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080906 + * Fix / clean up autotools stuff + * Ugly workaround for 2.6.27 and later kernel + * stap-server updates + * Lots of small fixes + +------------------------------------------------------------------- +Tue Aug 12 18:11:10 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080809 + * bump to 0.7.1 + * tutorials + * examples + * i386-fix merged + * previous patches are all merged in +- add latex2html to buildrequires for generating documents + +------------------------------------------------------------------- +Fri Jun 20 15:58:30 CEST 2008 - tiwai@suse.de + +- fix run on i386 (bnc#401970) +- don't include obsolete linux/compile.h. + +------------------------------------------------------------------- +Wed Jun 18 16:04:01 CEST 2008 - tiwai@suse.de + +- updated to snapshot 20080614: + * bump to version 0.7, man page updates, misc fixes + see ChangeLog for details + +------------------------------------------------------------------- +Fri Mar 14 14:15:17 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080308: + * configure fixes, compile option changes + * fixes for 2.6.25 kernel + +------------------------------------------------------------------- +Wed Jan 30 18:26:01 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080126 + * fix configure and automake stuff + * gcc 4.3 fix is included + * ufprobes fixes, improvements + * reorganized probe condition implementation. + +------------------------------------------------------------------- +Fri Jan 11 17:10:09 CET 2008 - tiwai@suse.de + +- updated to snapshot 20080105 +- fixed build of the snapshot with gcc 4.3 + +------------------------------------------------------------------- +Mon Nov 19 14:53:53 CET 2007 - tiwai@suse.de + +- enable gcc-4.3 patch (yes, we use only gcc4.3 now) +- updated to snapshot 20071117 + +------------------------------------------------------------------- +Thu Oct 25 12:53:04 CEST 2007 - tiwai@suse.de + +- disable gcc-4.3 fix again since it breaks older gccs... + +------------------------------------------------------------------- +Wed Oct 24 16:33:35 CEST 2007 - tiwai@suse.de + +- fix build with gcc 4.3 + +------------------------------------------------------------------- +Mon Oct 22 15:23:15 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20071020: + * bump up version 0.6 + * bunch of updates and fixes, see ChangeLog + +------------------------------------------------------------------- +Tue Aug 14 16:53:57 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070811: + * Updated -m MODNAME usage + * Rework on line editing functions + +------------------------------------------------------------------- +Mon Jul 16 17:39:33 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070714: + * configure fix for sqlite + * support for crash extension module + * new enum for type column in coverage_element + +------------------------------------------------------------------- +Wed Jul 4 12:22:34 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070630: + * auto-tools fixes, sqlite3 requirement +- add sqlite-devel and glib2-devel to buildrequires + +------------------------------------------------------------------- +Wed Jun 6 16:13:15 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070602: + * fix for gcc4.3 + * minor fixes in elaborate.* +- include the snapshot date into version string +- clean up spec file + +------------------------------------------------------------------- +Tue May 22 17:09:38 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070519: + * Updated temporary handlings + * Autoconf tweaks + * Performance improvements with const and temporary handlings + * Removed do_write and do_read probles, added aio_write, + aio_read, writev and readv probes. + +------------------------------------------------------------------- +Mon May 21 12:24:15 CEST 2007 - tiwai@suse.de + +- use the external elfutils packages. + +------------------------------------------------------------------- +Tue Apr 24 18:15:56 CEST 2007 - tiwai@suse.de + +- updated to snapshot 20070421 and elfutils-0.127: + * minor compile warning fixes + * add interruptible parameter + * improvement on documents + * fix for debugfs and relayfs mounts + * see ChangeLog for other changes + +------------------------------------------------------------------- +Mon Mar 19 17:25:52 CET 2007 - tiwai@suse.de + +- updated to snapshot 20070317: + including all fix patches + +------------------------------------------------------------------- +Thu Mar 8 15:24:56 CET 2007 - tiwai@suse.de + +- fix the handling of function arguments in more generic way + (#245310, #252311) + added a new option -P to switch the prologue-search behavior + +------------------------------------------------------------------- +Wed Mar 7 15:47:20 CET 2007 - tiwai@suse.de + +- fix misalignment of exception table entry on s390x (#249576) + +------------------------------------------------------------------- +Mon Feb 26 12:42:41 CET 2007 - tiwai@suse.de + +- fix crash with large H value in hist_linear() (#248430) + +------------------------------------------------------------------- +Fri Feb 23 16:43:53 CET 2007 - tiwai@suse.de + +- fix mmap syscall on s390x (#248110) + +------------------------------------------------------------------- +Thu Feb 15 13:20:32 CET 2007 - tiwai@suse.de + +- fix a wrong name of store_deref definition (#245544) + +------------------------------------------------------------------- +Wed Feb 14 16:39:39 CET 2007 - tiwai@suse.de + +- fix the handling of function arguments on s390x (#245310) + +------------------------------------------------------------------- +Tue Feb 6 14:51:54 CET 2007 - tiwai@suse.de + +- update to snapshot 20070203, bugfixes including: + * add missing sockets tapset support (#239346) + * fix the array membership (#242481) + +------------------------------------------------------------------- +Wed Jan 31 13:44:43 CET 2007 - tiwai@suse.de + +- turn on Autoprov again to fix broken dependency. + +------------------------------------------------------------------- +Tue Jan 30 12:01:03 CET 2007 - tiwai@suse.de + +- update to snapshot 20070120 and elfutils-0.125 to fix major + bugs (#238710): + * fixed libdw known bugs in elfutils 0.124 + * add the missing support of tapsetr/errno.stp for s390x + * fix conditionals in syscall tapset for s390x + * new macros to safely read/write values from kernel pointers + * fix the non-standard C behavior to handle NULL in an array + * fixed support for benchmarking mode with off-line code + * added support to allow user to use array size declarations + * reduce number of calls to stp_module_relocate within $tvar + functions + +------------------------------------------------------------------- +Tue Jan 9 19:30:00 CET 2007 - tiwai@suse.de + +- updated to the recent snapshot version (FATE 301670). + * fix cache bugs + * auto-tools fixes + * probe registartion rework + * allow negative numeric literals + * bugfixes/optmizations +- elfutls 1.2.4 + removed codes with problematic license in elfutils (#232894) + +------------------------------------------------------------------- +Thu Aug 24 19:10:59 CEST 2006 - tiwai@suse.de + +- update elfutils to 1.2.3, including vmlinux.debuginfo fix. + +------------------------------------------------------------------- +Thu Aug 24 18:20:39 CEST 2006 - tiwai@suse.de + +- fix the auto-lookup of vmlinux debuginfo for SUSE systems +- fix the stp compilation with 2.6.18 kernel + +------------------------------------------------------------------- +Wed Aug 9 15:27:09 CEST 2006 - tiwai@suse.de + +- updated to latest snapshot (version 0.5.8) + with elfutils-1.2.2. + +------------------------------------------------------------------- +Tue Apr 18 03:14:22 CEST 2006 - mason@suse.de + +- Update to latest snapshot + +------------------------------------------------------------------- +Sun Apr 9 20:32:35 CEST 2006 - mason@suse.de + +- created package + diff --git a/systemtap.keyring b/systemtap.keyring new file mode 100644 index 0000000..50f1db3 --- /dev/null +++ b/systemtap.keyring @@ -0,0 +1,65 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +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 +=AUk/ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/systemtap.spec b/systemtap.spec new file mode 100644 index 0000000..4d46161 --- /dev/null +++ b/systemtap.spec @@ -0,0 +1,187 @@ +# +# spec file for package systemtap +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if ! %{defined _rundir} +%define _rundir %{_localstatedir}/run +%endif +Name: systemtap +Version: 5.1 +Release: 0 +Summary: Instrumentation System +License: GPL-2.0-or-later +Group: Development/Tools/Debuggers +URL: https://sourceware.org/systemtap/ +Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz +Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc +Source2: %{name}.keyring +Source3: README-BEFORE-ADDING-PATCHES +Source4: README-KEYRING +Source5: stap-server.conf +Patch1: systemtap-build-source-dir.patch + +BuildRequires: autoconf >= 2.71 +BuildRequires: automake +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: libavahi-devel +BuildRequires: libcap-devel +BuildRequires: libdw-devel +BuildRequires: mozilla-nspr-devel +BuildRequires: mozilla-nss-devel +BuildRequires: mozilla-nss-tools +BuildRequires: pkgconfig +BuildRequires: python3-base +BuildRequires: sqlite-devel +BuildRequires: pkgconfig(json-c) +BuildRequires: pkgconfig(libdebuginfod) +BuildRequires: pkgconfig(systemd) +Requires: %{name}-dtrace = %{version} +Requires: %{name}-runtime = %{version}-%{release} +Recommends: kernel-devel +Obsoletes: systemtap-client < 1.5 + +%description +SystemTap is an instrumentation system for systems running Linux. +Developers can write instrumentation to collect data on the operation +of the system. + +%package runtime +Summary: Runtime environment for systemtap +Group: Development/Tools/Debuggers + +%description runtime +SystemTap is an instrumentation system for systems running Linux. +This package contains the runtime environment for systemtap programs. + +%package server +Summary: Systemtap server +Group: Development/Tools/Debuggers +Requires: %{name} = %{version}-%{release} +# dependancies for systemtap shell scripts +Requires: avahi +Requires: avahi-utils +Requires: coreutils +Requires: mozilla-nss-tools +Requires: unzip +Requires: zip + +%description server +SystemTap is an instrumentation system for systems running Linux. +This package contains the server component of systemtap. + +%package sdt-devel +Summary: Static probe support tools +# systemtap-headers provides the same header files +# as sdt-devel, so we must conflict. +Group: Development/Tools/Debuggers +Requires: %{name} = %{version}-%{release} +Conflicts: systemtap-headers + +%description sdt-devel +SystemTap is an instrumentation system for systems running Linux. +This package contains the support tools for static probes. + +%prep +%setup -q +%autopatch -p1 + +%build +autoreconf -fi +%configure \ + --disable-docs \ + --with-python3 \ + --docdir=%{_docdir}/systemtap +make %{?_smp_mflags} V=1 + +%install +%make_install +rm -f %{buildroot}%{_bindir}/dtrace +rm -f %{buildroot}%{_libexecdir}/systemtap/stap-server-request +# README, AUTHORS, NEWS, man3 and all examples packaged by systemtap-docs +# COPYING needs to stay in main for GPL +rm -rf %{buildroot}%{_docdir}/systemtap/ +rm -rf %{buildroot}%{_datadir}/systemtap/examples +rm -rf %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/cs/man3 +mkdir -p %{buildroot}%{_docdir}/systemtap/ +cp COPYING %{buildroot}%{_docdir}/systemtap/ +mkdir -p %{buildroot}%{_localstatedir}/cache/systemtap +mkdir -p %{buildroot}%{_localstatedir}/log +touch %{buildroot}%{_localstatedir}/log/stap-server.log +# config file for stap-server (/run now on tmpfs) +mkdir -p %{buildroot}%{_tmpfilesdir} +install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir} + +%fdupes %{buildroot}%{_datadir}/%{name} +%python3_fix_shebang + +%find_lang systemtap + +%post server +# Create tmpfiles +%tmpfiles_create %{_tmpfilesdir}/stap-server.conf + +%files +%{_bindir}/stap +%{_bindir}/stap-profile-annotate +%{_bindir}/stap-jupyter-container +%{_bindir}/stap-jupyter-install +%{_mandir}/man[17]/* +%{_mandir}/cs/man[17]/* +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/runtime +%{_datadir}/%{name}/interactive-notebook +%{_datadir}/%{name}/tapset +#packaged by systemtap-initscript in upstream +%dir %{_localstatedir}/cache/systemtap + +%files runtime -f systemtap.lang +%doc %{_docdir}/systemtap +%{_bindir}/staprun +%{_bindir}/stapsh +%{_bindir}/stap-merge +%{_bindir}/stap-report +%{_bindir}/stapbpf +%dir %{_libexecdir}/%{name} +%{_libexecdir}/%{name}/stapio +%{_libexecdir}/%{name}/stap-env +%{_libexecdir}/%{name}/stap-authorize-cert +%{_mandir}/man8/staprun.8* +%{_mandir}/man8/systemtap-service.8* +%{_mandir}/cs/man8/systemtap.8* +%{_mandir}/man8/stapsh.8* +%{_mandir}/cs/man8/stapsh.8* +%{_mandir}/man8/stapbpf.8* + +%files server +%dir %{_tmpfilesdir} +%{_tmpfilesdir}/stap-server.conf +%{_bindir}/stap-server +%{_libexecdir}/%{name}/stap-gen-cert +%{_libexecdir}/%{name}/stap-serverd +%{_libexecdir}/%{name}/stap-sign-module +%{_libexecdir}/%{name}/stap-start-server +%{_libexecdir}/%{name}/stap-stop-server +%{_mandir}/man8/stap-server.8* +%{_mandir}/cs/man8/stap-server.8* +%ghost %{_localstatedir}/log/stap-server.log +%ghost %dir %{_rundir}/stap-server + +%files sdt-devel +%{_includedir}/sys/*.h + +%changelog