summaryrefslogtreecommitdiffstats
path: root/samples/mic
diff options
context:
space:
mode:
authorHassan Naveed <hnaveed@wavecomp.com>2019-11-16 00:44:42 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-11-23 01:47:41 +0100
commit0e24220821b0e0e330a18bfef29ac6396545d62e (patch)
treeb184533336bdad135bc7f38b3c06bceaac9c661b /samples/mic
parenttracing: Sample module to demonstrate kernel access to Ftrace instances. (diff)
downloadlinux-0e24220821b0e0e330a18bfef29ac6396545d62e.tar.xz
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/mic')
0 files changed, 0 insertions, 0 deletions