aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorFenghua Yu <[email protected]>2013-11-16 12:37:01 -0800
committerH. Peter Anvin <[email protected]>2013-11-16 18:00:58 -0800
commitf4cb1cc18f364d761d5614eb6293cccc6647f259 (patch)
treeaf6be6a073d887171d49401ba9dddaed9a537a99 /tools/perf/util/trace-event-scripting.c
parent1213959d4ad2f523290d0d7c94f712edef63852c (diff)
x86-64, copy_user: Remove zero byte check before copy user buffer.
Operation of rep movsb instruction handles zero byte copy. As pointed out by Linus, there is no need to check zero size in kernel. Removing this redundant check saves a few cycles in copy user functions. Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Fenghua Yu <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions