Skip to content
Snippets Groups Projects
Commit d60f2033 authored by Luis Gerhorst's avatar Luis Gerhorst
Browse files

measuremore: insert checkpoint into tracepoint macro

Required to discover conditions that lead to measurement results
delivered by measuremore core.

By hooking into the existing kernel tracpoints macro, we can record a
checkpoint whenever it is used. Kernel checkpoints exist at various
places inside existing kernel code, thus this allows for a detailed
analysis but in return introduces more overhead than the default
measuremore checkpoints.
parent 386f28ea
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#include <linux/cpumask.h>
#include <linux/rcupdate.h>
#include <linux/tracepoint-defs.h>
#include <linux/measuremore.h>
struct module;
struct tracepoint;
......@@ -182,6 +183,7 @@ extern void syscall_unregfunc(void);
extern struct tracepoint __tracepoint_##name; \
static inline void trace_##name(proto) \
{ \
memo_checkpoint("trace_" #name); \
if (static_key_false(&__tracepoint_##name.key)) \
__DO_TRACE(&__tracepoint_##name, \
TP_PROTO(data_proto), \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment