aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-01-04 15:59:58 -0800
committerNicholas Bellinger <[email protected]>2012-01-18 08:29:57 +0000
commit9db9da332250dbe662995703a4dcdd692112f0c3 (patch)
treebec92f208f928e41e84cc03ff9687e35eda6a062 /tools/perf/util/scripting-engines/trace-event-python.c
parent6816966a8418b980481b4dced7eddd1796b145e8 (diff)
target: Don't zero pages used for data buffers
Doing alloc_page(GFP_KERNEL | __GFP_ZERO) to get pages used for data buffers wastes a lot of CPU clearing pages that will be quickly be overwritten by the actual data. However, for emulated control commands such as INQUIRY and so on, the code does assume that the buffer is zeroed. To avoid this CPU overhead, skip the __GFP_ZERO for commands that are actually moving data, ie cmds that have SCF_SCSI_DATA_SG_IO_CDB set. Signed-off-by: Roland Dreier <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions