aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2015-05-21 10:57:24 +0200
committerIngo Molnar <[email protected]>2015-05-27 09:17:43 +0200
commitaaf932e8161e45291cc85085b6d850f1bbdf53c8 (patch)
tree463268ffdddee2efed13e32d822ab90450353f73 /tools/perf/scripts/python/check-perf-trace.py
parentb32ed7f5de262b10633bb6c6dbb7f8ba46598cf4 (diff)
perf/x86/intel: Simplify the dynamic constraint code somewhat
We have two 'struct event_constraint' local variables in intel_get_excl_constraints(): 'cx' and 'c'. Instead of using 'cx' after the dynamic allocation, put all 'cx' inside the dynamic allocation block and use 'c' outside of it. Also use direct assignment to copy the structure; let the compiler figure it out. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions