Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
32f99535
Commit
32f99535
authored
11 years ago
by
Guy Zana
Browse files
Options
Downloads
Patches
Plain Diff
netperf: add instruction on how to build netperf for osv
parent
b87d2d26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/netperf/netperf.txt
+37
-0
37 additions, 0 deletions
tools/netperf/netperf.txt
tools/netperf/osv.patch
+21
-0
21 additions, 0 deletions
tools/netperf/osv.patch
with
58 additions
and
0 deletions
tools/netperf/netperf.txt
0 → 100644
+
37
−
0
View file @
32f99535
To measure netwroking throughput we use netperf-2.6.0,
The netperf client isn't working in OS-v, only netserver,
and only after applying a small patch to the source.
How to compile netperf from source so it'll run on osv:
1. checkout the netperf-2.6.0 source from the following URL:
http://www.netperf.org/netperf/DownloadNetperf.html
2. compile regularly on linux, we're building the binaries that run on the host now.
$ ./configure
$ make
$ sudo make install
3. apply the osv patch to netperf
$ patch -p1 < osv.patch
4. build again
$ make clean
$ make CFLGAS="-fPIC -shared"
5. copy src/netserver and use it in OS-v.
Starting netserver
[osv]$ run /tools/netserver-osv -D -4 -f
Connecting using netperf
[linux]$ ./netperf-linux -H 192.168.122.100
This diff is collapsed.
Click to expand it.
tools/netperf/osv.patch
0 → 100644
+
21
−
0
View file @
32f99535
diff --git a/src/netlib.c b/src/netlib.c
index 206e002..8433d59 100644
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -888,7 +888,7 @@
void
stop_timer()
{
#ifndef WIN32
- alarm(0);
+ //alarm(0);
#else
/* at some point we may need some win32 equivalent */
if (hAlarm != (HANDLE) INVALID_HANDLE_VALUE) {
@@ -1095,6 +1095,7 @@
void
start_timer(int time)
{
+ return;
#ifdef WIN32
/*+*+SAF What if StartTimer is called twice without the first timer */
/*+*+SAF expiring? */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment