Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
f09be5d1
Commit
f09be5d1
authored
Aug 09, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apps/ebpm/*: use LLIO ops based on the specified device
parent
a0effc32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ebpm.c
src/apps/ebpm/ebpm.c
+8
-1
No files found.
src/apps/ebpm/ebpm.c
View file @
f09be5d1
...
...
@@ -293,6 +293,7 @@ int main (int argc, char *argv[])
}
devio_err_e
err
=
DEVIO_SUCCESS
;
const
llio_ops_t
*
llio_ops
=
NULL
;
/* Check Dev_type */
switch
(
llio_type
)
{
case
ETH_DEV
:
...
...
@@ -312,6 +313,9 @@ int main (int argc, char *argv[])
ASSERT_TEST
(
err
==
DEVIO_SUCCESS
,
"Could not get dev_entry from config file"
,
err_exit
);
}
/* Get LLIO operations */
llio_ops
=
&
llio_ops_eth
;
break
;
case
PCIE_DEV
:
...
...
@@ -355,10 +359,13 @@ int main (int argc, char *argv[])
* on a larger system relying on systemd spawning, for instance */
ASSERT_TEST
(
fe_smio_id
==
0
,
"Invalid Dev_id for PCIE_DEV. Only "
"odd device IDs are available"
,
err_exit
,
0
);
llio_ops
=
&
llio_ops_pcie
;
break
;
default:
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[ebpm] Invalid Dev_type. Exiting ...
\n
"
);
llio_ops
=
NULL
;
goto
err_exit
;
}
...
...
@@ -462,7 +469,7 @@ int main (int argc, char *argv[])
char
devio_service_str
[
DEVIO_SERVICE_LEN
];
snprintf
(
devio_service_str
,
DEVIO_SERVICE_LEN
-
1
,
"BPM%u:DEVIO"
,
dev_id
);
devio_service_str
[
DEVIO_SERVICE_LEN
-
1
]
=
'\0'
;
/* Just in case ... */
devio_t
*
devio
=
devio_new
(
devio_service_str
,
dev_id
,
dev_entry
,
&
llio_ops_pcie
,
devio_t
*
devio
=
devio_new
(
devio_service_str
,
dev_id
,
dev_entry
,
llio_ops
,
broker_endp
,
verbose
,
devio_log_filename
);
ASSERT_ALLOC
(
devio
,
err_devio_alloc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment