hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/kernel/trace/trace_events_inject.c
....@@ -192,6 +192,7 @@
192192 static int parse_entry(char *str, struct trace_event_call *call, void **pentry)
193193 {
194194 struct ftrace_event_field *field;
195
+ unsigned long irq_flags;
195196 void *entry = NULL;
196197 int entry_size;
197198 u64 val = 0;
....@@ -202,8 +203,9 @@
202203 if (!entry)
203204 return -ENOMEM;
204205
205
- tracing_generic_entry_update(entry, call->event.type,
206
- tracing_gen_ctx());
206
+ local_save_flags(irq_flags);
207
+ tracing_generic_entry_update(entry, call->event.type, irq_flags,
208
+ preempt_count());
207209
208210 while ((len = parse_field(str, call, &field, &val)) > 0) {
209211 if (is_function_field(field))