* Tools
+ Add -e or --get-last-cpu-location to hwloc-ps to report where
processes/threads run instead of where they are bound.
+ + Add -e as a synonym to --get-last-cpu-location in hwloc-bind.
Version 1.8.0
When combined with \fB\-\-membind\fR, report the memory binding
instead of CPU binding.
.TP
-\fB\-\-get-last-cpu-location\fR
+\fB\-e\fR \fB\-\-get-last-cpu-location\fR
Report the last processors where the process ran.
Note that the result may already be outdated when reported since
the operating system may move the process to other processors
fprintf(where, " --single Bind on a single CPU to prevent migration\n");
fprintf(where, " --strict Require strict binding\n");
fprintf(where, " --get Retrieve current process binding\n");
- fprintf(where, " --get-last-cpu-location\n"
+ fprintf(where, " -e --get-last-cpu-location\n"
" Retrieve the last processors where the current process ran\n");
fprintf(where, " --pid <pid> Operate on process <pid>\n");
fprintf(where, " --taskset Use taskset-specific format when displaying cpuset strings\n");
taskset = 1;
goto next;
}
- else if (!strncmp (argv[0], "--get-last-cpu-location", 10)) {
+ else if (!strcmp (argv[0], "-e") || !strncmp (argv[0], "--get-last-cpu-location", 10)) {
get_last_cpu_location = 1;
goto next;
}