Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304908
b: refs/heads/master
c: 770a34a
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed May 2, 2012
1 parent 7464431 commit cbf9967
Show file tree
Hide file tree
Showing 2 changed files with 15 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: b809ac100e2f12ebf1b58ff522dba15651a77d27
refs/heads/master: 770a34a38b74982724dbb099225944b415f90281
14 changes: 14 additions & 0 deletions trunk/tools/perf/util/usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,18 @@ void perf_target__validate(struct perf_target *target)
sleep(1);
target->uid_str = NULL;
}

/* UID and CPU are mutually exclusive */
if (target->uid_str && target->cpu_list) {
ui__warning("UID switch overriding CPU\n");
sleep(1);
target->cpu_list = NULL;
}

/* PID/UID and SYSTEM are mutually exclusive */
if ((target->tid || target->uid_str) && target->system_wide) {
ui__warning("PID/TID/UID switch overriding CPU\n");
sleep(1);
target->system_wide = false;
}
}

0 comments on commit cbf9967

Please sign in to comment.