Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
CDS
software
advLigoRTS
Commits
1e04d696
Commit
1e04d696
authored
5 years ago
by
Jonathan Hanks
Browse files
Options
Downloads
Patches
Plain Diff
Minor cleanups and debugging changes for testing omx_init
parent
3d47d155
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mx_stream/mx_fe.c
+11
-4
11 additions, 4 deletions
src/mx_stream/mx_fe.c
with
11 additions
and
4 deletions
src/mx_stream/mx_fe.c
+
11
−
4
View file @
1e04d696
...
...
@@ -77,8 +77,7 @@ void Usage()
{
fprintf
(
stderr
,
"Usage of omx_xmit:
\n
"
);
fprintf
(
stderr
,
"mx_fe -s <models> <OPTIONS>
\n
"
);
fprintf
(
stderr
,
" -b <buffer> : Name of the mbuf to concentrate the data to locally (defaults to ifo)
\n
"
);
fprintf
(
stderr
,
" -s <value> : Name of FE control models
\n
"
);
fprintf
(
stderr
,
" -b <buffer> : Name of the mbuf to read local data from (defaults to local_dc)
\n
"
);
fprintf
(
stderr
,
" -m <value> : Local memory buffer size in megabytes
\n
"
);
fprintf
(
stderr
,
" -l <filename> : log file name
\n
"
);
fprintf
(
stderr
,
" -v 1 : Enable verbose output
\n
"
);
...
...
@@ -299,7 +298,7 @@ main(int argc,char *argv[])
int
max_data_size_mb
=
64
;
int
max_data_size
=
0
;
int
error
=
0
;
char
*
buffer_name
=
"
ifo
"
;
char
*
buffer_name
=
"
local_dc
"
;
int
send_delay_ms
=
0
;
mx_endpoint_t
ep
;
...
...
@@ -333,13 +332,15 @@ main(int argc,char *argv[])
}
/* Get the parameters */
while
((
counter
=
getopt
(
argc
,
argv
,
"b:e:m:h:v:s:r:t:d:l:D:"
))
!=
EOF
)
while
((
counter
=
getopt
(
argc
,
argv
,
"b:e:m:h:v:r:t:d:l:D:"
))
!=
EOF
)
{
switch
(
counter
)
{
case
't'
:
rem_host
=
optarg
;
break
;
case
'b'
:
buffer_name
=
optarg
;
fprintf
(
stderr
,
"Buffer name = '%s'
\n
"
,
buffer_name
);
break
;
case
'm'
:
...
...
@@ -364,6 +365,7 @@ main(int argc,char *argv[])
break
;
case
'r'
:
his_eid
=
atoi
(
optarg
);
fprintf
(
stderr
,
"remoteeid = %d
\n
"
,
his_eid
);
break
;
case
'v'
:
do_verbose
=
atoi
(
optarg
);
...
...
@@ -381,6 +383,9 @@ main(int argc,char *argv[])
case
'D'
:
send_delay_ms
=
atoi
(
optarg
);
break
;
default:
fprintf
(
stderr
,
"Not handling argument '%c'
\n
"
,
counter
);
}
}
...
...
@@ -411,6 +416,8 @@ main(int argc,char *argv[])
cycle_data_size
=
(
max_data_size
-
sizeof
(
daq_multi_cycle_header_t
))
/
DAQ_NUM_DATA_BLOCKS_PER_SECOND
;
cycle_data_size
-=
(
cycle_data_size
%
8
);
fprintf
(
stderr
,
"ifo mapped to %p
\n
"
,
ifo
);
// Setup signal handler to catch Control C
signal
(
SIGINT
,
intHandler
);
sleep
(
1
);
...
...
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