aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorHassan Naveed <[email protected]>2019-11-15 23:44:42 +0000
committerSteven Rostedt (VMware) <[email protected]>2019-11-22 19:47:41 -0500
commit0e24220821b0e0e330a18bfef29ac6396545d62e (patch)
treeb184533336bdad135bc7f38b3c06bceaac9c661b /fs/ubifs/commit.c
parent89ed42495ef4a020435f2b999093bb5731eeb8b9 (diff)
tracing: Use xarray for syscall trace events
Currently, a lot of memory is wasted for architectures like MIPS when init_ftrace_syscalls() allocates the array for syscalls using kcalloc. This is because syscalls numbers start from 4000, 5000 or 6000 and array elements up to that point are unused. Fix this by using a data structure more suited to storing sparsely populated arrays. The XARRAY data structure, implemented using radix trees, is much more memory efficient for storing the syscalls in question. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Hassan Naveed <[email protected]> Reviewed-by: Paul Burton <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions