aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2011-08-07 18:30:38 +0900
committerPekka Enberg <[email protected]>2011-08-09 16:37:48 +0300
commitef62fb32b7b21731e41aea3c1e08bcdb407c9eb9 (patch)
treef508ace02d80e7b80791aff0ada407ae104de7e3 /tools/perf/util/scripting-engines/trace-event-python.c
parent6fbabb20faed9c08f8b96de4182bd721cbd1cfcf (diff)
slub: fix check_bytes() for slub debugging
The check_bytes() function is used by slub debugging. It returns a pointer to the first unmatching byte for a character in the given memory area. If the character for matching byte is greater than 0x80, check_bytes() doesn't work. Becuase 64-bit pattern is generated as below. value64 = value | value << 8 | value << 16 | value << 24; value64 = value64 | value64 << 32; The integer promotions are performed and sign-extended as the type of value is u8. The upper 32 bits of value64 is 0xffffffff in the first line, and the second line has no effect. This fixes the 64-bit pattern generation. Signed-off-by: Akinobu Mita <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Matt Mackall <[email protected]> Reviewed-by: Marcin Slusarz <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions