Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
7aa9e51b
Commit
7aa9e51b
authored
Mar 31, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: add -H parameter to wrs_dump_shmem to analyze shmem bin dumps
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
1d220170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
wrs_dump_shmem.c
userspace/tools/wrs_dump_shmem.c
+5
-1
No files found.
userspace/tools/wrs_dump_shmem.c
View file @
7aa9e51b
...
...
@@ -675,6 +675,7 @@ void print_info(char *prgname)
" -a Dump all rtu entries. By default only valid
\n
"
" entries are printed. Note there are 2048 htab
\n
"
" and 4096 vlan entries!
\n
"
" -H <dir> Open shmem dumps from the given directory
\n
"
" -h Show this message
\n
"
);
}
...
...
@@ -687,11 +688,14 @@ int main(int argc, char **argv)
int
i
;
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"ah"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"ah
H:
"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
dump_all_rtu_entries
=
1
;
break
;
case
'H'
:
wrs_shm_set_path
(
optarg
);
break
;
case
'h'
:
default:
print_info
(
argv
[
0
]);
...
...
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