Trace function graph after a page fault

This commit is contained in:
Rodrigo Arias 2024-07-10 11:34:40 +02:00
parent 6a63798308
commit 93936cbe14
2 changed files with 9 additions and 0 deletions

View File

@ -1113,3 +1113,4 @@ and then begins filling it, printing the progress in the output.
written=53248K, addr=0x3f9ec00020 OK
written=57344K, addr=0x3f9f000020 OK
Let's see if we can trace the page fault.

View File

@ -88,6 +88,14 @@
export PATH=${config.system.build.extraUtils}/bin
mkdir -p /sys/kernel/debug/
mount -t debugfs none /sys/kernel/debug/
td=/sys/kernel/debug/tracing
echo nop > $td/current_tracer
echo 100 > $td/max_graph_depth
echo do_page_fault > $td/set_graph_function
echo function_graph > $td/current_tracer
#memtool chain $((512 * 1024))
memtool fill $((512 * 1024 * 1024))