summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHassan Naveed <hnaveed@wavecomp.com>2019-11-15 23:44:42 +0000
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-11-22 19:47:41 -0500
commit0e24220821b0e0e330a18bfef29ac6396545d62e (patch)
treeb184533336bdad135bc7f38b3c06bceaac9c661b /samples
parent89ed42495ef4a020435f2b999093bb5731eeb8b9 (diff)
downloadlinux-0e24220821b0e0e330a18bfef29ac6396545d62e.tar.gz
linux-0e24220821b0e0e330a18bfef29ac6396545d62e.tar.bz2
linux-0e24220821b0e0e330a18bfef29ac6396545d62e.zip
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/20191115234314.21599-1-hnaveed@wavecomp.com Signed-off-by: Hassan Naveed <hnaveed@wavecomp.com> Reviewed-by: Paul Burton <paulburton@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions