aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-04-27 21:47:45 +0200
committerKeith Busch <[email protected]>2023-06-21 09:41:40 -0700
commit9d16d264775b9a10f3f5b5db768d7f51294b2a63 (patch)
tree56587c5e6fca7547284f60f6db11fe736f940e78 /tools/perf/util/scripting-engines/trace-event-python.c
parentd0dd594bedc57f9be2af2af170bf56f9c3f2376e (diff)
nvmet: Reorder fields in 'struct nvmet_ns'
Group some variables based on their sizes to reduce holes. On x86_64, this shrinks the size of 'struct nvmet_ns' from 520 to 512 bytes. When such a structure is allocated in nvmet_ns_alloc(), because of the way memory allocation works, when 520 bytes were requested, 1024 bytes were allocated. So, on x86_64, this change saves 512 bytes per allocation. Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions