void print_help(char **argv)
{
- printf("%s [-m <message size>] [-p <#process>] [-b] [-l] [-h]\n", argv[0]);
+ printf("%s [-m <message size>] [-p <#process>] [-b] [-l] [-t <#real_tries>] [-h]\n", argv[0]);
printf("-m: message size\n");
printf("-p: the number of process (default: the number of CPU)\n");
printf("-b: measure bandwidth\n");
printf("-l: measure latency\n");
printf("-t: number of real tries (default: 1000)\n");
- printf("-c: specifies whether client & server processes should be pinned "
- "to the same or different CPU cores (default: different)\n");
- printf("-v: verbose (both receiving & sending parties)\n");
printf("-h: print help page\n");
}
printf("Total bandwidth: %llu (/s)\n", bw);
}
+void print_help_p2p_gdbus(char **argv)
+{
+ printf("%s [-m <message size>] [-p <#processes>] [-b] [-l] [-t <#real_tries>]"
+ " [-c] [-v] [-h]\n"
+ "-m: message size\n"
+ "-p: number of processes (default: number of CPUs)\n"
+ "-b: measure bandwidth\n"
+ "-l: measure latency\n"
+ "-t: number of real tries (default: 1000)\n"
+ "-c: specifies whether client & server processes should be pinned"
+ " to the same or different CPU cores (default: different)\n"
+ "-v: verbose (both receiving & sending parties)\n"
+ "-h: print help page\n", argv[0]);
+}
+
int main(int argc, char *argv[])
{
int opt;
raw_data_on = true; /* dump raw data */
break;
case 'h':
- print_help(argv);
+ print_help_p2p_gdbus(argv);
exit(0);
}
}
if (!lt_on && !bw_on) {
+ print_help_p2p_gdbus(argv);
exit(0);
}