aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorDave Kleikamp <[email protected]>2014-03-14 10:42:01 -0500
committerDavid S. Miller <[email protected]>2014-03-17 15:54:52 -0400
commit1535bd8adbdedd60a0ee62e28fd5225d66434371 (patch)
tree6797e19f2f4362fdaf5a38d95b87aba771a21b23 /tools/perf/util/scripting-engines/trace-event-perl.c
parente58e241c1788856f69d58821e91e5c988905252d (diff)
sparc64: don't treat 64-bit syscall return codes as 32-bit
When checking a system call return code for an error, linux_sparc_syscall was sign-extending the lower 32-bit value and comparing it to -ERESTART_RESTARTBLOCK. lseek can return valid return codes whose lower 32-bits alone would indicate a failure (such as 4G-1). Use the whole 64-bit value to check for errors. Only the 32-bit path should sign extend the lower 32-bit value. Signed-off-by: Dave Kleikamp <[email protected]> Acked-by: Bob Picco <[email protected]> Acked-by: Allen Pais <[email protected]> Cc: David S. Miller <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions