A very useful way to use scan-pagemap is to simply print out memory
usage of all processes on the system. Let this be the default behavior
of the program if no other options are given.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
read_args(argc, argv, &opts);
if (argc < 2) {
read_args(argc, argv, &opts);
if (argc < 2) {
- printf("A pid or process name "
- "needs to be given as an argument\n");
- print_help_and_die(argv[0]);
+ opts.parse_mask = PARSE_MAP_NAME;
+ opts.name = "";