Commit 7aa9e51b authored by Adam Wujek's avatar Adam Wujek 💬

userspace/tools: add -H parameter to wrs_dump_shmem to analyze shmem bin dumps

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 1d220170
......@@ -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, "ahH:")) != -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment