diff options
| author | Dan Carpenter <[email protected]> | 2013-05-18 21:34:52 +0300 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2013-05-28 09:13:52 +0200 |
| commit | 13acac307528c9cd7dd9fa9c577419401527b464 (patch) | |
| tree | 32087915e4a5fc93333bea87590dc109bd833d78 /tools/perf/scripts/python | |
| parent | 62b8563979273424d6ebe9201e34d1acc133ad4f (diff) | |
perf/x86/intel: Prevent some shift wrapping bugs in the Intel uncore driver
We're trying to use 64 bit masks but the shifts wrap so we can't use the
high 32 bits. I've fixed this by changing several types to unsigned
long long.
This is a static checker fix. The one change which is clearly needed is
"mask = 0xff << (idx * 8);" where the author obviously intended to use
all 64 bits. The other changes are mostly to silence my static checker.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions