Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5b3e068113
!60 【轻量级pr】用”package_help“宏替换help子包声明
From: @he-jiuwang 
Reviewed-by: @SuperSix173 
Signed-off-by: @SuperSix173
2024-09-13 03:30:35 +00:00
chengsongyuxuan
862f50bedb Added Buildarch:noarch to the help subpackage 2024-08-21 14:32:27 +08:00
openeuler-ci-bot
c2fd24aa52
!50 [sync] PR-49: Remove requires on gcc and systemtap-devel
From: @openeuler-sync-bot 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-01-27 03:04:27 +00:00
SuperSix173
b083ac5c14 Remove requires on gcc and systemtap-devel
Signed-off-by: SuperSix173 <liuchao173@huawei.com>
(cherry picked from commit bd1901a111af9f04db7839f52a9dc1011480ad83)
2024-01-27 09:52:57 +08:00
openeuler-ci-bot
b00b63978c !16 [sync] PR-13: yum install安装后缺少man手册
From: @openeuler-sync-bot
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
2021-05-22 21:01:51 +08:00
jinzhimin369
cf7239a74d add help for Recommends
(cherry picked from commit 09f8ceb92b702cec5b82a6ef8493781d0103e124)
2021-05-21 13:42:16 +08:00
openeuler-ci-bot
2445e8f8a9 !11 【LTS升级】systemtap升级到最新版本
Merge pull request !11 from xinghe/openEuler-20.03-LTS
2020-08-27 17:30:34 +08:00
jinzhimin369
49a96cfc25 update version 2020-08-26 20:19:49 +08:00
openeuler-ci-bot
137c58c3a4 !10 rebuild for requirement package update
Merge pull request !10 from 杨壮壮/openEuler-20.03-LTS
2020-08-18 21:23:20 +08:00
yang_zhuang_zhuang
aececd0756 rebuild for requirement package update 2020-08-18 20:55:41 +08:00
6 changed files with 19 additions and 122 deletions

View File

@ -1,42 +0,0 @@
--- a/tapset/linux/ipmib.stp
+++ b/tapset/linux/ipmib.stp
@@ -271,7 +271,7 @@
* IPSTATS_MIB_INUNKNOWNPROTOS)
*/
/* icmp_send() is called by ip_local_deliver_finish() */
-probe ipmib.InUnknownProtos=kernel.function("icmp_send")
+probe ipmib.InUnknownProtos=kernel.function("__icmp_send")
{
skb = $skb_in;
op = 1;
@@ -360,7 +360,7 @@
* counted in the global @ReasmTimeout (equivalent to SNMP's MIB
* IPSTATS_MIB_REASMTIMEOUT)
*/
-probe ipmib.ReasmTimeout=kernel.function("icmp_send")
+probe ipmib.ReasmTimeout=kernel.function("__icmp_send")
{
skb = $skb_in;
op = 0;
--- a/tapset/linux/linuxmib.stp
+++ b/tapset/linux/linuxmib.stp
@@ -30,7 +30,7 @@
probe _linuxmib.DelayedACKs.A = kernel.function("tcp_send_ack")
{
- sk=$sk
+ sk=pointer_arg(1)
if ( !indelack_timer[sk] ) next
op=1
key = linuxmib_filter_key(sk,op);
--- a/testsuite/systemtap.examples/network/tcp_trace.stp
+++ b/testsuite/systemtap.examples/network/tcp_trace.stp
@@ -192,7 +192,7 @@
}
}
-probe kernel.function("tcp_transmit_skb")
+probe kernel.function("__tcp_transmit_skb")
{
sk = $sk
key = filter_key(sk)

View File

@ -1,29 +0,0 @@
--- a/testsuite/systemtap.examples/general/tapset/python3_local.stp
+++ b/testsuite/systemtap.examples/general/tapset/python3_local.stp
@@ -182,7 +182,7 @@
n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used;
if (i > n || entries == 0)
return 0
- return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_hash
+ return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_hash
}
# FUNCTION P3_GET_DICT_KEY
@@ -195,7 +195,7 @@
n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used;
if (i > n || entries == 0)
return 0
- return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_key
+ return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_key
}
# FUNCTION P3_GET_DICT_VALUE
@@ -214,7 +214,7 @@
n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used;
if (i > n || entries == 0)
return 0
- return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_value
+ return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_value
}
}

View File

@ -1,44 +0,0 @@
diff --git a/testsuite/systemtap.examples/general/tapset/python_local.stpm b/testsuite/systemtap.examples/general/tapset/python_local.stpm
--- a/testsuite/systemtap.examples/general/tapset/python_local.stpm
+++ b/testsuite/systemtap.examples/general/tapset/python_local.stpm
@@ -8,4 +8,39 @@
@define PYTHON3_LIBRARY
%(
- "/usr/lib64/libpython3.4m.so.1.0"
+ "/usr/lib64/libpython3.7m.so.1.0"
%)
+
+@define Py3DictKeysObject(object) %(
+ @cast(@object, "PyDictKeysObject", @PYTHON3_LIBRARY)
+ %)
+@define Py3DictKeyEntry(object) %(
+ @cast(@object, "PyDictKeyEntry", @PYTHON3_LIBRARY)
+ %)
+
+@define DK_SIZE(dk) %(
+ @Py3DictKeysObject(@dk)->dk_size
+%)
+@define DK_IXSIZE(dk) %(
+ %( CONFIG_64BIT == "y" %?
+ %( CONFIG_COMPAT == "y" %?
+ (@__compat_task
+ ? (@DK_SIZE(@dk) <= 0xff ? 1 : (@DK_SIZE(@dk) <= 0xffff ? 2
+: 4))
+ : (@DK_SIZE(@dk) <= 0xff ?
+ 1 : (@DK_SIZE(@dk) <= 0xffff ?
+ 2 : (@DK_SIZE(@dk) <= 0xffffffff ? 4 : 8))))
+ %:
+ (@DK_SIZE(@dk) <= 0xff ?
+ 1 : (@DK_SIZE(@dk) <= 0xffff ?
+ 2 : (@DK_SIZE(@dk) <= 0xffffffff ? 4 : 8)))
+ %)
+ %:
+ (@DK_SIZE(@dk) <= 0xff ? 1 : (@DK_SIZE(@dk) <= 0xffff ? 2 : 4))
+ %)
+%)
+
+@define DK_ENTRIES(dk) %(
+ (@choose_defined(@Py3DictKeysObject(@dk)->dk_entries,
+(&@Py3DictKeyEntry(&@Py3DictKeysObject(@dk)->dk_indices[@DK_SIZE(@dk) *
+@DK_IXSIZE(@dk)]))))
+%)

Binary file not shown.

BIN
systemtap-4.3.tar.gz Normal file

Binary file not shown.

View File

@ -21,17 +21,13 @@
%undefine __brp_mangle_shebangs
Name: systemtap
Version: 4.1
Version: 4.3
Release: 4
Summary: Linux trace and probe tool
License: GPLv2+ and Public Domain
URL: http://sourceware.org/systemtap
Source: https://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
Patch0: fix-py3example-script-run-fail.patch
Patch1: fix-py3example-script-run-fail-2.patch
Patch2: fix-network-tcp-test.patch
BuildRequires: gcc-c++ emacs systemd python3-setuptools
BuildRequires: gettext-devel rpm-devel readline-devel
BuildRequires: pkgconfig(nss) pkgconfig(avahi-client)
@ -48,7 +44,7 @@ BuildRequires: crash-devel zlib-devel
%endif
Requires: systemtap-client = %{version}-%{release}
Requires: systemtap-devel = %{version}-%{release}
Recommends: %{name}-help = %{version}-%{release}
%description
SystemTap is an instrumentation system for systems running Linux.
@ -59,7 +55,7 @@ the components needed to locally develop and execute systemtap scripts.
%package devel
Summary: Programmable system-wide instrumentation system - development headers, tools
License: GPLv2+
Requires: gcc make kernel-devel systemd
Requires: make kernel-devel systemd
%description devel
This package contains the components needed to compile a systemtap
@ -166,6 +162,7 @@ to remote requesters on demand.
%package help
Summary: systemtap manual
Buildarch: noarch
License: GPLv2+
URL: http://sourceware.org/systemtap
@ -456,6 +453,21 @@ exit 0
%{_mandir}/man[1378]/*
%changelog
* Wed Aug 21 2024 chengsongyuxuan <chengsongyuxuan@cqsoftware.com.cn> - 4.3-4
- Add 'Buildarch: noarch' to the help subpackage.
* Thu Jan 25 2024 liuchao <liuchao173@huawei.com> - 4.3-3
- Remove requires on gcc and systemtap-devel
* Thu Nov 12 2020 xinghe <xinghe1@huawei.com> - 4.3-2
- add help for Recommends
* Wed Aug 26 2020 xinghe <xinghe1@huawei.com> - 4.3-1
- update to 4.3
* Tue Aug 18 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 4.1.5
- rebuild for requirement package update
* Mon May 18 2020 yuxiangyang <yuxiangyang4@huawei.com> - 4.1.4
- rebuild for dyninst update