unlock_tracer.c 439 B

12345678910111213141516
  1. // SPDX-License-Identifier: GPL-2.0+
  2. #include "unlock_tracer.h"
  3. #include "linux/stddef.h"
  4. static int unlock_entry_handler(struct kretprobe_instance *instance,
  5. struct pt_regs *regs)
  6. {
  7. return tracer_update_calls(instance,
  8. offsetof(struct tracer_data, unlock_calls));
  9. }
  10. struct kretprobe unlock_probe = { .entry_handler = unlock_entry_handler,
  11. .kp.symbol_name = UNLOCK_TRACER_SYMBOL_NAME,
  12. .maxactive = MAX_ACTIVE };