Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
9f1de3eedf
!20 netserver: suppress debug log by default
From: @baiguoguo 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-05-08 06:19:56 +00:00
baiguo
1e33546198 netserver: suppress debug log by default 2024-04-19 15:20:29 +08:00
openeuler-ci-bot
a809747418
!16 [sync] PR-14: 修改source和url保持一致
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-03-29 06:12:49 +00:00
cherry530
5c81b347da Change source
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 243d087a8b805390bf2047eaf9ded04a14b5324a)
2024-03-29 11:11:37 +08:00
openeuler-ci-bot
2c67d9c2ea
!12 【轻量级 PR】:修正changelog中的错误日期
From: @wangyueliang 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-06-10 01:18:44 +00:00
wangyueliang
e4f2d199d7
修正changelog中的错误日期 2022-06-08 06:25:02 +00:00
openeuler-ci-bot
0edd49056e !11 fix multiple defination of variable
From: @shdluan
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-08-05 03:40:37 +00:00
shdluan
93a6fb5cd6 fix multiple definition
Signed-off-by: shdluan <shdluan@163.com>
2021-08-04 09:19:42 +08:00
openeuler-ci-bot
f584104af1 !7 添加gcc依赖, 解决gcc command not found.
From: @shine_
Reviewed-by: @licihua
Signed-off-by: @licihua
2021-06-16 11:06:49 +00:00
shine_
143a0ea507 fix failed: gcc command not found. 2021-06-16 15:29:46 +08:00
openeuler-ci-bot
6d2cfc2f19 !6 add netperf.yaml file
From: @love_hangzhou
Reviewed-by: @liqingqing_1229,@overweight
Signed-off-by: @liqingqing_1229,@overweight
2021-06-07 09:24:03 +08:00
love_hangzhou
a7479d7227 add netperf yaml 2020-09-26 19:34:55 +08:00
5 changed files with 71 additions and 5 deletions

Binary file not shown.

View File

@ -0,0 +1,20 @@
--- ./src/nettest_omni.c.bak 2021-08-03 17:12:46.083392014 +0800
+++ ./src/nettest_omni.c 2021-08-03 17:13:38.299856016 +0800
@@ -456,15 +456,13 @@
/* different options for the sockets */
-int
+extern int
loc_nodelay, /* don't/do use NODELAY locally */
rem_nodelay, /* don't/do use NODELAY remotely */
loc_sndavoid, /* avoid send copies locally */
loc_rcvavoid, /* avoid recv copies locally */
rem_sndavoid, /* avoid send copies remotely */
- rem_rcvavoid; /* avoid recv_copies remotely */
-
-extern int
+ rem_rcvavoid, /* avoid recv_copies remotely */
loc_tcpcork,
rem_tcpcork,
local_connected,

View File

@ -2,13 +2,16 @@
Name: netperf
Version: 2.7.0
Release: 3
Release: 7
Summary: A Performance benchmark testing tool fro TCP/UDP
License: HP no-commercial
License: MIT
URL: http://github.com/HewlettPackard/netperf
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
BuildRequires:texinfo texinfo-tex
Patch1: netperf-fix-multiple-definition.patch
Patch2: netserver-suppress-debug-log-by-default.patch
BuildRequires: gcc texinfo texinfo-tex
%description
netperf is a collection of many different network performance benchmarking tools
@ -16,10 +19,12 @@ netperf is a collection of many different network performance benchmarking tool
%package_help
%prep
%setup -q
%setup -q -n %{name}-%{name}-%{version}
%patch1
%patch2
%build
%configure
%configure
%{__make} %{_smp_mflags}
%install
@ -50,6 +55,18 @@ netperf is a collection of many different network performance benchmarking tool
%{_mandir}/man1/*
%changelog
* Thu Apr 18 2024 baiguo <baiguo@kylinos.cn> - 2.7.0-7
- netserver: suppress debug log by default
* Fri Nov 11 2022 xu_ping <xuping33@h-partners.com> - 2.7.0-6
- change source pac
* Wed Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
- fix multiple defination of variable
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
- fixs failed: gcc command not found.
* Sat Sep 26 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-3
* Delete install-info in post and preun

4
netperf.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control:github
src_repo:HewlettPackard/netperf
tar_prefix: "^netperf-"
seperator: "."

View File

@ -0,0 +1,25 @@
From ef83b1fda6a95a675f60e4d01ecbdf9d4f9d7fd2 Mon Sep 17 00:00:00 2001
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: Thu, 18 Apr 2024 21:01:19 +0800
Subject: [PATCH] netserver: suppress debug log by default
---
src/netserver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git ./src/netserver.c ./src/netserver.c
index 9534722..b8b8c49 100644
--- ./src/netserver.c
+++ ./src/netserver.c
@@ -196,7 +196,7 @@ int daemon_parent = 0;
int not_inetd;
int want_daemonize;
int spawn_on_accept;
-int suppress_debug = 0;
+int suppress_debug = 1;
extern char *optarg;
extern int optind, opterr;
--
2.27.0