sched_tracer.c 410 B

1234567891011121314
  1. // SPDX-License-Identifier: GPL-2.0+
  2. #include "sched_tracer.h"
  3. static int sched_entry_handler(struct kretprobe_instance *instance,
  4. struct pt_regs *regs)
  5. {
  6. return tracer_update_calls(instance,
  7. offsetof(struct tracer_data, sched_calls));
  8. }
  9. struct kretprobe sched_probe = { .entry_handler = sched_entry_handler,
  10. .kp.symbol_name = SCHED_TRACER_SYMBOL_NAME,
  11. .maxactive = MAX_ACTIVE };