~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/include/linux/lockdep.h

Version: ~ [ linux-5.4-rc3 ] ~ [ linux-5.3.6 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.79 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.149 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.196 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.196 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.75 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _LIBLOCKDEP_LOCKDEP_H_
  3 #define _LIBLOCKDEP_LOCKDEP_H_
  4 
  5 #include <sys/prctl.h>
  6 #include <sys/syscall.h>
  7 #include <string.h>
  8 #include <limits.h>
  9 #include <linux/utsname.h>
 10 #include <linux/compiler.h>
 11 #include <linux/export.h>
 12 #include <linux/kern_levels.h>
 13 #include <linux/err.h>
 14 #include <linux/rcu.h>
 15 #include <linux/list.h>
 16 #include <linux/hardirq.h>
 17 #include <unistd.h>
 18 
 19 #define MAX_LOCK_DEPTH 63UL
 20 
 21 #define asmlinkage
 22 #define __visible
 23 
 24 #include "../../../include/linux/lockdep.h"
 25 
 26 struct task_struct {
 27         u64 curr_chain_key;
 28         int lockdep_depth;
 29         unsigned int lockdep_recursion;
 30         struct held_lock held_locks[MAX_LOCK_DEPTH];
 31         gfp_t lockdep_reclaim_gfp;
 32         int pid;
 33         int state;
 34         char comm[17];
 35 };
 36 
 37 #define TASK_RUNNING 0
 38 
 39 extern struct task_struct *__curr(void);
 40 
 41 #define current (__curr())
 42 
 43 static inline int debug_locks_off(void)
 44 {
 45         return 1;
 46 }
 47 
 48 #define task_pid_nr(tsk) ((tsk)->pid)
 49 
 50 #define KSYM_NAME_LEN 128
 51 #define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__)
 52 #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
 53 #define pr_warn pr_err
 54 #define pr_cont pr_err
 55 
 56 #define list_del_rcu list_del
 57 
 58 #define atomic_t unsigned long
 59 #define atomic_inc(x) ((*(x))++)
 60 
 61 #define print_tainted() ""
 62 #define static_obj(x) 1
 63 
 64 #define debug_show_all_locks()
 65 extern void debug_check_no_locks_held(void);
 66 
 67 static __used bool __is_kernel_percpu_address(unsigned long addr, void *can_addr)
 68 {
 69         return false;
 70 }
 71 
 72 #endif
 73 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp