Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263314
b: refs/heads/master
c: 9ee31f6
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Renninger authored and Dominik Brodowski committed Aug 15, 2011
1 parent 3bfce33 commit 7874fad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c74d2bc5a9d43d33d6f16c1e706147162e2bc52
refs/heads/master: 9ee31f618a3c8209b2bd4bedd71fd5f2be7786bd
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ void print_results(int topology_depth, int cpu)
unsigned long long result;
cstate_t s;

/* Be careful CPUs may got resorted for pkg value do not just use cpu */
if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu))
return;

if (topology_depth > 2)
printf("%4d|", cpu_top.core_info[cpu].pkg);
if (topology_depth > 1)
Expand Down Expand Up @@ -389,6 +393,10 @@ int cmd_monitor(int argc, char **argv)
return EXIT_FAILURE;
}

/* Default is: monitor all CPUs */
if (bitmask_isallclear(cpus_chosen))
bitmask_setall(cpus_chosen);

dprint("System has up to %d CPU cores\n", cpu_count);

for (num = 0; all_monitors[num]; num++) {
Expand Down

0 comments on commit 7874fad

Please sign in to comment.