lock_tracer.h 338 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef LOCK_TRACER_H__
  3. #define LOCK_TRACER_H__ 1
  4. #include <linux/types.h>
  5. #include <linux/kprobes.h>
  6. #include <asm/atomic.h>
  7. #include "../ktracer.h"
  8. #define LOCK_TRACER_SYMBOL_NAME "mutex_lock_nested"
  9. extern struct kretprobe lock_probe;
  10. extern atomic_t lock_calls;
  11. #endif // LOCK_TRACER_H__