summaryrefslogtreecommitdiff
path: root/bpf_jit_disasm.c
AgeCommit message (Expand)AuthorFilesLines
2013-05-27bpf: add minimal BPF JIT emitted image disassemblerDaniel Borkmann1-0/+207
();'>
Diffstat
='right'>2017-01-11 11:43:10 +0000
committerThomas Gleixner <tglx@linutronix.de>2017-01-11 16:43:30 +0100
commitad5013d5699d30ded0cdbbc68b93b2aa28222c6e (patch)
tree79658ac336208c6288df70bade304e494ee20ab0
parent6d6daa20945f3f598e56e18d1f926c08754f5801 (diff)
perf/x86/intel: Use ULL constant to prevent undefined shift behaviour
When x86_pmu.num_counters is 32 the shift of the integer constant 1 is exceeding 32bit and therefor undefined behaviour. Fix this by shifting 1ULL instead of 1. Reported-by: CoverityScan CID#1192105 ("Bad bit shift operation") Signed-off-by: Colin Ian King <colin.king@canonical.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Kan Liang <kan.liang@intel.com> Cc: Stephane Eranian <eranian@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Link: http://lkml.kernel.org/r/20170111114310.17928-1-colin.king@canonical.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat