File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ enum {
252
252
TRACE_EVENT_FL_WAS_ENABLED_BIT ,
253
253
TRACE_EVENT_FL_USE_CALL_FILTER_BIT ,
254
254
TRACE_EVENT_FL_TRACEPOINT_BIT ,
255
+ TRACE_EVENT_FL_KPROBE_BIT ,
255
256
};
256
257
257
258
/*
@@ -265,6 +266,7 @@ enum {
265
266
* it is best to clear the buffers that used it).
266
267
* USE_CALL_FILTER - For ftrace internal events, don't use file filter
267
268
* TRACEPOINT - Event is a tracepoint
269
+ * KPROBE - Event is a kprobe
268
270
*/
269
271
enum {
270
272
TRACE_EVENT_FL_FILTERED = (1 << TRACE_EVENT_FL_FILTERED_BIT ),
@@ -274,6 +276,7 @@ enum {
274
276
TRACE_EVENT_FL_WAS_ENABLED = (1 << TRACE_EVENT_FL_WAS_ENABLED_BIT ),
275
277
TRACE_EVENT_FL_USE_CALL_FILTER = (1 << TRACE_EVENT_FL_USE_CALL_FILTER_BIT ),
276
278
TRACE_EVENT_FL_TRACEPOINT = (1 << TRACE_EVENT_FL_TRACEPOINT_BIT ),
279
+ TRACE_EVENT_FL_KPROBE = (1 << TRACE_EVENT_FL_KPROBE_BIT ),
277
280
};
278
281
279
282
struct ftrace_event_call {
Original file line number Diff line number Diff line change @@ -1286,7 +1286,7 @@ static int register_kprobe_event(struct trace_kprobe *tk)
1286
1286
kfree (call -> print_fmt );
1287
1287
return - ENODEV ;
1288
1288
}
1289
- call -> flags = 0 ;
1289
+ call -> flags = TRACE_EVENT_FL_KPROBE ;
1290
1290
call -> class -> reg = kprobe_register ;
1291
1291
call -> data = tk ;
1292
1292
ret = trace_add_event_call (call );
You can’t perform that action at this time.
0 commit comments