@dberesford, nearForm.
A specialised use of logging to record information about a programs execution
sudo find /sys/kernel/debug/tracing/events -type d
open, connect, accept, read, select/poll
sys_enter_open, sys_exit_open, sys_enter_connect, sys_exit_connect, etc
lttng create my-session
lttng enable-event --kernel --all
lttng add-context -k -t pid -t vpid
lttng start
do stuff!
lttng stop
lttng destroy
TRACEPOINT_EVENT(
hello_world,
my_first_tracepoint,
TP_ARGS(
int, my_integer_arg,
char*, my_string_arg
), TP_FIELDS(
ctf_string(my_string_field, my_string_arg)
ctf_integer(int, my_integer_field, my_integer_arg)
)
)
...
tracepoint(hello_world, my_first_tracepoint, 23, "hi there!");