hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/kernel/trace/trace_functions.c
....@@ -196,7 +196,7 @@
196196 * Need to use raw, since this must be called before the
197197 * recursive protection is performed.
198198 */
199
- local_irq_save(flags);
199
+ flags = hard_local_irq_save();
200200 cpu = raw_smp_processor_id();
201201 data = per_cpu_ptr(tr->array_buffer.data, cpu);
202202 disabled = atomic_inc_return(&data->disabled);
....@@ -208,7 +208,7 @@
208208 }
209209
210210 atomic_dec(&data->disabled);
211
- local_irq_restore(flags);
211
+ hard_local_irq_restore(flags);
212212 }
213213
214214 static struct tracer_opt func_opts[] = {