Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot 4ce908c42e !49 Remove requires on gcc and systemtap-devel
From: @SuperSix173 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-01-27 01:52:46 +00:00
SuperSix173 bd1901a111 Remove requires on gcc and systemtap-devel
Signed-off-by: SuperSix173 <liuchao173@huawei.com>
2024-01-25 19:25:19 +08:00
openeuler-ci-bot 9cd2c2c8cf !13 yum install安装后缺少man手册
From: @xinghe_1
Reviewed-by: @SuperSix173
Signed-off-by: @SuperSix173
2020-11-12 14:06:20 +08:00
jinzhimin369 09f8ceb92b add help for Recommends 2020-11-12 13:55:34 +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
openeuler-ci-bot 2af512aab0 !7 rebuild for dyninst update
Merge pull request !7 from HukunaMatata/openEuler-20.03-LTS
2020-05-19 10:07:13 +08:00
HukunaMatata 4f821dbd99 rebuild for dyninst update:wq 2020-05-18 09:26:38 +08:00
6 changed files with 19 additions and 123 deletions
-42
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)
-29
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
}
}
-44
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.
Binary file not shown.
+19 -8
View File
@@ -21,17 +21,13 @@
%undefine __brp_mangle_shebangs
Name: systemtap
Version: 4.1
Version: 4.3
Release: 3
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
@@ -456,6 +452,21 @@ exit 0
%{_mandir}/man[1378]/*
%changelog
* 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
* Fri Mar 13 2020 yuxiangyang <yuxiangyang4@huawei.com> - 4.1.3
- remove java-runtime
@@ -463,4 +474,4 @@ exit 0
- Delete the requirement of python2-pyparsing
* Mon Aug 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.1.1
- Package init
- Package init