libtraceevent: Have kvm_exit/enter be able to show guest function

Add two weak functions tep_plugin_kvm_get_func() and
tep_plugin_kvm_put_func() to allow applications that are processing both
the host data as well as the guest data, and knows how to map the exit IP
address from the guest to an actual function name of the guest.

Instead of showing:

  kvm_exit:     reason EPT_VIOLATION rip 0xffffffffc01b1f39 info 181 0

show:

  kvm_exit:     reason EPT_VIOLATION rip 0xffffffffc01b1f39 ipt_do_table+0xe9 info 181 0

Link: https://lore.kernel.org/linux-trace-devel/20220908180758.50c94238@rorschach.local.home

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2 files changed