hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/perf/util/probe-event.h
....@@ -4,8 +4,9 @@
44
55 #include <linux/compiler.h>
66 #include <stdbool.h>
7
-#include "intlist.h"
8
-#include "namespaces.h"
7
+
8
+struct intlist;
9
+struct nsinfo;
910
1011 /* Probe related configurations */
1112 struct probe_conf {
....@@ -15,9 +16,12 @@
1516 bool no_inlines;
1617 bool cache;
1718 int max_probes;
19
+ unsigned long magic_num;
1820 };
1921 extern struct probe_conf probe_conf;
2022 extern bool probe_event_dry_run;
23
+
24
+#define DEFAULT_PROBE_MAGIC_NUM 0xdeade12d /* u32: 3735937325 */
2125
2226 struct symbol;
2327
....@@ -27,6 +31,7 @@
2731 char *symbol; /* Base symbol */
2832 char *module; /* Module name */
2933 unsigned long offset; /* Offset from symbol */
34
+ unsigned long ref_ctr_offset; /* SDT reference counter offset */
3035 unsigned long address; /* Actual address of the trace point */
3136 bool retprobe; /* Return probe flag */
3237 };
....@@ -35,6 +40,7 @@
3540 struct probe_trace_arg_ref {
3641 struct probe_trace_arg_ref *next; /* Next reference */
3742 long offset; /* Offset value */
43
+ bool user_access; /* User-memory access */
3844 };
3945
4046 /* kprobe-tracer and uprobe-tracer tracing argument */
....@@ -80,6 +86,7 @@
8086 char *var; /* Variable name */
8187 char *type; /* Type name */
8288 struct perf_probe_arg_field *field; /* Structure fields */
89
+ bool user_access; /* User-memory access */
8390 };
8491
8592 /* Perf probe probing event (point + arg) */