extern void abort(void); #include void reach_error() { assert(0); } /* Generated by CIL v. 1.5.1 */ /* print_CIL_Input is false */ extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void avoid_zero(int y) { if (!y) { abort(); } } typedef unsigned char __u8; typedef short __s16; typedef unsigned short __u16; typedef int __s32; typedef unsigned int __u32; typedef unsigned long long __u64; typedef signed char s8; typedef unsigned char u8; typedef unsigned short u16; typedef int s32; typedef unsigned int u32; typedef long long s64; typedef unsigned long long u64; typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; typedef int __kernel_pid_t; typedef __kernel_long_t __kernel_suseconds_t; typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef long long __kernel_loff_t; typedef __kernel_long_t __kernel_time_t; typedef __kernel_long_t __kernel_clock_t; typedef int __kernel_timer_t; typedef int __kernel_clockid_t; typedef __u16 __be16; typedef __u32 __be32; typedef __u32 __wsum; struct kernel_symbol { unsigned long value ; char const *name ; }; struct module; typedef __u32 __kernel_dev_t; typedef __kernel_dev_t dev_t; typedef unsigned short umode_t; typedef __kernel_pid_t pid_t; typedef __kernel_clockid_t clockid_t; typedef _Bool bool; typedef __kernel_uid32_t uid_t; typedef __kernel_gid32_t gid_t; typedef __kernel_loff_t loff_t; typedef __kernel_size_t size_t; typedef __kernel_ssize_t ssize_t; typedef __kernel_time_t time_t; typedef __s32 int32_t; typedef __u8 uint8_t; typedef __u32 uint32_t; typedef __u64 uint64_t; typedef unsigned long sector_t; typedef unsigned long blkcnt_t; typedef u64 dma_addr_t; typedef unsigned int gfp_t; typedef unsigned int fmode_t; typedef unsigned int oom_flags_t; struct __anonstruct_atomic_t_6 { int counter ; }; typedef struct __anonstruct_atomic_t_6 atomic_t; struct __anonstruct_atomic64_t_7 { long counter ; }; typedef struct __anonstruct_atomic64_t_7 atomic64_t; struct list_head { struct list_head *next ; struct list_head *prev ; }; struct hlist_node; struct hlist_head { struct hlist_node *first ; }; struct hlist_node { struct hlist_node *next ; struct hlist_node **pprev ; }; struct callback_head { struct callback_head *next ; void (*func)(struct callback_head * ) ; }; struct pt_regs { unsigned long r15 ; unsigned long r14 ; unsigned long r13 ; unsigned long r12 ; unsigned long bp ; unsigned long bx ; unsigned long r11 ; unsigned long r10 ; unsigned long r9 ; unsigned long r8 ; unsigned long ax ; unsigned long cx ; unsigned long dx ; unsigned long si ; unsigned long di ; unsigned long orig_ax ; unsigned long ip ; unsigned long cs ; unsigned long flags ; unsigned long sp ; unsigned long ss ; }; struct __anonstruct____missing_field_name_9 { unsigned int a ; unsigned int b ; }; struct __anonstruct____missing_field_name_10 { u16 limit0 ; u16 base0 ; unsigned char base1 ; unsigned char type : 4 ; unsigned char s : 1 ; unsigned char dpl : 2 ; unsigned char p : 1 ; unsigned char limit : 4 ; unsigned char avl : 1 ; unsigned char l : 1 ; unsigned char d : 1 ; unsigned char g : 1 ; unsigned char base2 ; }; union __anonunion____missing_field_name_8 { struct __anonstruct____missing_field_name_9 __annonCompField4 ; struct __anonstruct____missing_field_name_10 __annonCompField5 ; }; struct desc_struct { union __anonunion____missing_field_name_8 __annonCompField6 ; }; typedef unsigned long pteval_t; typedef unsigned long pgdval_t; typedef unsigned long pgprotval_t; struct __anonstruct_pte_t_11 { pteval_t pte ; }; typedef struct __anonstruct_pte_t_11 pte_t; struct pgprot { pgprotval_t pgprot ; }; typedef struct pgprot pgprot_t; struct __anonstruct_pgd_t_12 { pgdval_t pgd ; }; typedef struct __anonstruct_pgd_t_12 pgd_t; struct page; typedef struct page *pgtable_t; struct file; struct seq_file; struct thread_struct; struct mm_struct; struct task_struct; struct cpumask; struct qspinlock { atomic_t val ; }; typedef struct qspinlock arch_spinlock_t; struct qrwlock { atomic_t cnts ; arch_spinlock_t lock ; }; typedef struct qrwlock arch_rwlock_t; typedef void (*ctor_fn_t)(void); struct device; struct net_device; struct file_operations; struct completion; struct lockdep_map; struct kernel_vm86_regs { struct pt_regs pt ; unsigned short es ; unsigned short __esh ; unsigned short ds ; unsigned short __dsh ; unsigned short fs ; unsigned short __fsh ; unsigned short gs ; unsigned short __gsh ; }; union __anonunion____missing_field_name_15 { struct pt_regs *regs ; struct kernel_vm86_regs *vm86 ; }; struct math_emu_info { long ___orig_eip ; union __anonunion____missing_field_name_15 __annonCompField7 ; }; struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; struct cpumask { unsigned long bits[128U] ; }; typedef struct cpumask cpumask_t; typedef struct cpumask *cpumask_var_t; struct fregs_state { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u32 status ; }; struct __anonstruct____missing_field_name_25 { u64 rip ; u64 rdp ; }; struct __anonstruct____missing_field_name_26 { u32 fip ; u32 fcs ; u32 foo ; u32 fos ; }; union __anonunion____missing_field_name_24 { struct __anonstruct____missing_field_name_25 __annonCompField11 ; struct __anonstruct____missing_field_name_26 __annonCompField12 ; }; union __anonunion____missing_field_name_27 { u32 padding1[12U] ; u32 sw_reserved[12U] ; }; struct fxregs_state { u16 cwd ; u16 swd ; u16 twd ; u16 fop ; union __anonunion____missing_field_name_24 __annonCompField13 ; u32 mxcsr ; u32 mxcsr_mask ; u32 st_space[32U] ; u32 xmm_space[64U] ; u32 padding[12U] ; union __anonunion____missing_field_name_27 __annonCompField14 ; }; struct swregs_state { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u8 ftop ; u8 changed ; u8 lookahead ; u8 no_update ; u8 rm ; u8 alimit ; struct math_emu_info *info ; u32 entry_eip ; }; struct xstate_header { u64 xfeatures ; u64 xcomp_bv ; u64 reserved[6U] ; }; struct xregs_state { struct fxregs_state i387 ; struct xstate_header header ; u8 __reserved[464U] ; }; union fpregs_state { struct fregs_state fsave ; struct fxregs_state fxsave ; struct swregs_state soft ; struct xregs_state xsave ; }; struct fpu { union fpregs_state state ; unsigned int last_cpu ; unsigned char fpstate_active ; unsigned char fpregs_active ; unsigned char counter ; }; struct seq_operations; struct perf_event; struct thread_struct { struct desc_struct tls_array[3U] ; unsigned long sp0 ; unsigned long sp ; unsigned short es ; unsigned short ds ; unsigned short fsindex ; unsigned short gsindex ; unsigned long fs ; unsigned long gs ; struct fpu fpu ; struct perf_event *ptrace_bps[4U] ; unsigned long debugreg6 ; unsigned long ptrace_dr7 ; unsigned long cr2 ; unsigned long trap_nr ; unsigned long error_code ; unsigned long *io_bitmap_ptr ; unsigned long iopl ; unsigned int io_bitmap_max ; }; typedef atomic64_t atomic_long_t; struct stack_trace { unsigned int nr_entries ; unsigned int max_entries ; unsigned long *entries ; int skip ; }; struct lockdep_subclass_key { char __one_byte ; }; struct lock_class_key { struct lockdep_subclass_key subkeys[8U] ; }; struct lock_class { struct list_head hash_entry ; struct list_head lock_entry ; struct lockdep_subclass_key *key ; unsigned int subclass ; unsigned int dep_gen_id ; unsigned long usage_mask ; struct stack_trace usage_traces[13U] ; struct list_head locks_after ; struct list_head locks_before ; unsigned int version ; unsigned long ops ; char const *name ; int name_version ; unsigned long contention_point[4U] ; unsigned long contending_point[4U] ; }; struct lockdep_map { struct lock_class_key *key ; struct lock_class *class_cache[2U] ; char const *name ; int cpu ; unsigned long ip ; }; struct held_lock { u64 prev_chain_key ; unsigned long acquire_ip ; struct lockdep_map *instance ; struct lockdep_map *nest_lock ; u64 waittime_stamp ; u64 holdtime_stamp ; unsigned short class_idx : 13 ; unsigned char irq_context : 2 ; unsigned char trylock : 1 ; unsigned char read : 2 ; unsigned char check : 1 ; unsigned char hardirqs_off : 1 ; unsigned short references : 12 ; unsigned int pin_count ; }; struct raw_spinlock { arch_spinlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct raw_spinlock raw_spinlock_t; struct __anonstruct____missing_field_name_31 { u8 __padding[24U] ; struct lockdep_map dep_map ; }; union __anonunion____missing_field_name_30 { struct raw_spinlock rlock ; struct __anonstruct____missing_field_name_31 __annonCompField16 ; }; struct spinlock { union __anonunion____missing_field_name_30 __annonCompField17 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_32 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_32 rwlock_t; struct optimistic_spin_queue { atomic_t tail ; }; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct task_struct *owner ; void *magic ; struct lockdep_map dep_map ; }; struct mutex_waiter { struct list_head list ; struct task_struct *task ; void *magic ; }; struct vm_area_struct; struct timespec; struct compat_timespec; struct __anonstruct_futex_34 { u32 *uaddr ; u32 val ; u32 flags ; u32 bitset ; u64 time ; u32 *uaddr2 ; }; struct __anonstruct_nanosleep_35 { clockid_t clockid ; struct timespec *rmtp ; struct compat_timespec *compat_rmtp ; u64 expires ; }; struct pollfd; struct __anonstruct_poll_36 { struct pollfd *ufds ; int nfds ; int has_timeout ; unsigned long tv_sec ; unsigned long tv_nsec ; }; union __anonunion____missing_field_name_33 { struct __anonstruct_futex_34 futex ; struct __anonstruct_nanosleep_35 nanosleep ; struct __anonstruct_poll_36 poll ; }; struct restart_block { long (*fn)(struct restart_block * ) ; union __anonunion____missing_field_name_33 __annonCompField18 ; }; struct __wait_queue_head { spinlock_t lock ; struct list_head task_list ; }; typedef struct __wait_queue_head wait_queue_head_t; struct seqcount { unsigned int sequence ; struct lockdep_map dep_map ; }; typedef struct seqcount seqcount_t; struct __anonstruct_seqlock_t_45 { struct seqcount seqcount ; spinlock_t lock ; }; typedef struct __anonstruct_seqlock_t_45 seqlock_t; struct __anonstruct_nodemask_t_46 { unsigned long bits[16U] ; }; typedef struct __anonstruct_nodemask_t_46 nodemask_t; struct rw_semaphore; struct rw_semaphore { long count ; struct list_head wait_list ; raw_spinlock_t wait_lock ; struct optimistic_spin_queue osq ; struct task_struct *owner ; struct lockdep_map dep_map ; }; struct completion { unsigned int done ; wait_queue_head_t wait ; }; struct timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; struct timeval { __kernel_time_t tv_sec ; __kernel_suseconds_t tv_usec ; }; union ktime { s64 tv64 ; }; typedef union ktime ktime_t; struct notifier_block; struct timer_list { struct hlist_node entry ; unsigned long expires ; void (*function)(unsigned long ) ; unsigned long data ; u32 flags ; int slack ; int start_pid ; void *start_site ; char start_comm[16U] ; struct lockdep_map lockdep_map ; }; struct hrtimer; enum hrtimer_restart; struct rb_node { unsigned long __rb_parent_color ; struct rb_node *rb_right ; struct rb_node *rb_left ; }; struct rb_root { struct rb_node *rb_node ; }; struct ctl_table; struct nsproxy; struct ctl_table_root; struct ctl_table_header; struct ctl_dir; typedef int proc_handler(struct ctl_table * , int , void * , size_t * , loff_t * ); struct ctl_table_poll { atomic_t event ; wait_queue_head_t wait ; }; struct ctl_table { char const *procname ; void *data ; int maxlen ; umode_t mode ; struct ctl_table *child ; proc_handler *proc_handler ; struct ctl_table_poll *poll ; void *extra1 ; void *extra2 ; }; struct ctl_node { struct rb_node node ; struct ctl_table_header *header ; }; struct __anonstruct____missing_field_name_48 { struct ctl_table *ctl_table ; int used ; int count ; int nreg ; }; union __anonunion____missing_field_name_47 { struct __anonstruct____missing_field_name_48 __annonCompField19 ; struct callback_head rcu ; }; struct ctl_table_set; struct ctl_table_header { union __anonunion____missing_field_name_47 __annonCompField20 ; struct completion *unregistering ; struct ctl_table *ctl_table_arg ; struct ctl_table_root *root ; struct ctl_table_set *set ; struct ctl_dir *parent ; struct ctl_node *node ; }; struct ctl_dir { struct ctl_table_header header ; struct rb_root root ; }; struct ctl_table_set { int (*is_seen)(struct ctl_table_set * ) ; struct ctl_dir dir ; }; struct ctl_table_root { struct ctl_table_set default_set ; struct ctl_table_set *(*lookup)(struct ctl_table_root * , struct nsproxy * ) ; int (*permissions)(struct ctl_table_header * , struct ctl_table * ) ; }; struct workqueue_struct; struct work_struct; struct work_struct { atomic_long_t data ; struct list_head entry ; void (*func)(struct work_struct * ) ; struct lockdep_map lockdep_map ; }; struct delayed_work { struct work_struct work ; struct timer_list timer ; struct workqueue_struct *wq ; int cpu ; }; struct notifier_block { int (*notifier_call)(struct notifier_block * , unsigned long , void * ) ; struct notifier_block *next ; int priority ; }; struct pm_message { int event ; }; typedef struct pm_message pm_message_t; struct dev_pm_ops { int (*prepare)(struct device * ) ; void (*complete)(struct device * ) ; int (*suspend)(struct device * ) ; int (*resume)(struct device * ) ; int (*freeze)(struct device * ) ; int (*thaw)(struct device * ) ; int (*poweroff)(struct device * ) ; int (*restore)(struct device * ) ; int (*suspend_late)(struct device * ) ; int (*resume_early)(struct device * ) ; int (*freeze_late)(struct device * ) ; int (*thaw_early)(struct device * ) ; int (*poweroff_late)(struct device * ) ; int (*restore_early)(struct device * ) ; int (*suspend_noirq)(struct device * ) ; int (*resume_noirq)(struct device * ) ; int (*freeze_noirq)(struct device * ) ; int (*thaw_noirq)(struct device * ) ; int (*poweroff_noirq)(struct device * ) ; int (*restore_noirq)(struct device * ) ; int (*runtime_suspend)(struct device * ) ; int (*runtime_resume)(struct device * ) ; int (*runtime_idle)(struct device * ) ; }; enum rpm_status { RPM_ACTIVE = 0, RPM_RESUMING = 1, RPM_SUSPENDED = 2, RPM_SUSPENDING = 3 } ; enum rpm_request { RPM_REQ_NONE = 0, RPM_REQ_IDLE = 1, RPM_REQ_SUSPEND = 2, RPM_REQ_AUTOSUSPEND = 3, RPM_REQ_RESUME = 4 } ; struct wakeup_source; struct wake_irq; struct pm_subsys_data { spinlock_t lock ; unsigned int refcount ; struct list_head clock_list ; }; struct dev_pm_qos; struct dev_pm_info { pm_message_t power_state ; unsigned char can_wakeup : 1 ; unsigned char async_suspend : 1 ; bool is_prepared ; bool is_suspended ; bool is_noirq_suspended ; bool is_late_suspended ; bool ignore_children ; bool early_init ; bool direct_complete ; spinlock_t lock ; struct list_head entry ; struct completion completion ; struct wakeup_source *wakeup ; bool wakeup_path ; bool syscore ; struct timer_list suspend_timer ; unsigned long timer_expires ; struct work_struct work ; wait_queue_head_t wait_queue ; struct wake_irq *wakeirq ; atomic_t usage_count ; atomic_t child_count ; unsigned char disable_depth : 3 ; unsigned char idle_notification : 1 ; unsigned char request_pending : 1 ; unsigned char deferred_resume : 1 ; unsigned char run_wake : 1 ; unsigned char runtime_auto : 1 ; unsigned char no_callbacks : 1 ; unsigned char irq_safe : 1 ; unsigned char use_autosuspend : 1 ; unsigned char timer_autosuspends : 1 ; unsigned char memalloc_noio : 1 ; enum rpm_request request ; enum rpm_status runtime_status ; int runtime_error ; int autosuspend_delay ; unsigned long last_busy ; unsigned long active_jiffies ; unsigned long suspended_jiffies ; unsigned long accounting_timestamp ; struct pm_subsys_data *subsys_data ; void (*set_latency_tolerance)(struct device * , s32 ) ; struct dev_pm_qos *qos ; }; struct dev_pm_domain { struct dev_pm_ops ops ; void (*detach)(struct device * , bool ) ; int (*activate)(struct device * ) ; void (*sync)(struct device * ) ; void (*dismiss)(struct device * ) ; }; struct __anonstruct_mm_context_t_113 { void *ldt ; int size ; unsigned short ia32_compat ; struct mutex lock ; void *vdso ; atomic_t perf_rdpmc_allowed ; }; typedef struct __anonstruct_mm_context_t_113 mm_context_t; struct bio_vec; struct llist_node; struct llist_node { struct llist_node *next ; }; struct kmem_cache; struct kernel_cap_struct { __u32 cap[2U] ; }; typedef struct kernel_cap_struct kernel_cap_t; struct inode; struct dentry; struct user_namespace; struct plist_node { int prio ; struct list_head prio_list ; struct list_head node_list ; }; struct arch_uprobe_task { unsigned long saved_scratch_register ; unsigned int saved_trap_nr ; unsigned int saved_tf ; }; enum uprobe_task_state { UTASK_RUNNING = 0, UTASK_SSTEP = 1, UTASK_SSTEP_ACK = 2, UTASK_SSTEP_TRAPPED = 3 } ; struct __anonstruct____missing_field_name_146 { struct arch_uprobe_task autask ; unsigned long vaddr ; }; struct __anonstruct____missing_field_name_147 { struct callback_head dup_xol_work ; unsigned long dup_xol_addr ; }; union __anonunion____missing_field_name_145 { struct __anonstruct____missing_field_name_146 __annonCompField33 ; struct __anonstruct____missing_field_name_147 __annonCompField34 ; }; struct uprobe; struct return_instance; struct uprobe_task { enum uprobe_task_state state ; union __anonunion____missing_field_name_145 __annonCompField35 ; struct uprobe *active_uprobe ; unsigned long xol_vaddr ; struct return_instance *return_instances ; unsigned int depth ; }; struct xol_area; struct uprobes_state { struct xol_area *xol_area ; }; struct address_space; struct mem_cgroup; typedef void compound_page_dtor(struct page * ); union __anonunion____missing_field_name_148 { struct address_space *mapping ; void *s_mem ; }; union __anonunion____missing_field_name_150 { unsigned long index ; void *freelist ; bool pfmemalloc ; }; struct __anonstruct____missing_field_name_154 { unsigned short inuse ; unsigned short objects : 15 ; unsigned char frozen : 1 ; }; union __anonunion____missing_field_name_153 { atomic_t _mapcount ; struct __anonstruct____missing_field_name_154 __annonCompField38 ; int units ; }; struct __anonstruct____missing_field_name_152 { union __anonunion____missing_field_name_153 __annonCompField39 ; atomic_t _count ; }; union __anonunion____missing_field_name_151 { unsigned long counters ; struct __anonstruct____missing_field_name_152 __annonCompField40 ; unsigned int active ; }; struct __anonstruct____missing_field_name_149 { union __anonunion____missing_field_name_150 __annonCompField37 ; union __anonunion____missing_field_name_151 __annonCompField41 ; }; struct __anonstruct____missing_field_name_156 { struct page *next ; int pages ; int pobjects ; }; struct slab; struct __anonstruct____missing_field_name_157 { compound_page_dtor *compound_dtor ; unsigned long compound_order ; }; union __anonunion____missing_field_name_155 { struct list_head lru ; struct __anonstruct____missing_field_name_156 __annonCompField43 ; struct slab *slab_page ; struct callback_head callback_head ; struct __anonstruct____missing_field_name_157 __annonCompField44 ; pgtable_t pmd_huge_pte ; }; union __anonunion____missing_field_name_158 { unsigned long private ; spinlock_t *ptl ; struct kmem_cache *slab_cache ; struct page *first_page ; }; struct page { unsigned long flags ; union __anonunion____missing_field_name_148 __annonCompField36 ; struct __anonstruct____missing_field_name_149 __annonCompField42 ; union __anonunion____missing_field_name_155 __annonCompField45 ; union __anonunion____missing_field_name_158 __annonCompField46 ; struct mem_cgroup *mem_cgroup ; }; struct page_frag { struct page *page ; __u32 offset ; __u32 size ; }; struct __anonstruct_shared_159 { struct rb_node rb ; unsigned long rb_subtree_last ; }; struct anon_vma; struct vm_operations_struct; struct mempolicy; struct vm_area_struct { unsigned long vm_start ; unsigned long vm_end ; struct vm_area_struct *vm_next ; struct vm_area_struct *vm_prev ; struct rb_node vm_rb ; unsigned long rb_subtree_gap ; struct mm_struct *vm_mm ; pgprot_t vm_page_prot ; unsigned long vm_flags ; struct __anonstruct_shared_159 shared ; struct list_head anon_vma_chain ; struct anon_vma *anon_vma ; struct vm_operations_struct const *vm_ops ; unsigned long vm_pgoff ; struct file *vm_file ; void *vm_private_data ; struct mempolicy *vm_policy ; }; struct core_thread { struct task_struct *task ; struct core_thread *next ; }; struct core_state { atomic_t nr_threads ; struct core_thread dumper ; struct completion startup ; }; struct task_rss_stat { int events ; int count[3U] ; }; struct mm_rss_stat { atomic_long_t count[3U] ; }; struct kioctx_table; struct linux_binfmt; struct mmu_notifier_mm; struct mm_struct { struct vm_area_struct *mmap ; struct rb_root mm_rb ; u32 vmacache_seqnum ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; unsigned long mmap_base ; unsigned long mmap_legacy_base ; unsigned long task_size ; unsigned long highest_vm_end ; pgd_t *pgd ; atomic_t mm_users ; atomic_t mm_count ; atomic_long_t nr_ptes ; atomic_long_t nr_pmds ; int map_count ; spinlock_t page_table_lock ; struct rw_semaphore mmap_sem ; struct list_head mmlist ; unsigned long hiwater_rss ; unsigned long hiwater_vm ; unsigned long total_vm ; unsigned long locked_vm ; unsigned long pinned_vm ; unsigned long shared_vm ; unsigned long exec_vm ; unsigned long stack_vm ; unsigned long def_flags ; unsigned long start_code ; unsigned long end_code ; unsigned long start_data ; unsigned long end_data ; unsigned long start_brk ; unsigned long brk ; unsigned long start_stack ; unsigned long arg_start ; unsigned long arg_end ; unsigned long env_start ; unsigned long env_end ; unsigned long saved_auxv[46U] ; struct mm_rss_stat rss_stat ; struct linux_binfmt *binfmt ; cpumask_var_t cpu_vm_mask_var ; mm_context_t context ; unsigned long flags ; struct core_state *core_state ; spinlock_t ioctx_lock ; struct kioctx_table *ioctx_table ; struct task_struct *owner ; struct file *exe_file ; struct mmu_notifier_mm *mmu_notifier_mm ; struct cpumask cpumask_allocation ; unsigned long numa_next_scan ; unsigned long numa_scan_offset ; int numa_scan_seq ; bool tlb_flush_pending ; struct uprobes_state uprobes_state ; void *bd_addr ; }; typedef unsigned long cputime_t; struct __anonstruct_kuid_t_161 { uid_t val ; }; typedef struct __anonstruct_kuid_t_161 kuid_t; struct __anonstruct_kgid_t_162 { gid_t val ; }; typedef struct __anonstruct_kgid_t_162 kgid_t; struct sem_undo_list; struct sysv_sem { struct sem_undo_list *undo_list ; }; struct user_struct; struct sysv_shm { struct list_head shm_clist ; }; struct __anonstruct_sigset_t_163 { unsigned long sig[1U] ; }; typedef struct __anonstruct_sigset_t_163 sigset_t; struct siginfo; typedef void __signalfn_t(int ); typedef __signalfn_t *__sighandler_t; typedef void __restorefn_t(void); typedef __restorefn_t *__sigrestore_t; union sigval { int sival_int ; void *sival_ptr ; }; typedef union sigval sigval_t; struct __anonstruct__kill_165 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; }; struct __anonstruct__timer_166 { __kernel_timer_t _tid ; int _overrun ; char _pad[0U] ; sigval_t _sigval ; int _sys_private ; }; struct __anonstruct__rt_167 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; sigval_t _sigval ; }; struct __anonstruct__sigchld_168 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; int _status ; __kernel_clock_t _utime ; __kernel_clock_t _stime ; }; struct __anonstruct__addr_bnd_170 { void *_lower ; void *_upper ; }; struct __anonstruct__sigfault_169 { void *_addr ; short _addr_lsb ; struct __anonstruct__addr_bnd_170 _addr_bnd ; }; struct __anonstruct__sigpoll_171 { long _band ; int _fd ; }; struct __anonstruct__sigsys_172 { void *_call_addr ; int _syscall ; unsigned int _arch ; }; union __anonunion__sifields_164 { int _pad[28U] ; struct __anonstruct__kill_165 _kill ; struct __anonstruct__timer_166 _timer ; struct __anonstruct__rt_167 _rt ; struct __anonstruct__sigchld_168 _sigchld ; struct __anonstruct__sigfault_169 _sigfault ; struct __anonstruct__sigpoll_171 _sigpoll ; struct __anonstruct__sigsys_172 _sigsys ; }; struct siginfo { int si_signo ; int si_errno ; int si_code ; union __anonunion__sifields_164 _sifields ; }; typedef struct siginfo siginfo_t; struct sigpending { struct list_head list ; sigset_t signal ; }; struct sigaction { __sighandler_t sa_handler ; unsigned long sa_flags ; __sigrestore_t sa_restorer ; sigset_t sa_mask ; }; struct k_sigaction { struct sigaction sa ; }; enum pid_type { PIDTYPE_PID = 0, PIDTYPE_PGID = 1, PIDTYPE_SID = 2, PIDTYPE_MAX = 3 } ; struct pid_namespace; struct upid { int nr ; struct pid_namespace *ns ; struct hlist_node pid_chain ; }; struct pid { atomic_t count ; unsigned int level ; struct hlist_head tasks[3U] ; struct callback_head rcu ; struct upid numbers[1U] ; }; struct pid_link { struct hlist_node node ; struct pid *pid ; }; struct percpu_counter { raw_spinlock_t lock ; s64 count ; struct list_head list ; s32 *counters ; }; struct seccomp_filter; struct seccomp { int mode ; struct seccomp_filter *filter ; }; struct rt_mutex_waiter; struct rlimit { __kernel_ulong_t rlim_cur ; __kernel_ulong_t rlim_max ; }; struct timerqueue_node { struct rb_node node ; ktime_t expires ; }; struct timerqueue_head { struct rb_root head ; struct timerqueue_node *next ; }; struct hrtimer_clock_base; struct hrtimer_cpu_base; enum hrtimer_restart { HRTIMER_NORESTART = 0, HRTIMER_RESTART = 1 } ; struct hrtimer { struct timerqueue_node node ; ktime_t _softexpires ; enum hrtimer_restart (*function)(struct hrtimer * ) ; struct hrtimer_clock_base *base ; unsigned long state ; int start_pid ; void *start_site ; char start_comm[16U] ; }; struct hrtimer_clock_base { struct hrtimer_cpu_base *cpu_base ; int index ; clockid_t clockid ; struct timerqueue_head active ; ktime_t (*get_time)(void) ; ktime_t offset ; }; struct hrtimer_cpu_base { raw_spinlock_t lock ; seqcount_t seq ; struct hrtimer *running ; unsigned int cpu ; unsigned int active_bases ; unsigned int clock_was_set_seq ; bool migration_enabled ; bool nohz_active ; unsigned char in_hrtirq : 1 ; unsigned char hres_active : 1 ; unsigned char hang_detected : 1 ; ktime_t expires_next ; struct hrtimer *next_timer ; unsigned int nr_events ; unsigned int nr_retries ; unsigned int nr_hangs ; unsigned int max_hang_time ; struct hrtimer_clock_base clock_base[4U] ; }; struct task_io_accounting { u64 rchar ; u64 wchar ; u64 syscr ; u64 syscw ; u64 read_bytes ; u64 write_bytes ; u64 cancelled_write_bytes ; }; struct latency_record { unsigned long backtrace[12U] ; unsigned int count ; unsigned long time ; unsigned long max ; }; struct assoc_array_ptr; struct assoc_array { struct assoc_array_ptr *root ; unsigned long nr_leaves_on_tree ; }; typedef int32_t key_serial_t; typedef uint32_t key_perm_t; struct key; struct signal_struct; struct cred; struct key_type; struct keyring_index_key { struct key_type *type ; char const *description ; size_t desc_len ; }; union __anonunion____missing_field_name_179 { struct list_head graveyard_link ; struct rb_node serial_node ; }; struct key_user; union __anonunion____missing_field_name_180 { time_t expiry ; time_t revoked_at ; }; struct __anonstruct____missing_field_name_182 { struct key_type *type ; char *description ; }; union __anonunion____missing_field_name_181 { struct keyring_index_key index_key ; struct __anonstruct____missing_field_name_182 __annonCompField49 ; }; union __anonunion_type_data_183 { struct list_head link ; unsigned long x[2U] ; void *p[2U] ; int reject_error ; }; union __anonunion_payload_185 { unsigned long value ; void *rcudata ; void *data ; void *data2[2U] ; }; union __anonunion____missing_field_name_184 { union __anonunion_payload_185 payload ; struct assoc_array keys ; }; struct key { atomic_t usage ; key_serial_t serial ; union __anonunion____missing_field_name_179 __annonCompField47 ; struct rw_semaphore sem ; struct key_user *user ; void *security ; union __anonunion____missing_field_name_180 __annonCompField48 ; time_t last_used_at ; kuid_t uid ; kgid_t gid ; key_perm_t perm ; unsigned short quotalen ; unsigned short datalen ; unsigned long flags ; union __anonunion____missing_field_name_181 __annonCompField50 ; union __anonunion_type_data_183 type_data ; union __anonunion____missing_field_name_184 __annonCompField51 ; }; struct audit_context; struct group_info { atomic_t usage ; int ngroups ; int nblocks ; kgid_t small_block[32U] ; kgid_t *blocks[0U] ; }; struct cred { atomic_t usage ; atomic_t subscribers ; void *put_addr ; unsigned int magic ; kuid_t uid ; kgid_t gid ; kuid_t suid ; kgid_t sgid ; kuid_t euid ; kgid_t egid ; kuid_t fsuid ; kgid_t fsgid ; unsigned int securebits ; kernel_cap_t cap_inheritable ; kernel_cap_t cap_permitted ; kernel_cap_t cap_effective ; kernel_cap_t cap_bset ; unsigned char jit_keyring ; struct key *session_keyring ; struct key *process_keyring ; struct key *thread_keyring ; struct key *request_key_auth ; void *security ; struct user_struct *user ; struct user_namespace *user_ns ; struct group_info *group_info ; struct callback_head rcu ; }; union __anonunion____missing_field_name_186 { unsigned long bitmap[4U] ; struct callback_head callback_head ; }; struct idr_layer { int prefix ; int layer ; struct idr_layer *ary[256U] ; int count ; union __anonunion____missing_field_name_186 __annonCompField52 ; }; struct idr { struct idr_layer *hint ; struct idr_layer *top ; int layers ; int cur ; spinlock_t lock ; int id_free_cnt ; struct idr_layer *id_free ; }; struct ida_bitmap { long nr_busy ; unsigned long bitmap[15U] ; }; struct ida { struct idr idr ; struct ida_bitmap *free_bitmap ; }; struct percpu_ref; typedef void percpu_ref_func_t(struct percpu_ref * ); struct percpu_ref { atomic_long_t count ; unsigned long percpu_count_ptr ; percpu_ref_func_t *release ; percpu_ref_func_t *confirm_switch ; bool force_atomic ; struct callback_head rcu ; }; struct cgroup; struct cgroup_root; struct cgroup_subsys; struct cgroup_taskset; struct kernfs_node; struct kernfs_ops; struct kernfs_open_file; struct cgroup_subsys_state { struct cgroup *cgroup ; struct cgroup_subsys *ss ; struct percpu_ref refcnt ; struct cgroup_subsys_state *parent ; struct list_head sibling ; struct list_head children ; int id ; unsigned int flags ; u64 serial_nr ; struct callback_head callback_head ; struct work_struct destroy_work ; }; struct css_set { atomic_t refcount ; struct hlist_node hlist ; struct list_head tasks ; struct list_head mg_tasks ; struct list_head cgrp_links ; struct cgroup *dfl_cgrp ; struct cgroup_subsys_state *subsys[12U] ; struct list_head mg_preload_node ; struct list_head mg_node ; struct cgroup *mg_src_cgrp ; struct css_set *mg_dst_cset ; struct list_head e_cset_node[12U] ; struct callback_head callback_head ; }; struct cgroup { struct cgroup_subsys_state self ; unsigned long flags ; int id ; int populated_cnt ; struct kernfs_node *kn ; struct kernfs_node *procs_kn ; struct kernfs_node *populated_kn ; unsigned int subtree_control ; unsigned int child_subsys_mask ; struct cgroup_subsys_state *subsys[12U] ; struct cgroup_root *root ; struct list_head cset_links ; struct list_head e_csets[12U] ; struct list_head pidlists ; struct mutex pidlist_mutex ; wait_queue_head_t offline_waitq ; struct work_struct release_agent_work ; }; struct kernfs_root; struct cgroup_root { struct kernfs_root *kf_root ; unsigned int subsys_mask ; int hierarchy_id ; struct cgroup cgrp ; atomic_t nr_cgrps ; struct list_head root_list ; unsigned int flags ; struct idr cgroup_idr ; char release_agent_path[4096U] ; char name[64U] ; }; struct cftype { char name[64U] ; int private ; umode_t mode ; size_t max_write_len ; unsigned int flags ; struct cgroup_subsys *ss ; struct list_head node ; struct kernfs_ops *kf_ops ; u64 (*read_u64)(struct cgroup_subsys_state * , struct cftype * ) ; s64 (*read_s64)(struct cgroup_subsys_state * , struct cftype * ) ; int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; int (*write_u64)(struct cgroup_subsys_state * , struct cftype * , u64 ) ; int (*write_s64)(struct cgroup_subsys_state * , struct cftype * , s64 ) ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; struct lock_class_key lockdep_key ; }; struct cgroup_subsys { struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state * ) ; int (*css_online)(struct cgroup_subsys_state * ) ; void (*css_offline)(struct cgroup_subsys_state * ) ; void (*css_released)(struct cgroup_subsys_state * ) ; void (*css_free)(struct cgroup_subsys_state * ) ; void (*css_reset)(struct cgroup_subsys_state * ) ; void (*css_e_css_changed)(struct cgroup_subsys_state * ) ; int (*can_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*cancel_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*fork)(struct task_struct * ) ; void (*exit)(struct cgroup_subsys_state * , struct cgroup_subsys_state * , struct task_struct * ) ; void (*bind)(struct cgroup_subsys_state * ) ; int disabled ; int early_init ; bool broken_hierarchy ; bool warned_broken_hierarchy ; int id ; char const *name ; struct cgroup_root *root ; struct idr css_idr ; struct list_head cfts ; struct cftype *dfl_cftypes ; struct cftype *legacy_cftypes ; unsigned int depends_on ; }; struct futex_pi_state; struct robust_list_head; struct bio_list; struct fs_struct; struct perf_event_context; struct blk_plug; struct nameidata; struct cfs_rq; struct task_group; struct sighand_struct { atomic_t count ; struct k_sigaction action[64U] ; spinlock_t siglock ; wait_queue_head_t signalfd_wqh ; }; struct pacct_struct { int ac_flag ; long ac_exitcode ; unsigned long ac_mem ; cputime_t ac_utime ; cputime_t ac_stime ; unsigned long ac_minflt ; unsigned long ac_majflt ; }; struct cpu_itimer { cputime_t expires ; cputime_t incr ; u32 error ; u32 incr_error ; }; struct cputime { cputime_t utime ; cputime_t stime ; }; struct task_cputime { cputime_t utime ; cputime_t stime ; unsigned long long sum_exec_runtime ; }; struct task_cputime_atomic { atomic64_t utime ; atomic64_t stime ; atomic64_t sum_exec_runtime ; }; struct thread_group_cputimer { struct task_cputime_atomic cputime_atomic ; int running ; }; struct autogroup; struct tty_struct; struct taskstats; struct tty_audit_buf; struct signal_struct { atomic_t sigcnt ; atomic_t live ; int nr_threads ; struct list_head thread_head ; wait_queue_head_t wait_chldexit ; struct task_struct *curr_target ; struct sigpending shared_pending ; int group_exit_code ; int notify_count ; struct task_struct *group_exit_task ; int group_stop_count ; unsigned int flags ; unsigned char is_child_subreaper : 1 ; unsigned char has_child_subreaper : 1 ; int posix_timer_id ; struct list_head posix_timers ; struct hrtimer real_timer ; struct pid *leader_pid ; ktime_t it_real_incr ; struct cpu_itimer it[2U] ; struct thread_group_cputimer cputimer ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct pid *tty_old_pgrp ; int leader ; struct tty_struct *tty ; struct autogroup *autogroup ; seqlock_t stats_lock ; cputime_t utime ; cputime_t stime ; cputime_t cutime ; cputime_t cstime ; cputime_t gtime ; cputime_t cgtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; unsigned long cnvcsw ; unsigned long cnivcsw ; unsigned long min_flt ; unsigned long maj_flt ; unsigned long cmin_flt ; unsigned long cmaj_flt ; unsigned long inblock ; unsigned long oublock ; unsigned long cinblock ; unsigned long coublock ; unsigned long maxrss ; unsigned long cmaxrss ; struct task_io_accounting ioac ; unsigned long long sum_sched_runtime ; struct rlimit rlim[16U] ; struct pacct_struct pacct ; struct taskstats *stats ; unsigned int audit_tty ; unsigned int audit_tty_log_passwd ; struct tty_audit_buf *tty_audit_buf ; oom_flags_t oom_flags ; short oom_score_adj ; short oom_score_adj_min ; struct mutex cred_guard_mutex ; }; struct user_struct { atomic_t __count ; atomic_t processes ; atomic_t sigpending ; atomic_t inotify_watches ; atomic_t inotify_devs ; atomic_t fanotify_listeners ; atomic_long_t epoll_watches ; unsigned long mq_bytes ; unsigned long locked_shm ; struct key *uid_keyring ; struct key *session_keyring ; struct hlist_node uidhash_node ; kuid_t uid ; atomic_long_t locked_vm ; }; struct backing_dev_info; struct reclaim_state; struct sched_info { unsigned long pcount ; unsigned long long run_delay ; unsigned long long last_arrival ; unsigned long long last_queued ; }; struct task_delay_info { spinlock_t lock ; unsigned int flags ; u64 blkio_start ; u64 blkio_delay ; u64 swapin_delay ; u32 blkio_count ; u32 swapin_count ; u64 freepages_start ; u64 freepages_delay ; u32 freepages_count ; }; struct wake_q_node { struct wake_q_node *next ; }; struct io_context; struct pipe_inode_info; struct uts_namespace; struct load_weight { unsigned long weight ; u32 inv_weight ; }; struct sched_avg { u64 last_runnable_update ; s64 decay_count ; unsigned long load_avg_contrib ; unsigned long utilization_avg_contrib ; u32 runnable_avg_sum ; u32 avg_period ; u32 running_avg_sum ; }; struct sched_statistics { u64 wait_start ; u64 wait_max ; u64 wait_count ; u64 wait_sum ; u64 iowait_count ; u64 iowait_sum ; u64 sleep_start ; u64 sleep_max ; s64 sum_sleep_runtime ; u64 block_start ; u64 block_max ; u64 exec_max ; u64 slice_max ; u64 nr_migrations_cold ; u64 nr_failed_migrations_affine ; u64 nr_failed_migrations_running ; u64 nr_failed_migrations_hot ; u64 nr_forced_migrations ; u64 nr_wakeups ; u64 nr_wakeups_sync ; u64 nr_wakeups_migrate ; u64 nr_wakeups_local ; u64 nr_wakeups_remote ; u64 nr_wakeups_affine ; u64 nr_wakeups_affine_attempts ; u64 nr_wakeups_passive ; u64 nr_wakeups_idle ; }; struct sched_entity { struct load_weight load ; struct rb_node run_node ; struct list_head group_node ; unsigned int on_rq ; u64 exec_start ; u64 sum_exec_runtime ; u64 vruntime ; u64 prev_sum_exec_runtime ; u64 nr_migrations ; struct sched_statistics statistics ; int depth ; struct sched_entity *parent ; struct cfs_rq *cfs_rq ; struct cfs_rq *my_q ; struct sched_avg avg ; }; struct rt_rq; struct sched_rt_entity { struct list_head run_list ; unsigned long timeout ; unsigned long watchdog_stamp ; unsigned int time_slice ; struct sched_rt_entity *back ; struct sched_rt_entity *parent ; struct rt_rq *rt_rq ; struct rt_rq *my_q ; }; struct sched_dl_entity { struct rb_node rb_node ; u64 dl_runtime ; u64 dl_deadline ; u64 dl_period ; u64 dl_bw ; s64 runtime ; u64 deadline ; unsigned int flags ; int dl_throttled ; int dl_new ; int dl_boosted ; int dl_yielded ; struct hrtimer dl_timer ; }; struct memcg_oom_info { struct mem_cgroup *memcg ; gfp_t gfp_mask ; int order ; unsigned char may_oom : 1 ; }; struct sched_class; struct files_struct; struct compat_robust_list_head; struct numa_group; struct task_struct { long volatile state ; void *stack ; atomic_t usage ; unsigned int flags ; unsigned int ptrace ; struct llist_node wake_entry ; int on_cpu ; struct task_struct *last_wakee ; unsigned long wakee_flips ; unsigned long wakee_flip_decay_ts ; int wake_cpu ; int on_rq ; int prio ; int static_prio ; int normal_prio ; unsigned int rt_priority ; struct sched_class const *sched_class ; struct sched_entity se ; struct sched_rt_entity rt ; struct task_group *sched_task_group ; struct sched_dl_entity dl ; struct hlist_head preempt_notifiers ; unsigned int policy ; int nr_cpus_allowed ; cpumask_t cpus_allowed ; unsigned long rcu_tasks_nvcsw ; bool rcu_tasks_holdout ; struct list_head rcu_tasks_holdout_list ; int rcu_tasks_idle_cpu ; struct sched_info sched_info ; struct list_head tasks ; struct plist_node pushable_tasks ; struct rb_node pushable_dl_tasks ; struct mm_struct *mm ; struct mm_struct *active_mm ; u32 vmacache_seqnum ; struct vm_area_struct *vmacache[4U] ; struct task_rss_stat rss_stat ; int exit_state ; int exit_code ; int exit_signal ; int pdeath_signal ; unsigned long jobctl ; unsigned int personality ; unsigned char in_execve : 1 ; unsigned char in_iowait : 1 ; unsigned char sched_reset_on_fork : 1 ; unsigned char sched_contributes_to_load : 1 ; unsigned char sched_migrated : 1 ; unsigned char memcg_kmem_skip_account : 1 ; unsigned char brk_randomized : 1 ; unsigned long atomic_flags ; struct restart_block restart_block ; pid_t pid ; pid_t tgid ; struct task_struct *real_parent ; struct task_struct *parent ; struct list_head children ; struct list_head sibling ; struct task_struct *group_leader ; struct list_head ptraced ; struct list_head ptrace_entry ; struct pid_link pids[3U] ; struct list_head thread_group ; struct list_head thread_node ; struct completion *vfork_done ; int *set_child_tid ; int *clear_child_tid ; cputime_t utime ; cputime_t stime ; cputime_t utimescaled ; cputime_t stimescaled ; cputime_t gtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; u64 start_time ; u64 real_start_time ; unsigned long min_flt ; unsigned long maj_flt ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct cred const *real_cred ; struct cred const *cred ; char comm[16U] ; struct nameidata *nameidata ; struct sysv_sem sysvsem ; struct sysv_shm sysvshm ; unsigned long last_switch_count ; struct thread_struct thread ; struct fs_struct *fs ; struct files_struct *files ; struct nsproxy *nsproxy ; struct signal_struct *signal ; struct sighand_struct *sighand ; sigset_t blocked ; sigset_t real_blocked ; sigset_t saved_sigmask ; struct sigpending pending ; unsigned long sas_ss_sp ; size_t sas_ss_size ; int (*notifier)(void * ) ; void *notifier_data ; sigset_t *notifier_mask ; struct callback_head *task_works ; struct audit_context *audit_context ; kuid_t loginuid ; unsigned int sessionid ; struct seccomp seccomp ; u32 parent_exec_id ; u32 self_exec_id ; spinlock_t alloc_lock ; raw_spinlock_t pi_lock ; struct wake_q_node wake_q ; struct rb_root pi_waiters ; struct rb_node *pi_waiters_leftmost ; struct rt_mutex_waiter *pi_blocked_on ; struct mutex_waiter *blocked_on ; unsigned int irq_events ; unsigned long hardirq_enable_ip ; unsigned long hardirq_disable_ip ; unsigned int hardirq_enable_event ; unsigned int hardirq_disable_event ; int hardirqs_enabled ; int hardirq_context ; unsigned long softirq_disable_ip ; unsigned long softirq_enable_ip ; unsigned int softirq_disable_event ; unsigned int softirq_enable_event ; int softirqs_enabled ; int softirq_context ; u64 curr_chain_key ; int lockdep_depth ; unsigned int lockdep_recursion ; struct held_lock held_locks[48U] ; gfp_t lockdep_reclaim_gfp ; void *journal_info ; struct bio_list *bio_list ; struct blk_plug *plug ; struct reclaim_state *reclaim_state ; struct backing_dev_info *backing_dev_info ; struct io_context *io_context ; unsigned long ptrace_message ; siginfo_t *last_siginfo ; struct task_io_accounting ioac ; u64 acct_rss_mem1 ; u64 acct_vm_mem1 ; cputime_t acct_timexpd ; nodemask_t mems_allowed ; seqcount_t mems_allowed_seq ; int cpuset_mem_spread_rotor ; int cpuset_slab_spread_rotor ; struct css_set *cgroups ; struct list_head cg_list ; struct robust_list_head *robust_list ; struct compat_robust_list_head *compat_robust_list ; struct list_head pi_state_list ; struct futex_pi_state *pi_state_cache ; struct perf_event_context *perf_event_ctxp[2U] ; struct mutex perf_event_mutex ; struct list_head perf_event_list ; struct mempolicy *mempolicy ; short il_next ; short pref_node_fork ; int numa_scan_seq ; unsigned int numa_scan_period ; unsigned int numa_scan_period_max ; int numa_preferred_nid ; unsigned long numa_migrate_retry ; u64 node_stamp ; u64 last_task_numa_placement ; u64 last_sum_exec_runtime ; struct callback_head numa_work ; struct list_head numa_entry ; struct numa_group *numa_group ; unsigned long *numa_faults ; unsigned long total_numa_faults ; unsigned long numa_faults_locality[3U] ; unsigned long numa_pages_migrated ; struct callback_head rcu ; struct pipe_inode_info *splice_pipe ; struct page_frag task_frag ; struct task_delay_info *delays ; int make_it_fail ; int nr_dirtied ; int nr_dirtied_pause ; unsigned long dirty_paused_when ; int latency_record_count ; struct latency_record latency_record[32U] ; unsigned long timer_slack_ns ; unsigned long default_timer_slack_ns ; unsigned int kasan_depth ; unsigned long trace ; unsigned long trace_recursion ; struct memcg_oom_info memcg_oom ; struct uprobe_task *utask ; unsigned int sequential_io ; unsigned int sequential_io_avg ; unsigned long task_state_change ; int pagefault_disabled ; }; struct vfsmount; struct path; struct hlist_bl_node; struct hlist_bl_head { struct hlist_bl_node *first ; }; struct hlist_bl_node { struct hlist_bl_node *next ; struct hlist_bl_node **pprev ; }; struct __anonstruct____missing_field_name_208 { spinlock_t lock ; int count ; }; union __anonunion____missing_field_name_207 { struct __anonstruct____missing_field_name_208 __annonCompField56 ; }; struct lockref { union __anonunion____missing_field_name_207 __annonCompField57 ; }; struct __anonstruct____missing_field_name_210 { u32 hash ; u32 len ; }; union __anonunion____missing_field_name_209 { struct __anonstruct____missing_field_name_210 __annonCompField58 ; u64 hash_len ; }; struct qstr { union __anonunion____missing_field_name_209 __annonCompField59 ; unsigned char const *name ; }; struct dentry_operations; struct super_block; union __anonunion_d_u_211 { struct hlist_node d_alias ; struct callback_head d_rcu ; }; struct dentry { unsigned int d_flags ; seqcount_t d_seq ; struct hlist_bl_node d_hash ; struct dentry *d_parent ; struct qstr d_name ; struct inode *d_inode ; unsigned char d_iname[32U] ; struct lockref d_lockref ; struct dentry_operations const *d_op ; struct super_block *d_sb ; unsigned long d_time ; void *d_fsdata ; struct list_head d_lru ; struct list_head d_child ; struct list_head d_subdirs ; union __anonunion_d_u_211 d_u ; }; struct dentry_operations { int (*d_revalidate)(struct dentry * , unsigned int ) ; int (*d_weak_revalidate)(struct dentry * , unsigned int ) ; int (*d_hash)(struct dentry const * , struct qstr * ) ; int (*d_compare)(struct dentry const * , struct dentry const * , unsigned int , char const * , struct qstr const * ) ; int (*d_delete)(struct dentry const * ) ; void (*d_release)(struct dentry * ) ; void (*d_prune)(struct dentry * ) ; void (*d_iput)(struct dentry * , struct inode * ) ; char *(*d_dname)(struct dentry * , char * , int ) ; struct vfsmount *(*d_automount)(struct path * ) ; int (*d_manage)(struct dentry * , bool ) ; struct inode *(*d_select_inode)(struct dentry * , unsigned int ) ; }; struct path { struct vfsmount *mnt ; struct dentry *dentry ; }; struct kstat { u64 ino ; dev_t dev ; umode_t mode ; unsigned int nlink ; kuid_t uid ; kgid_t gid ; dev_t rdev ; loff_t size ; struct timespec atime ; struct timespec mtime ; struct timespec ctime ; unsigned long blksize ; unsigned long long blocks ; }; struct shrink_control { gfp_t gfp_mask ; unsigned long nr_to_scan ; int nid ; struct mem_cgroup *memcg ; }; struct shrinker { unsigned long (*count_objects)(struct shrinker * , struct shrink_control * ) ; unsigned long (*scan_objects)(struct shrinker * , struct shrink_control * ) ; int seeks ; long batch ; unsigned long flags ; struct list_head list ; atomic_long_t *nr_deferred ; }; struct list_lru_one { struct list_head list ; long nr_items ; }; struct list_lru_memcg { struct list_lru_one *lru[0U] ; }; struct list_lru_node { spinlock_t lock ; struct list_lru_one lru ; struct list_lru_memcg *memcg_lrus ; }; struct list_lru { struct list_lru_node *node ; struct list_head list ; }; struct __anonstruct____missing_field_name_215 { struct radix_tree_node *parent ; void *private_data ; }; union __anonunion____missing_field_name_214 { struct __anonstruct____missing_field_name_215 __annonCompField60 ; struct callback_head callback_head ; }; struct radix_tree_node { unsigned int path ; unsigned int count ; union __anonunion____missing_field_name_214 __annonCompField61 ; struct list_head private_list ; void *slots[64U] ; unsigned long tags[3U][1U] ; }; struct radix_tree_root { unsigned int height ; gfp_t gfp_mask ; struct radix_tree_node *rnode ; }; struct fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_reserved[3U] ; }; enum migrate_mode { MIGRATE_ASYNC = 0, MIGRATE_SYNC_LIGHT = 1, MIGRATE_SYNC = 2 } ; struct block_device; struct bio_vec { struct page *bv_page ; unsigned int bv_len ; unsigned int bv_offset ; }; struct bdi_writeback; struct export_operations; struct iovec; struct kiocb; struct kobject; struct poll_table_struct; struct kstatfs; struct swap_info_struct; struct iov_iter; struct vm_fault; struct iattr { unsigned int ia_valid ; umode_t ia_mode ; kuid_t ia_uid ; kgid_t ia_gid ; loff_t ia_size ; struct timespec ia_atime ; struct timespec ia_mtime ; struct timespec ia_ctime ; struct file *ia_file ; }; struct dquot; typedef __kernel_uid32_t projid_t; struct __anonstruct_kprojid_t_219 { projid_t val ; }; typedef struct __anonstruct_kprojid_t_219 kprojid_t; enum quota_type { USRQUOTA = 0, GRPQUOTA = 1, PRJQUOTA = 2 } ; typedef long long qsize_t; union __anonunion____missing_field_name_220 { kuid_t uid ; kgid_t gid ; kprojid_t projid ; }; struct kqid { union __anonunion____missing_field_name_220 __annonCompField63 ; enum quota_type type ; }; struct mem_dqblk { qsize_t dqb_bhardlimit ; qsize_t dqb_bsoftlimit ; qsize_t dqb_curspace ; qsize_t dqb_rsvspace ; qsize_t dqb_ihardlimit ; qsize_t dqb_isoftlimit ; qsize_t dqb_curinodes ; time_t dqb_btime ; time_t dqb_itime ; }; struct quota_format_type; struct mem_dqinfo { struct quota_format_type *dqi_format ; int dqi_fmt_id ; struct list_head dqi_dirty_list ; unsigned long dqi_flags ; unsigned int dqi_bgrace ; unsigned int dqi_igrace ; qsize_t dqi_max_spc_limit ; qsize_t dqi_max_ino_limit ; void *dqi_priv ; }; struct dquot { struct hlist_node dq_hash ; struct list_head dq_inuse ; struct list_head dq_free ; struct list_head dq_dirty ; struct mutex dq_lock ; atomic_t dq_count ; wait_queue_head_t dq_wait_unused ; struct super_block *dq_sb ; struct kqid dq_id ; loff_t dq_off ; unsigned long dq_flags ; struct mem_dqblk dq_dqb ; }; struct quota_format_ops { int (*check_quota_file)(struct super_block * , int ) ; int (*read_file_info)(struct super_block * , int ) ; int (*write_file_info)(struct super_block * , int ) ; int (*free_file_info)(struct super_block * , int ) ; int (*read_dqblk)(struct dquot * ) ; int (*commit_dqblk)(struct dquot * ) ; int (*release_dqblk)(struct dquot * ) ; }; struct dquot_operations { int (*write_dquot)(struct dquot * ) ; struct dquot *(*alloc_dquot)(struct super_block * , int ) ; void (*destroy_dquot)(struct dquot * ) ; int (*acquire_dquot)(struct dquot * ) ; int (*release_dquot)(struct dquot * ) ; int (*mark_dirty)(struct dquot * ) ; int (*write_info)(struct super_block * , int ) ; qsize_t *(*get_reserved_space)(struct inode * ) ; int (*get_projid)(struct inode * , kprojid_t * ) ; }; struct qc_dqblk { int d_fieldmask ; u64 d_spc_hardlimit ; u64 d_spc_softlimit ; u64 d_ino_hardlimit ; u64 d_ino_softlimit ; u64 d_space ; u64 d_ino_count ; s64 d_ino_timer ; s64 d_spc_timer ; int d_ino_warns ; int d_spc_warns ; u64 d_rt_spc_hardlimit ; u64 d_rt_spc_softlimit ; u64 d_rt_space ; s64 d_rt_spc_timer ; int d_rt_spc_warns ; }; struct qc_type_state { unsigned int flags ; unsigned int spc_timelimit ; unsigned int ino_timelimit ; unsigned int rt_spc_timelimit ; unsigned int spc_warnlimit ; unsigned int ino_warnlimit ; unsigned int rt_spc_warnlimit ; unsigned long long ino ; blkcnt_t blocks ; blkcnt_t nextents ; }; struct qc_state { unsigned int s_incoredqs ; struct qc_type_state s_state[3U] ; }; struct qc_info { int i_fieldmask ; unsigned int i_flags ; unsigned int i_spc_timelimit ; unsigned int i_ino_timelimit ; unsigned int i_rt_spc_timelimit ; unsigned int i_spc_warnlimit ; unsigned int i_ino_warnlimit ; unsigned int i_rt_spc_warnlimit ; }; struct quotactl_ops { int (*quota_on)(struct super_block * , int , int , struct path * ) ; int (*quota_off)(struct super_block * , int ) ; int (*quota_enable)(struct super_block * , unsigned int ) ; int (*quota_disable)(struct super_block * , unsigned int ) ; int (*quota_sync)(struct super_block * , int ) ; int (*set_info)(struct super_block * , int , struct qc_info * ) ; int (*get_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*set_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*get_state)(struct super_block * , struct qc_state * ) ; int (*rm_xquota)(struct super_block * , unsigned int ) ; }; struct quota_format_type { int qf_fmt_id ; struct quota_format_ops const *qf_ops ; struct module *qf_owner ; struct quota_format_type *qf_next ; }; struct quota_info { unsigned int flags ; struct mutex dqio_mutex ; struct mutex dqonoff_mutex ; struct inode *files[3U] ; struct mem_dqinfo info[3U] ; struct quota_format_ops const *ops[3U] ; }; struct writeback_control; struct kiocb { struct file *ki_filp ; loff_t ki_pos ; void (*ki_complete)(struct kiocb * , long , long ) ; void *private ; int ki_flags ; }; struct address_space_operations { int (*writepage)(struct page * , struct writeback_control * ) ; int (*readpage)(struct file * , struct page * ) ; int (*writepages)(struct address_space * , struct writeback_control * ) ; int (*set_page_dirty)(struct page * ) ; int (*readpages)(struct file * , struct address_space * , struct list_head * , unsigned int ) ; int (*write_begin)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page ** , void ** ) ; int (*write_end)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page * , void * ) ; sector_t (*bmap)(struct address_space * , sector_t ) ; void (*invalidatepage)(struct page * , unsigned int , unsigned int ) ; int (*releasepage)(struct page * , gfp_t ) ; void (*freepage)(struct page * ) ; ssize_t (*direct_IO)(struct kiocb * , struct iov_iter * , loff_t ) ; int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ; int (*launder_page)(struct page * ) ; int (*is_partially_uptodate)(struct page * , unsigned long , unsigned long ) ; void (*is_dirty_writeback)(struct page * , bool * , bool * ) ; int (*error_remove_page)(struct address_space * , struct page * ) ; int (*swap_activate)(struct swap_info_struct * , struct file * , sector_t * ) ; void (*swap_deactivate)(struct file * ) ; }; struct address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; atomic_t i_mmap_writable ; struct rb_root i_mmap ; struct rw_semaphore i_mmap_rwsem ; unsigned long nrpages ; unsigned long nrshadows ; unsigned long writeback_index ; struct address_space_operations const *a_ops ; unsigned long flags ; spinlock_t private_lock ; struct list_head private_list ; void *private_data ; }; struct request_queue; struct hd_struct; struct gendisk; struct block_device { dev_t bd_dev ; int bd_openers ; struct inode *bd_inode ; struct super_block *bd_super ; struct mutex bd_mutex ; struct list_head bd_inodes ; void *bd_claiming ; void *bd_holder ; int bd_holders ; bool bd_write_holder ; struct list_head bd_holder_disks ; struct block_device *bd_contains ; unsigned int bd_block_size ; struct hd_struct *bd_part ; unsigned int bd_part_count ; int bd_invalidated ; struct gendisk *bd_disk ; struct request_queue *bd_queue ; struct list_head bd_list ; unsigned long bd_private ; int bd_fsfreeze_count ; struct mutex bd_fsfreeze_mutex ; }; struct posix_acl; struct inode_operations; union __anonunion____missing_field_name_223 { unsigned int const i_nlink ; unsigned int __i_nlink ; }; union __anonunion____missing_field_name_224 { struct hlist_head i_dentry ; struct callback_head i_rcu ; }; struct file_lock_context; struct cdev; union __anonunion____missing_field_name_225 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; char *i_link ; }; struct inode { umode_t i_mode ; unsigned short i_opflags ; kuid_t i_uid ; kgid_t i_gid ; unsigned int i_flags ; struct posix_acl *i_acl ; struct posix_acl *i_default_acl ; struct inode_operations const *i_op ; struct super_block *i_sb ; struct address_space *i_mapping ; void *i_security ; unsigned long i_ino ; union __anonunion____missing_field_name_223 __annonCompField64 ; dev_t i_rdev ; loff_t i_size ; struct timespec i_atime ; struct timespec i_mtime ; struct timespec i_ctime ; spinlock_t i_lock ; unsigned short i_bytes ; unsigned int i_blkbits ; blkcnt_t i_blocks ; unsigned long i_state ; struct mutex i_mutex ; unsigned long dirtied_when ; unsigned long dirtied_time_when ; struct hlist_node i_hash ; struct list_head i_wb_list ; struct bdi_writeback *i_wb ; int i_wb_frn_winner ; u16 i_wb_frn_avg_time ; u16 i_wb_frn_history ; struct list_head i_lru ; struct list_head i_sb_list ; union __anonunion____missing_field_name_224 __annonCompField65 ; u64 i_version ; atomic_t i_count ; atomic_t i_dio_count ; atomic_t i_writecount ; atomic_t i_readcount ; struct file_operations const *i_fop ; struct file_lock_context *i_flctx ; struct address_space i_data ; struct list_head i_devices ; union __anonunion____missing_field_name_225 __annonCompField66 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_marks ; void *i_private ; }; struct fown_struct { rwlock_t lock ; struct pid *pid ; enum pid_type pid_type ; kuid_t uid ; kuid_t euid ; int signum ; }; struct file_ra_state { unsigned long start ; unsigned int size ; unsigned int async_size ; unsigned int ra_pages ; unsigned int mmap_miss ; loff_t prev_pos ; }; union __anonunion_f_u_226 { struct llist_node fu_llist ; struct callback_head fu_rcuhead ; }; struct file { union __anonunion_f_u_226 f_u ; struct path f_path ; struct inode *f_inode ; struct file_operations const *f_op ; spinlock_t f_lock ; atomic_long_t f_count ; unsigned int f_flags ; fmode_t f_mode ; struct mutex f_pos_lock ; loff_t f_pos ; struct fown_struct f_owner ; struct cred const *f_cred ; struct file_ra_state f_ra ; u64 f_version ; void *f_security ; void *private_data ; struct list_head f_ep_links ; struct list_head f_tfile_llink ; struct address_space *f_mapping ; }; typedef void *fl_owner_t; struct file_lock; struct file_lock_operations { void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ; void (*fl_release_private)(struct file_lock * ) ; }; struct lock_manager_operations { int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ; unsigned long (*lm_owner_key)(struct file_lock * ) ; fl_owner_t (*lm_get_owner)(fl_owner_t ) ; void (*lm_put_owner)(fl_owner_t ) ; void (*lm_notify)(struct file_lock * ) ; int (*lm_grant)(struct file_lock * , int ) ; bool (*lm_break)(struct file_lock * ) ; int (*lm_change)(struct file_lock * , int , struct list_head * ) ; void (*lm_setup)(struct file_lock * , void ** ) ; }; struct net; struct nlm_lockowner; struct nfs_lock_info { u32 state ; struct nlm_lockowner *owner ; struct list_head list ; }; struct nfs4_lock_state; struct nfs4_lock_info { struct nfs4_lock_state *owner ; }; struct fasync_struct; struct __anonstruct_afs_228 { struct list_head link ; int state ; }; union __anonunion_fl_u_227 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_228 afs ; }; struct file_lock { struct file_lock *fl_next ; struct list_head fl_list ; struct hlist_node fl_link ; struct list_head fl_block ; fl_owner_t fl_owner ; unsigned int fl_flags ; unsigned char fl_type ; unsigned int fl_pid ; int fl_link_cpu ; struct pid *fl_nspid ; wait_queue_head_t fl_wait ; struct file *fl_file ; loff_t fl_start ; loff_t fl_end ; struct fasync_struct *fl_fasync ; unsigned long fl_break_time ; unsigned long fl_downgrade_time ; struct file_lock_operations const *fl_ops ; struct lock_manager_operations const *fl_lmops ; union __anonunion_fl_u_227 fl_u ; }; struct file_lock_context { spinlock_t flc_lock ; struct list_head flc_flock ; struct list_head flc_posix ; struct list_head flc_lease ; }; struct fasync_struct { spinlock_t fa_lock ; int magic ; int fa_fd ; struct fasync_struct *fa_next ; struct file *fa_file ; struct callback_head fa_rcu ; }; struct sb_writers { struct percpu_counter counter[3U] ; wait_queue_head_t wait ; int frozen ; wait_queue_head_t wait_unfrozen ; struct lockdep_map lock_map[3U] ; }; struct file_system_type; struct super_operations; struct xattr_handler; struct mtd_info; struct super_block { struct list_head s_list ; dev_t s_dev ; unsigned char s_blocksize_bits ; unsigned long s_blocksize ; loff_t s_maxbytes ; struct file_system_type *s_type ; struct super_operations const *s_op ; struct dquot_operations const *dq_op ; struct quotactl_ops const *s_qcop ; struct export_operations const *s_export_op ; unsigned long s_flags ; unsigned long s_iflags ; unsigned long s_magic ; struct dentry *s_root ; struct rw_semaphore s_umount ; int s_count ; atomic_t s_active ; void *s_security ; struct xattr_handler const **s_xattr ; struct list_head s_inodes ; struct hlist_bl_head s_anon ; struct list_head s_mounts ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct hlist_node s_instances ; unsigned int s_quota_types ; struct quota_info s_dquot ; struct sb_writers s_writers ; char s_id[32U] ; u8 s_uuid[16U] ; void *s_fs_info ; unsigned int s_max_links ; fmode_t s_mode ; u32 s_time_gran ; struct mutex s_vfs_rename_mutex ; char *s_subtype ; char *s_options ; struct dentry_operations const *s_d_op ; int cleancache_poolid ; struct shrinker s_shrink ; atomic_long_t s_remove_count ; int s_readonly_remount ; struct workqueue_struct *s_dio_done_wq ; struct hlist_head s_pins ; struct list_lru s_dentry_lru ; struct list_lru s_inode_lru ; struct callback_head rcu ; int s_stack_depth ; }; struct fiemap_extent_info { unsigned int fi_flags ; unsigned int fi_extents_mapped ; unsigned int fi_extents_max ; struct fiemap_extent *fi_extents_start ; }; struct dir_context; struct dir_context { int (*actor)(struct dir_context * , char const * , int , loff_t , u64 , unsigned int ) ; loff_t pos ; }; struct file_operations { struct module *owner ; loff_t (*llseek)(struct file * , loff_t , int ) ; ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ; ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ; ssize_t (*read_iter)(struct kiocb * , struct iov_iter * ) ; ssize_t (*write_iter)(struct kiocb * , struct iov_iter * ) ; int (*iterate)(struct file * , struct dir_context * ) ; unsigned int (*poll)(struct file * , struct poll_table_struct * ) ; long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ; long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ; int (*mmap)(struct file * , struct vm_area_struct * ) ; int (*mremap)(struct file * , struct vm_area_struct * ) ; int (*open)(struct inode * , struct file * ) ; int (*flush)(struct file * , fl_owner_t ) ; int (*release)(struct inode * , struct file * ) ; int (*fsync)(struct file * , loff_t , loff_t , int ) ; int (*aio_fsync)(struct kiocb * , int ) ; int (*fasync)(int , struct file * , int ) ; int (*lock)(struct file * , int , struct file_lock * ) ; ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * , int ) ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; int (*check_flags)(int ) ; int (*flock)(struct file * , int , struct file_lock * ) ; ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t , unsigned int ) ; ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*setlease)(struct file * , long , struct file_lock ** , void ** ) ; long (*fallocate)(struct file * , int , loff_t , loff_t ) ; void (*show_fdinfo)(struct seq_file * , struct file * ) ; }; struct inode_operations { struct dentry *(*lookup)(struct inode * , struct dentry * , unsigned int ) ; char const *(*follow_link)(struct dentry * , void ** ) ; int (*permission)(struct inode * , int ) ; struct posix_acl *(*get_acl)(struct inode * , int ) ; int (*readlink)(struct dentry * , char * , int ) ; void (*put_link)(struct inode * , void * ) ; int (*create)(struct inode * , struct dentry * , umode_t , bool ) ; int (*link)(struct dentry * , struct inode * , struct dentry * ) ; int (*unlink)(struct inode * , struct dentry * ) ; int (*symlink)(struct inode * , struct dentry * , char const * ) ; int (*mkdir)(struct inode * , struct dentry * , umode_t ) ; int (*rmdir)(struct inode * , struct dentry * ) ; int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ; int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ; int (*rename2)(struct inode * , struct dentry * , struct inode * , struct dentry * , unsigned int ) ; int (*setattr)(struct dentry * , struct iattr * ) ; int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ; int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ; ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ; ssize_t (*listxattr)(struct dentry * , char * , size_t ) ; int (*removexattr)(struct dentry * , char const * ) ; int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ; int (*update_time)(struct inode * , struct timespec * , int ) ; int (*atomic_open)(struct inode * , struct dentry * , struct file * , unsigned int , umode_t , int * ) ; int (*tmpfile)(struct inode * , struct dentry * , umode_t ) ; int (*set_acl)(struct inode * , struct posix_acl * , int ) ; }; struct super_operations { struct inode *(*alloc_inode)(struct super_block * ) ; void (*destroy_inode)(struct inode * ) ; void (*dirty_inode)(struct inode * , int ) ; int (*write_inode)(struct inode * , struct writeback_control * ) ; int (*drop_inode)(struct inode * ) ; void (*evict_inode)(struct inode * ) ; void (*put_super)(struct super_block * ) ; int (*sync_fs)(struct super_block * , int ) ; int (*freeze_super)(struct super_block * ) ; int (*freeze_fs)(struct super_block * ) ; int (*thaw_super)(struct super_block * ) ; int (*unfreeze_fs)(struct super_block * ) ; int (*statfs)(struct dentry * , struct kstatfs * ) ; int (*remount_fs)(struct super_block * , int * , char * ) ; void (*umount_begin)(struct super_block * ) ; int (*show_options)(struct seq_file * , struct dentry * ) ; int (*show_devname)(struct seq_file * , struct dentry * ) ; int (*show_path)(struct seq_file * , struct dentry * ) ; int (*show_stats)(struct seq_file * , struct dentry * ) ; ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ; ssize_t (*quota_write)(struct super_block * , int , char const * , size_t , loff_t ) ; struct dquot **(*get_dquots)(struct inode * ) ; int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ; long (*nr_cached_objects)(struct super_block * , struct shrink_control * ) ; long (*free_cached_objects)(struct super_block * , struct shrink_control * ) ; }; struct file_system_type { char const *name ; int fs_flags ; struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ; void (*kill_sb)(struct super_block * ) ; struct module *owner ; struct file_system_type *next ; struct hlist_head fs_supers ; struct lock_class_key s_lock_key ; struct lock_class_key s_umount_key ; struct lock_class_key s_vfs_rename_key ; struct lock_class_key s_writers_key[3U] ; struct lock_class_key i_lock_key ; struct lock_class_key i_mutex_key ; struct lock_class_key i_mutex_dir_key ; }; struct vm_fault { unsigned int flags ; unsigned long pgoff ; void *virtual_address ; struct page *cow_page ; struct page *page ; unsigned long max_pgoff ; pte_t *pte ; }; struct vm_operations_struct { void (*open)(struct vm_area_struct * ) ; void (*close)(struct vm_area_struct * ) ; int (*fault)(struct vm_area_struct * , struct vm_fault * ) ; void (*map_pages)(struct vm_area_struct * , struct vm_fault * ) ; int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*pfn_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ; char const *(*name)(struct vm_area_struct * ) ; int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ; struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ; struct page *(*find_special_page)(struct vm_area_struct * , unsigned long ) ; }; struct kvec; struct exception_table_entry { int insn ; int fixup ; }; struct proc_dir_entry; struct kref { atomic_t refcount ; }; struct tasklet_struct { struct tasklet_struct *next ; unsigned long state ; atomic_t count ; void (*func)(unsigned long ) ; unsigned long data ; }; struct attribute_group; struct taskstats { __u16 version ; __u32 ac_exitcode ; __u8 ac_flag ; __u8 ac_nice ; __u64 cpu_count ; __u64 cpu_delay_total ; __u64 blkio_count ; __u64 blkio_delay_total ; __u64 swapin_count ; __u64 swapin_delay_total ; __u64 cpu_run_real_total ; __u64 cpu_run_virtual_total ; char ac_comm[32U] ; __u8 ac_sched ; __u8 ac_pad[3U] ; __u32 ac_uid ; __u32 ac_gid ; __u32 ac_pid ; __u32 ac_ppid ; __u32 ac_btime ; __u64 ac_etime ; __u64 ac_utime ; __u64 ac_stime ; __u64 ac_minflt ; __u64 ac_majflt ; __u64 coremem ; __u64 virtmem ; __u64 hiwater_rss ; __u64 hiwater_vm ; __u64 read_char ; __u64 write_char ; __u64 read_syscalls ; __u64 write_syscalls ; __u64 read_bytes ; __u64 write_bytes ; __u64 cancelled_write_bytes ; __u64 nvcsw ; __u64 nivcsw ; __u64 ac_utimescaled ; __u64 ac_stimescaled ; __u64 cpu_scaled_run_real_total ; __u64 freepages_count ; __u64 freepages_delay_total ; }; struct seq_file { char *buf ; size_t size ; size_t from ; size_t count ; size_t pad_until ; loff_t index ; loff_t read_pos ; u64 version ; struct mutex lock ; struct seq_operations const *op ; int poll_event ; struct user_namespace *user_ns ; void *private ; }; struct seq_operations { void *(*start)(struct seq_file * , loff_t * ) ; void (*stop)(struct seq_file * , void * ) ; void *(*next)(struct seq_file * , void * , loff_t * ) ; int (*show)(struct seq_file * , void * ) ; }; struct kernfs_open_node; struct kernfs_iattrs; struct kernfs_elem_dir { unsigned long subdirs ; struct rb_root children ; struct kernfs_root *root ; }; struct kernfs_elem_symlink { struct kernfs_node *target_kn ; }; struct kernfs_elem_attr { struct kernfs_ops const *ops ; struct kernfs_open_node *open ; loff_t size ; struct kernfs_node *notify_next ; }; union __anonunion____missing_field_name_237 { struct kernfs_elem_dir dir ; struct kernfs_elem_symlink symlink ; struct kernfs_elem_attr attr ; }; struct kernfs_node { atomic_t count ; atomic_t active ; struct lockdep_map dep_map ; struct kernfs_node *parent ; char const *name ; struct rb_node rb ; void const *ns ; unsigned int hash ; union __anonunion____missing_field_name_237 __annonCompField74 ; void *priv ; unsigned short flags ; umode_t mode ; unsigned int ino ; struct kernfs_iattrs *iattr ; }; struct kernfs_syscall_ops { int (*remount_fs)(struct kernfs_root * , int * , char * ) ; int (*show_options)(struct seq_file * , struct kernfs_root * ) ; int (*mkdir)(struct kernfs_node * , char const * , umode_t ) ; int (*rmdir)(struct kernfs_node * ) ; int (*rename)(struct kernfs_node * , struct kernfs_node * , char const * ) ; }; struct kernfs_root { struct kernfs_node *kn ; unsigned int flags ; struct ida ino_ida ; struct kernfs_syscall_ops *syscall_ops ; struct list_head supers ; wait_queue_head_t deactivate_waitq ; }; struct kernfs_open_file { struct kernfs_node *kn ; struct file *file ; void *priv ; struct mutex mutex ; int event ; struct list_head list ; char *prealloc_buf ; size_t atomic_write_len ; bool mmapped ; struct vm_operations_struct const *vm_ops ; }; struct kernfs_ops { int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; ssize_t (*read)(struct kernfs_open_file * , char * , size_t , loff_t ) ; size_t atomic_write_len ; bool prealloc ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; int (*mmap)(struct kernfs_open_file * , struct vm_area_struct * ) ; struct lock_class_key lockdep_key ; }; struct sock; enum kobj_ns_type { KOBJ_NS_TYPE_NONE = 0, KOBJ_NS_TYPE_NET = 1, KOBJ_NS_TYPES = 2 } ; struct kobj_ns_type_operations { enum kobj_ns_type type ; bool (*current_may_mount)(void) ; void *(*grab_current_ns)(void) ; void const *(*netlink_ns)(struct sock * ) ; void const *(*initial_ns)(void) ; void (*drop_ns)(void * ) ; }; struct bin_attribute; struct attribute { char const *name ; umode_t mode ; bool ignore_lockdep ; struct lock_class_key *key ; struct lock_class_key skey ; }; struct attribute_group { char const *name ; umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ; struct attribute **attrs ; struct bin_attribute **bin_attrs ; }; struct bin_attribute { struct attribute attr ; size_t size ; void *private ; ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ; }; struct sysfs_ops { ssize_t (*show)(struct kobject * , struct attribute * , char * ) ; ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ; }; struct kset; struct kobj_type; struct kobject { char const *name ; struct list_head entry ; struct kobject *parent ; struct kset *kset ; struct kobj_type *ktype ; struct kernfs_node *sd ; struct kref kref ; struct delayed_work release ; unsigned char state_initialized : 1 ; unsigned char state_in_sysfs : 1 ; unsigned char state_add_uevent_sent : 1 ; unsigned char state_remove_uevent_sent : 1 ; unsigned char uevent_suppress : 1 ; }; struct kobj_type { void (*release)(struct kobject * ) ; struct sysfs_ops const *sysfs_ops ; struct attribute **default_attrs ; struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject * ) ; void const *(*namespace)(struct kobject * ) ; }; struct kobj_uevent_env { char *argv[3U] ; char *envp[32U] ; int envp_idx ; char buf[2048U] ; int buflen ; }; struct kset_uevent_ops { int (* const filter)(struct kset * , struct kobject * ) ; char const *(* const name)(struct kset * , struct kobject * ) ; int (* const uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ; }; struct kset { struct list_head list ; spinlock_t list_lock ; struct kobject kobj ; struct kset_uevent_ops const *uevent_ops ; }; struct klist_node; struct klist_node { void *n_klist ; struct list_head n_node ; struct kref n_ref ; }; struct pinctrl; struct pinctrl_state; struct dev_pin_info { struct pinctrl *p ; struct pinctrl_state *default_state ; struct pinctrl_state *sleep_state ; struct pinctrl_state *idle_state ; }; struct dma_map_ops; struct dev_archdata { struct dma_map_ops *dma_ops ; void *iommu ; }; struct device_private; struct device_driver; struct driver_private; struct class; struct subsys_private; struct bus_type; struct device_node; struct fwnode_handle; struct iommu_ops; struct iommu_group; struct device_attribute; struct bus_type { char const *name ; char const *dev_name ; struct device *dev_root ; struct device_attribute *dev_attrs ; struct attribute_group const **bus_groups ; struct attribute_group const **dev_groups ; struct attribute_group const **drv_groups ; int (*match)(struct device * , struct device_driver * ) ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*online)(struct device * ) ; int (*offline)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct dev_pm_ops const *pm ; struct iommu_ops const *iommu_ops ; struct subsys_private *p ; struct lock_class_key lock_key ; }; struct device_type; enum probe_type { PROBE_DEFAULT_STRATEGY = 0, PROBE_PREFER_ASYNCHRONOUS = 1, PROBE_FORCE_SYNCHRONOUS = 2 } ; struct of_device_id; struct acpi_device_id; struct device_driver { char const *name ; struct bus_type *bus ; struct module *owner ; char const *mod_name ; bool suppress_bind_attrs ; enum probe_type probe_type ; struct of_device_id const *of_match_table ; struct acpi_device_id const *acpi_match_table ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct attribute_group const **groups ; struct dev_pm_ops const *pm ; struct driver_private *p ; }; struct class_attribute; struct class { char const *name ; struct module *owner ; struct class_attribute *class_attrs ; struct attribute_group const **dev_groups ; struct kobject *dev_kobj ; int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * ) ; void (*class_release)(struct class * ) ; void (*dev_release)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct kobj_ns_type_operations const *ns_type ; void const *(*namespace)(struct device * ) ; struct dev_pm_ops const *pm ; struct subsys_private *p ; }; struct class_attribute { struct attribute attr ; ssize_t (*show)(struct class * , struct class_attribute * , char * ) ; ssize_t (*store)(struct class * , struct class_attribute * , char const * , size_t ) ; }; struct device_type { char const *name ; struct attribute_group const **groups ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * , kuid_t * , kgid_t * ) ; void (*release)(struct device * ) ; struct dev_pm_ops const *pm ; }; struct device_attribute { struct attribute attr ; ssize_t (*show)(struct device * , struct device_attribute * , char * ) ; ssize_t (*store)(struct device * , struct device_attribute * , char const * , size_t ) ; }; struct device_dma_parameters { unsigned int max_segment_size ; unsigned long segment_boundary_mask ; }; struct dma_coherent_mem; struct cma; struct device { struct device *parent ; struct device_private *p ; struct kobject kobj ; char const *init_name ; struct device_type const *type ; struct mutex mutex ; struct bus_type *bus ; struct device_driver *driver ; void *platform_data ; void *driver_data ; struct dev_pm_info power ; struct dev_pm_domain *pm_domain ; struct dev_pin_info *pins ; int numa_node ; u64 *dma_mask ; u64 coherent_dma_mask ; unsigned long dma_pfn_offset ; struct device_dma_parameters *dma_parms ; struct list_head dma_pools ; struct dma_coherent_mem *dma_mem ; struct cma *cma_area ; struct dev_archdata archdata ; struct device_node *of_node ; struct fwnode_handle *fwnode ; dev_t devt ; u32 id ; spinlock_t devres_lock ; struct list_head devres_head ; struct klist_node knode_class ; struct class *class ; struct attribute_group const **groups ; void (*release)(struct device * ) ; struct iommu_group *iommu_group ; bool offline_disabled ; bool offline ; }; struct wakeup_source { char const *name ; struct list_head entry ; spinlock_t lock ; struct wake_irq *wakeirq ; struct timer_list timer ; unsigned long timer_expires ; ktime_t total_time ; ktime_t max_time ; ktime_t last_time ; ktime_t start_prevent_time ; ktime_t prevent_sleep_time ; unsigned long event_count ; unsigned long active_count ; unsigned long relax_count ; unsigned long expire_count ; unsigned long wakeup_count ; bool active ; bool autosleep_enabled ; }; struct reclaim_state { unsigned long reclaimed_slab ; }; struct swap_extent { struct list_head list ; unsigned long start_page ; unsigned long nr_pages ; sector_t start_block ; }; struct swap_cluster_info { unsigned int data : 24 ; unsigned char flags ; }; struct percpu_cluster { struct swap_cluster_info index ; unsigned int next ; }; struct swap_info_struct { unsigned long flags ; short prio ; struct plist_node list ; struct plist_node avail_list ; signed char type ; unsigned int max ; unsigned char *swap_map ; struct swap_cluster_info *cluster_info ; struct swap_cluster_info free_cluster_head ; struct swap_cluster_info free_cluster_tail ; unsigned int lowest_bit ; unsigned int highest_bit ; unsigned int pages ; unsigned int inuse_pages ; unsigned int cluster_next ; unsigned int cluster_nr ; struct percpu_cluster *percpu_cluster ; struct swap_extent *curr_swap_extent ; struct swap_extent first_swap_extent ; struct block_device *bdev ; struct file *swap_file ; unsigned int old_block_size ; unsigned long *frontswap_map ; atomic_t frontswap_pages ; spinlock_t lock ; struct work_struct discard_work ; struct swap_cluster_info discard_cluster_head ; struct swap_cluster_info discard_cluster_tail ; }; typedef __u64 Elf64_Addr; typedef __u16 Elf64_Half; typedef __u32 Elf64_Word; typedef __u64 Elf64_Xword; struct elf64_sym { Elf64_Word st_name ; unsigned char st_info ; unsigned char st_other ; Elf64_Half st_shndx ; Elf64_Addr st_value ; Elf64_Xword st_size ; }; typedef struct elf64_sym Elf64_Sym; struct kernel_param; struct kernel_param_ops { unsigned int flags ; int (*set)(char const * , struct kernel_param const * ) ; int (*get)(char * , struct kernel_param const * ) ; void (*free)(void * ) ; }; struct kparam_string; struct kparam_array; union __anonunion____missing_field_name_252 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; struct module *mod ; struct kernel_param_ops const *ops ; u16 const perm ; s8 level ; u8 flags ; union __anonunion____missing_field_name_252 __annonCompField75 ; }; struct kparam_string { unsigned int maxlen ; char *string ; }; struct kparam_array { unsigned int max ; unsigned int elemsize ; unsigned int *num ; struct kernel_param_ops const *ops ; void *elem ; }; struct latch_tree_node { struct rb_node node[2U] ; }; struct mod_arch_specific { }; struct module_param_attrs; struct module_kobject { struct kobject kobj ; struct module *mod ; struct kobject *drivers_dir ; struct module_param_attrs *mp ; struct completion *kobj_completion ; }; struct module_attribute { struct attribute attr ; ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ; ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * , size_t ) ; void (*setup)(struct module * , char const * ) ; int (*test)(struct module * ) ; void (*free)(struct module * ) ; }; enum module_state { MODULE_STATE_LIVE = 0, MODULE_STATE_COMING = 1, MODULE_STATE_GOING = 2, MODULE_STATE_UNFORMED = 3 } ; struct mod_tree_node { struct module *mod ; struct latch_tree_node node ; }; struct module_sect_attrs; struct module_notes_attrs; struct tracepoint; struct trace_event_call; struct trace_enum_map; struct module { enum module_state state ; struct list_head list ; char name[56U] ; struct module_kobject mkobj ; struct module_attribute *modinfo_attrs ; char const *version ; char const *srcversion ; struct kobject *holders_dir ; struct kernel_symbol const *syms ; unsigned long const *crcs ; unsigned int num_syms ; struct mutex param_lock ; struct kernel_param *kp ; unsigned int num_kp ; unsigned int num_gpl_syms ; struct kernel_symbol const *gpl_syms ; unsigned long const *gpl_crcs ; struct kernel_symbol const *unused_syms ; unsigned long const *unused_crcs ; unsigned int num_unused_syms ; unsigned int num_unused_gpl_syms ; struct kernel_symbol const *unused_gpl_syms ; unsigned long const *unused_gpl_crcs ; bool sig_ok ; bool async_probe_requested ; struct kernel_symbol const *gpl_future_syms ; unsigned long const *gpl_future_crcs ; unsigned int num_gpl_future_syms ; unsigned int num_exentries ; struct exception_table_entry *extable ; int (*init)(void) ; void *module_init ; void *module_core ; unsigned int init_size ; unsigned int core_size ; unsigned int init_text_size ; unsigned int core_text_size ; struct mod_tree_node mtn_core ; struct mod_tree_node mtn_init ; unsigned int init_ro_size ; unsigned int core_ro_size ; struct mod_arch_specific arch ; unsigned int taints ; unsigned int num_bugs ; struct list_head bug_list ; struct bug_entry *bug_table ; Elf64_Sym *symtab ; Elf64_Sym *core_symtab ; unsigned int num_symtab ; unsigned int core_num_syms ; char *strtab ; char *core_strtab ; struct module_sect_attrs *sect_attrs ; struct module_notes_attrs *notes_attrs ; char *args ; void *percpu ; unsigned int percpu_size ; unsigned int num_tracepoints ; struct tracepoint * const *tracepoints_ptrs ; unsigned int num_trace_bprintk_fmt ; char const **trace_bprintk_fmt_start ; struct trace_event_call **trace_events ; unsigned int num_trace_events ; struct trace_enum_map **trace_enums ; unsigned int num_trace_enums ; bool klp_alive ; struct list_head source_list ; struct list_head target_list ; void (*exit)(void) ; atomic_t refcnt ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; struct scatterlist { unsigned long sg_magic ; unsigned long page_link ; unsigned int offset ; unsigned int length ; dma_addr_t dma_address ; unsigned int dma_length ; }; struct sg_table { struct scatterlist *sgl ; unsigned int nents ; unsigned int orig_nents ; }; struct hlist_nulls_node; struct hlist_nulls_head { struct hlist_nulls_node *first ; }; struct hlist_nulls_node { struct hlist_nulls_node *next ; struct hlist_nulls_node **pprev ; }; struct iovec { void *iov_base ; __kernel_size_t iov_len ; }; struct kvec { void *iov_base ; size_t iov_len ; }; union __anonunion____missing_field_name_259 { struct iovec const *iov ; struct kvec const *kvec ; struct bio_vec const *bvec ; }; struct iov_iter { int type ; size_t iov_offset ; size_t count ; union __anonunion____missing_field_name_259 __annonCompField76 ; unsigned long nr_segs ; }; struct dql { unsigned int num_queued ; unsigned int adj_limit ; unsigned int last_obj_cnt ; unsigned int limit ; unsigned int num_completed ; unsigned int prev_ovlimit ; unsigned int prev_num_queued ; unsigned int prev_last_obj_cnt ; unsigned int lowest_slack ; unsigned long slack_start_time ; unsigned int max_limit ; unsigned int min_limit ; unsigned int slack_hold_time ; }; typedef unsigned short __kernel_sa_family_t; typedef __kernel_sa_family_t sa_family_t; struct sockaddr { sa_family_t sa_family ; char sa_data[14U] ; }; struct msghdr { void *msg_name ; int msg_namelen ; struct iov_iter msg_iter ; void *msg_control ; __kernel_size_t msg_controllen ; unsigned int msg_flags ; struct kiocb *msg_iocb ; }; struct __anonstruct_sync_serial_settings_261 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; }; typedef struct __anonstruct_sync_serial_settings_261 sync_serial_settings; struct __anonstruct_te1_settings_262 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; unsigned int slot_map ; }; typedef struct __anonstruct_te1_settings_262 te1_settings; struct __anonstruct_raw_hdlc_proto_263 { unsigned short encoding ; unsigned short parity ; }; typedef struct __anonstruct_raw_hdlc_proto_263 raw_hdlc_proto; struct __anonstruct_fr_proto_264 { unsigned int t391 ; unsigned int t392 ; unsigned int n391 ; unsigned int n392 ; unsigned int n393 ; unsigned short lmi ; unsigned short dce ; }; typedef struct __anonstruct_fr_proto_264 fr_proto; struct __anonstruct_fr_proto_pvc_265 { unsigned int dlci ; }; typedef struct __anonstruct_fr_proto_pvc_265 fr_proto_pvc; struct __anonstruct_fr_proto_pvc_info_266 { unsigned int dlci ; char master[16U] ; }; typedef struct __anonstruct_fr_proto_pvc_info_266 fr_proto_pvc_info; struct __anonstruct_cisco_proto_267 { unsigned int interval ; unsigned int timeout ; }; typedef struct __anonstruct_cisco_proto_267 cisco_proto; struct ifmap { unsigned long mem_start ; unsigned long mem_end ; unsigned short base_addr ; unsigned char irq ; unsigned char dma ; unsigned char port ; }; union __anonunion_ifs_ifsu_268 { raw_hdlc_proto *raw_hdlc ; cisco_proto *cisco ; fr_proto *fr ; fr_proto_pvc *fr_pvc ; fr_proto_pvc_info *fr_pvc_info ; sync_serial_settings *sync ; te1_settings *te1 ; }; struct if_settings { unsigned int type ; unsigned int size ; union __anonunion_ifs_ifsu_268 ifs_ifsu ; }; union __anonunion_ifr_ifrn_269 { char ifrn_name[16U] ; }; union __anonunion_ifr_ifru_270 { struct sockaddr ifru_addr ; struct sockaddr ifru_dstaddr ; struct sockaddr ifru_broadaddr ; struct sockaddr ifru_netmask ; struct sockaddr ifru_hwaddr ; short ifru_flags ; int ifru_ivalue ; int ifru_mtu ; struct ifmap ifru_map ; char ifru_slave[16U] ; char ifru_newname[16U] ; void *ifru_data ; struct if_settings ifru_settings ; }; struct ifreq { union __anonunion_ifr_ifrn_269 ifr_ifrn ; union __anonunion_ifr_ifru_270 ifr_ifru ; }; typedef s32 compat_time_t; typedef s32 compat_long_t; typedef u32 compat_uptr_t; struct compat_timespec { compat_time_t tv_sec ; s32 tv_nsec ; }; struct compat_robust_list { compat_uptr_t next ; }; struct compat_robust_list_head { struct compat_robust_list list ; compat_long_t futex_offset ; compat_uptr_t list_op_pending ; }; enum ldv_25612 { SS_FREE = 0, SS_UNCONNECTED = 1, SS_CONNECTING = 2, SS_CONNECTED = 3, SS_DISCONNECTING = 4 } ; typedef enum ldv_25612 socket_state; struct socket_wq { wait_queue_head_t wait ; struct fasync_struct *fasync_list ; struct callback_head rcu ; }; struct proto_ops; struct socket { socket_state state ; short type ; unsigned long flags ; struct socket_wq *wq ; struct file *file ; struct sock *sk ; struct proto_ops const *ops ; }; struct proto_ops { int family ; struct module *owner ; int (*release)(struct socket * ) ; int (*bind)(struct socket * , struct sockaddr * , int ) ; int (*connect)(struct socket * , struct sockaddr * , int , int ) ; int (*socketpair)(struct socket * , struct socket * ) ; int (*accept)(struct socket * , struct socket * , int ) ; int (*getname)(struct socket * , struct sockaddr * , int * , int ) ; unsigned int (*poll)(struct file * , struct socket * , struct poll_table_struct * ) ; int (*ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*compat_ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*listen)(struct socket * , int ) ; int (*shutdown)(struct socket * , int ) ; int (*setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct socket * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct socket * , int , int , char * , int * ) ; int (*sendmsg)(struct socket * , struct msghdr * , size_t ) ; int (*recvmsg)(struct socket * , struct msghdr * , size_t , int ) ; int (*mmap)(struct file * , struct socket * , struct vm_area_struct * ) ; ssize_t (*sendpage)(struct socket * , struct page * , int , size_t , int ) ; ssize_t (*splice_read)(struct socket * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*set_peek_off)(struct sock * , int ) ; }; struct in6_addr; struct sk_buff; struct dma_attrs { unsigned long flags[1U] ; }; enum dma_data_direction { DMA_BIDIRECTIONAL = 0, DMA_TO_DEVICE = 1, DMA_FROM_DEVICE = 2, DMA_NONE = 3 } ; struct dma_map_ops { void *(*alloc)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ) ; void (*free)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ) ; int (*mmap)(struct device * , struct vm_area_struct * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; int (*get_sgtable)(struct device * , struct sg_table * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; dma_addr_t (*map_page)(struct device * , struct page * , unsigned long , size_t , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_page)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ) ; int (*map_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*sync_single_for_cpu)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_single_for_device)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_sg_for_cpu)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; void (*sync_sg_for_device)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; int (*mapping_error)(struct device * , dma_addr_t ) ; int (*dma_supported)(struct device * , u64 ) ; int (*set_dma_mask)(struct device * , u64 ) ; int is_phys ; }; typedef u64 netdev_features_t; union __anonunion_in6_u_286 { __u8 u6_addr8[16U] ; __be16 u6_addr16[8U] ; __be32 u6_addr32[4U] ; }; struct in6_addr { union __anonunion_in6_u_286 in6_u ; }; struct ethhdr { unsigned char h_dest[6U] ; unsigned char h_source[6U] ; __be16 h_proto ; }; struct pipe_buf_operations; struct pipe_buffer { struct page *page ; unsigned int offset ; unsigned int len ; struct pipe_buf_operations const *ops ; unsigned int flags ; unsigned long private ; }; struct pipe_inode_info { struct mutex mutex ; wait_queue_head_t wait ; unsigned int nrbufs ; unsigned int curbuf ; unsigned int buffers ; unsigned int readers ; unsigned int writers ; unsigned int files ; unsigned int waiting_writers ; unsigned int r_counter ; unsigned int w_counter ; struct page *tmp_page ; struct fasync_struct *fasync_readers ; struct fasync_struct *fasync_writers ; struct pipe_buffer *bufs ; }; struct pipe_buf_operations { int can_merge ; int (*confirm)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*release)(struct pipe_inode_info * , struct pipe_buffer * ) ; int (*steal)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*get)(struct pipe_inode_info * , struct pipe_buffer * ) ; }; struct napi_struct; struct nf_conntrack { atomic_t use ; }; union __anonunion____missing_field_name_291 { struct net_device *physoutdev ; char neigh_header[8U] ; }; union __anonunion____missing_field_name_292 { __be32 ipv4_daddr ; struct in6_addr ipv6_daddr ; }; struct nf_bridge_info { atomic_t use ; unsigned char orig_proto ; bool pkt_otherhost ; __u16 frag_max_size ; unsigned int mask ; struct net_device *physindev ; union __anonunion____missing_field_name_291 __annonCompField80 ; union __anonunion____missing_field_name_292 __annonCompField81 ; }; struct sk_buff_head { struct sk_buff *next ; struct sk_buff *prev ; __u32 qlen ; spinlock_t lock ; }; typedef unsigned int sk_buff_data_t; struct __anonstruct____missing_field_name_295 { u32 stamp_us ; u32 stamp_jiffies ; }; union __anonunion____missing_field_name_294 { u64 v64 ; struct __anonstruct____missing_field_name_295 __annonCompField82 ; }; struct skb_mstamp { union __anonunion____missing_field_name_294 __annonCompField83 ; }; union __anonunion____missing_field_name_298 { ktime_t tstamp ; struct skb_mstamp skb_mstamp ; }; struct __anonstruct____missing_field_name_297 { struct sk_buff *next ; struct sk_buff *prev ; union __anonunion____missing_field_name_298 __annonCompField84 ; }; union __anonunion____missing_field_name_296 { struct __anonstruct____missing_field_name_297 __annonCompField85 ; struct rb_node rbnode ; }; struct sec_path; struct __anonstruct____missing_field_name_300 { __u16 csum_start ; __u16 csum_offset ; }; union __anonunion____missing_field_name_299 { __wsum csum ; struct __anonstruct____missing_field_name_300 __annonCompField87 ; }; union __anonunion____missing_field_name_301 { unsigned int napi_id ; unsigned int sender_cpu ; }; union __anonunion____missing_field_name_302 { __u32 mark ; __u32 reserved_tailroom ; }; union __anonunion____missing_field_name_303 { __be16 inner_protocol ; __u8 inner_ipproto ; }; struct sk_buff { union __anonunion____missing_field_name_296 __annonCompField86 ; struct sock *sk ; struct net_device *dev ; char cb[48U] ; unsigned long _skb_refdst ; void (*destructor)(struct sk_buff * ) ; struct sec_path *sp ; struct nf_conntrack *nfct ; struct nf_bridge_info *nf_bridge ; unsigned int len ; unsigned int data_len ; __u16 mac_len ; __u16 hdr_len ; __u16 queue_mapping ; unsigned char cloned : 1 ; unsigned char nohdr : 1 ; unsigned char fclone : 2 ; unsigned char peeked : 1 ; unsigned char head_frag : 1 ; unsigned char xmit_more : 1 ; __u32 headers_start[0U] ; __u8 __pkt_type_offset[0U] ; unsigned char pkt_type : 3 ; unsigned char pfmemalloc : 1 ; unsigned char ignore_df : 1 ; unsigned char nfctinfo : 3 ; unsigned char nf_trace : 1 ; unsigned char ip_summed : 2 ; unsigned char ooo_okay : 1 ; unsigned char l4_hash : 1 ; unsigned char sw_hash : 1 ; unsigned char wifi_acked_valid : 1 ; unsigned char wifi_acked : 1 ; unsigned char no_fcs : 1 ; unsigned char encapsulation : 1 ; unsigned char encap_hdr_csum : 1 ; unsigned char csum_valid : 1 ; unsigned char csum_complete_sw : 1 ; unsigned char csum_level : 2 ; unsigned char csum_bad : 1 ; unsigned char ndisc_nodetype : 2 ; unsigned char ipvs_property : 1 ; unsigned char inner_protocol_type : 1 ; unsigned char remcsum_offload : 1 ; __u16 tc_index ; __u16 tc_verd ; union __anonunion____missing_field_name_299 __annonCompField88 ; __u32 priority ; int skb_iif ; __u32 hash ; __be16 vlan_proto ; __u16 vlan_tci ; union __anonunion____missing_field_name_301 __annonCompField89 ; __u32 secmark ; union __anonunion____missing_field_name_302 __annonCompField90 ; union __anonunion____missing_field_name_303 __annonCompField91 ; __u16 inner_transport_header ; __u16 inner_network_header ; __u16 inner_mac_header ; __be16 protocol ; __u16 transport_header ; __u16 network_header ; __u16 mac_header ; __u32 headers_end[0U] ; sk_buff_data_t tail ; sk_buff_data_t end ; unsigned char *head ; unsigned char *data ; unsigned int truesize ; atomic_t users ; }; struct dst_entry; struct rtable; struct ethtool_cmd { __u32 cmd ; __u32 supported ; __u32 advertising ; __u16 speed ; __u8 duplex ; __u8 port ; __u8 phy_address ; __u8 transceiver ; __u8 autoneg ; __u8 mdio_support ; __u32 maxtxpkt ; __u32 maxrxpkt ; __u16 speed_hi ; __u8 eth_tp_mdix ; __u8 eth_tp_mdix_ctrl ; __u32 lp_advertising ; __u32 reserved[2U] ; }; struct ethtool_drvinfo { __u32 cmd ; char driver[32U] ; char version[32U] ; char fw_version[32U] ; char bus_info[32U] ; char erom_version[32U] ; char reserved2[12U] ; __u32 n_priv_flags ; __u32 n_stats ; __u32 testinfo_len ; __u32 eedump_len ; __u32 regdump_len ; }; struct ethtool_wolinfo { __u32 cmd ; __u32 supported ; __u32 wolopts ; __u8 sopass[6U] ; }; struct ethtool_tunable { __u32 cmd ; __u32 id ; __u32 type_id ; __u32 len ; void *data[0U] ; }; struct ethtool_regs { __u32 cmd ; __u32 version ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eeprom { __u32 cmd ; __u32 magic ; __u32 offset ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eee { __u32 cmd ; __u32 supported ; __u32 advertised ; __u32 lp_advertised ; __u32 eee_active ; __u32 eee_enabled ; __u32 tx_lpi_enabled ; __u32 tx_lpi_timer ; __u32 reserved[2U] ; }; struct ethtool_modinfo { __u32 cmd ; __u32 type ; __u32 eeprom_len ; __u32 reserved[8U] ; }; struct ethtool_coalesce { __u32 cmd ; __u32 rx_coalesce_usecs ; __u32 rx_max_coalesced_frames ; __u32 rx_coalesce_usecs_irq ; __u32 rx_max_coalesced_frames_irq ; __u32 tx_coalesce_usecs ; __u32 tx_max_coalesced_frames ; __u32 tx_coalesce_usecs_irq ; __u32 tx_max_coalesced_frames_irq ; __u32 stats_block_coalesce_usecs ; __u32 use_adaptive_rx_coalesce ; __u32 use_adaptive_tx_coalesce ; __u32 pkt_rate_low ; __u32 rx_coalesce_usecs_low ; __u32 rx_max_coalesced_frames_low ; __u32 tx_coalesce_usecs_low ; __u32 tx_max_coalesced_frames_low ; __u32 pkt_rate_high ; __u32 rx_coalesce_usecs_high ; __u32 rx_max_coalesced_frames_high ; __u32 tx_coalesce_usecs_high ; __u32 tx_max_coalesced_frames_high ; __u32 rate_sample_interval ; }; struct ethtool_ringparam { __u32 cmd ; __u32 rx_max_pending ; __u32 rx_mini_max_pending ; __u32 rx_jumbo_max_pending ; __u32 tx_max_pending ; __u32 rx_pending ; __u32 rx_mini_pending ; __u32 rx_jumbo_pending ; __u32 tx_pending ; }; struct ethtool_channels { __u32 cmd ; __u32 max_rx ; __u32 max_tx ; __u32 max_other ; __u32 max_combined ; __u32 rx_count ; __u32 tx_count ; __u32 other_count ; __u32 combined_count ; }; struct ethtool_pauseparam { __u32 cmd ; __u32 autoneg ; __u32 rx_pause ; __u32 tx_pause ; }; struct ethtool_test { __u32 cmd ; __u32 flags ; __u32 reserved ; __u32 len ; __u64 data[0U] ; }; struct ethtool_stats { __u32 cmd ; __u32 n_stats ; __u64 data[0U] ; }; struct ethtool_tcpip4_spec { __be32 ip4src ; __be32 ip4dst ; __be16 psrc ; __be16 pdst ; __u8 tos ; }; struct ethtool_ah_espip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 spi ; __u8 tos ; }; struct ethtool_usrip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 l4_4_bytes ; __u8 tos ; __u8 ip_ver ; __u8 proto ; }; union ethtool_flow_union { struct ethtool_tcpip4_spec tcp_ip4_spec ; struct ethtool_tcpip4_spec udp_ip4_spec ; struct ethtool_tcpip4_spec sctp_ip4_spec ; struct ethtool_ah_espip4_spec ah_ip4_spec ; struct ethtool_ah_espip4_spec esp_ip4_spec ; struct ethtool_usrip4_spec usr_ip4_spec ; struct ethhdr ether_spec ; __u8 hdata[52U] ; }; struct ethtool_flow_ext { __u8 padding[2U] ; unsigned char h_dest[6U] ; __be16 vlan_etype ; __be16 vlan_tci ; __be32 data[2U] ; }; struct ethtool_rx_flow_spec { __u32 flow_type ; union ethtool_flow_union h_u ; struct ethtool_flow_ext h_ext ; union ethtool_flow_union m_u ; struct ethtool_flow_ext m_ext ; __u64 ring_cookie ; __u32 location ; }; struct ethtool_rxnfc { __u32 cmd ; __u32 flow_type ; __u64 data ; struct ethtool_rx_flow_spec fs ; __u32 rule_cnt ; __u32 rule_locs[0U] ; }; struct ethtool_flash { __u32 cmd ; __u32 region ; char data[128U] ; }; struct ethtool_dump { __u32 cmd ; __u32 version ; __u32 flag ; __u32 len ; __u8 data[0U] ; }; struct ethtool_ts_info { __u32 cmd ; __u32 so_timestamping ; __s32 phc_index ; __u32 tx_types ; __u32 tx_reserved[3U] ; __u32 rx_filters ; __u32 rx_reserved[3U] ; }; enum ethtool_phys_id_state { ETHTOOL_ID_INACTIVE = 0, ETHTOOL_ID_ACTIVE = 1, ETHTOOL_ID_ON = 2, ETHTOOL_ID_OFF = 3 } ; struct ethtool_ops { int (*get_settings)(struct net_device * , struct ethtool_cmd * ) ; int (*set_settings)(struct net_device * , struct ethtool_cmd * ) ; void (*get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) ; int (*get_regs_len)(struct net_device * ) ; void (*get_regs)(struct net_device * , struct ethtool_regs * , void * ) ; void (*get_wol)(struct net_device * , struct ethtool_wolinfo * ) ; int (*set_wol)(struct net_device * , struct ethtool_wolinfo * ) ; u32 (*get_msglevel)(struct net_device * ) ; void (*set_msglevel)(struct net_device * , u32 ) ; int (*nway_reset)(struct net_device * ) ; u32 (*get_link)(struct net_device * ) ; int (*get_eeprom_len)(struct net_device * ) ; int (*get_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; int (*set_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; void (*get_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; int (*set_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; void (*get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; int (*set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; void (*self_test)(struct net_device * , struct ethtool_test * , u64 * ) ; void (*get_strings)(struct net_device * , u32 , u8 * ) ; int (*set_phys_id)(struct net_device * , enum ethtool_phys_id_state ) ; void (*get_ethtool_stats)(struct net_device * , struct ethtool_stats * , u64 * ) ; int (*begin)(struct net_device * ) ; void (*complete)(struct net_device * ) ; u32 (*get_priv_flags)(struct net_device * ) ; int (*set_priv_flags)(struct net_device * , u32 ) ; int (*get_sset_count)(struct net_device * , int ) ; int (*get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , u32 * ) ; int (*set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) ; int (*flash_device)(struct net_device * , struct ethtool_flash * ) ; int (*reset)(struct net_device * , u32 * ) ; u32 (*get_rxfh_key_size)(struct net_device * ) ; u32 (*get_rxfh_indir_size)(struct net_device * ) ; int (*get_rxfh)(struct net_device * , u32 * , u8 * , u8 * ) ; int (*set_rxfh)(struct net_device * , u32 const * , u8 const * , u8 const ) ; void (*get_channels)(struct net_device * , struct ethtool_channels * ) ; int (*set_channels)(struct net_device * , struct ethtool_channels * ) ; int (*get_dump_flag)(struct net_device * , struct ethtool_dump * ) ; int (*get_dump_data)(struct net_device * , struct ethtool_dump * , void * ) ; int (*set_dump)(struct net_device * , struct ethtool_dump * ) ; int (*get_ts_info)(struct net_device * , struct ethtool_ts_info * ) ; int (*get_module_info)(struct net_device * , struct ethtool_modinfo * ) ; int (*get_module_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_eee)(struct net_device * , struct ethtool_eee * ) ; int (*set_eee)(struct net_device * , struct ethtool_eee * ) ; int (*get_tunable)(struct net_device * , struct ethtool_tunable const * , void * ) ; int (*set_tunable)(struct net_device * , struct ethtool_tunable const * , void const * ) ; }; struct prot_inuse; struct netns_core { struct ctl_table_header *sysctl_hdr ; int sysctl_somaxconn ; struct prot_inuse *inuse ; }; struct u64_stats_sync { }; struct ipstats_mib { u64 mibs[36U] ; struct u64_stats_sync syncp ; }; struct icmp_mib { unsigned long mibs[28U] ; }; struct icmpmsg_mib { atomic_long_t mibs[512U] ; }; struct icmpv6_mib { unsigned long mibs[6U] ; }; struct icmpv6msg_mib { atomic_long_t mibs[512U] ; }; struct tcp_mib { unsigned long mibs[16U] ; }; struct udp_mib { unsigned long mibs[9U] ; }; struct linux_mib { unsigned long mibs[115U] ; }; struct linux_xfrm_mib { unsigned long mibs[29U] ; }; struct netns_mib { struct tcp_mib *tcp_statistics ; struct ipstats_mib *ip_statistics ; struct linux_mib *net_statistics ; struct udp_mib *udp_statistics ; struct udp_mib *udplite_statistics ; struct icmp_mib *icmp_statistics ; struct icmpmsg_mib *icmpmsg_statistics ; struct proc_dir_entry *proc_net_devsnmp6 ; struct udp_mib *udp_stats_in6 ; struct udp_mib *udplite_stats_in6 ; struct ipstats_mib *ipv6_statistics ; struct icmpv6_mib *icmpv6_statistics ; struct icmpv6msg_mib *icmpv6msg_statistics ; struct linux_xfrm_mib *xfrm_statistics ; }; struct netns_unix { int sysctl_max_dgram_qlen ; struct ctl_table_header *ctl ; }; struct netns_packet { struct mutex sklist_lock ; struct hlist_head sklist ; }; struct netns_frags { struct percpu_counter mem ; int timeout ; int high_thresh ; int low_thresh ; }; struct ipv4_devconf; struct fib_rules_ops; struct fib_table; struct local_ports { seqlock_t lock ; int range[2U] ; bool warned ; }; struct ping_group_range { seqlock_t lock ; kgid_t range[2U] ; }; struct inet_peer_base; struct xt_table; struct netns_ipv4 { struct ctl_table_header *forw_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *ipv4_hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *xfrm4_hdr ; struct ipv4_devconf *devconf_all ; struct ipv4_devconf *devconf_dflt ; struct fib_rules_ops *rules_ops ; bool fib_has_custom_rules ; struct fib_table *fib_local ; struct fib_table *fib_main ; struct fib_table *fib_default ; int fib_num_tclassid_users ; struct hlist_head *fib_table_hash ; bool fib_offload_disabled ; struct sock *fibnl ; struct sock **icmp_sk ; struct sock *mc_autojoin_sk ; struct inet_peer_base *peers ; struct sock **tcp_sk ; struct netns_frags frags ; struct xt_table *iptable_filter ; struct xt_table *iptable_mangle ; struct xt_table *iptable_raw ; struct xt_table *arptable_filter ; struct xt_table *iptable_security ; struct xt_table *nat_table ; int sysctl_icmp_echo_ignore_all ; int sysctl_icmp_echo_ignore_broadcasts ; int sysctl_icmp_ignore_bogus_error_responses ; int sysctl_icmp_ratelimit ; int sysctl_icmp_ratemask ; int sysctl_icmp_errors_use_inbound_ifaddr ; struct local_ports ip_local_ports ; int sysctl_tcp_ecn ; int sysctl_tcp_ecn_fallback ; int sysctl_ip_no_pmtu_disc ; int sysctl_ip_fwd_use_pmtu ; int sysctl_ip_nonlocal_bind ; int sysctl_fwmark_reflect ; int sysctl_tcp_fwmark_accept ; int sysctl_tcp_mtu_probing ; int sysctl_tcp_base_mss ; int sysctl_tcp_probe_threshold ; u32 sysctl_tcp_probe_interval ; struct ping_group_range ping_group_range ; atomic_t dev_addr_genid ; unsigned long *sysctl_local_reserved_ports ; struct list_head mr_tables ; struct fib_rules_ops *mr_rules_ops ; atomic_t rt_genid ; }; struct neighbour; struct dst_ops { unsigned short family ; unsigned int gc_thresh ; int (*gc)(struct dst_ops * ) ; struct dst_entry *(*check)(struct dst_entry * , __u32 ) ; unsigned int (*default_advmss)(struct dst_entry const * ) ; unsigned int (*mtu)(struct dst_entry const * ) ; u32 *(*cow_metrics)(struct dst_entry * , unsigned long ) ; void (*destroy)(struct dst_entry * ) ; void (*ifdown)(struct dst_entry * , struct net_device * , int ) ; struct dst_entry *(*negative_advice)(struct dst_entry * ) ; void (*link_failure)(struct sk_buff * ) ; void (*update_pmtu)(struct dst_entry * , struct sock * , struct sk_buff * , u32 ) ; void (*redirect)(struct dst_entry * , struct sock * , struct sk_buff * ) ; int (*local_out)(struct sk_buff * ) ; struct neighbour *(*neigh_lookup)(struct dst_entry const * , struct sk_buff * , void const * ) ; struct kmem_cache *kmem_cachep ; struct percpu_counter pcpuc_entries ; }; struct netns_sysctl_ipv6 { struct ctl_table_header *hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *icmp_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *xfrm6_hdr ; int bindv6only ; int flush_delay ; int ip6_rt_max_size ; int ip6_rt_gc_min_interval ; int ip6_rt_gc_timeout ; int ip6_rt_gc_interval ; int ip6_rt_gc_elasticity ; int ip6_rt_mtu_expires ; int ip6_rt_min_advmss ; int flowlabel_consistency ; int auto_flowlabels ; int icmpv6_time ; int anycast_src_echo_reply ; int fwmark_reflect ; int idgen_retries ; int idgen_delay ; int flowlabel_state_ranges ; }; struct ipv6_devconf; struct rt6_info; struct rt6_statistics; struct fib6_table; struct netns_ipv6 { struct netns_sysctl_ipv6 sysctl ; struct ipv6_devconf *devconf_all ; struct ipv6_devconf *devconf_dflt ; struct inet_peer_base *peers ; struct netns_frags frags ; struct xt_table *ip6table_filter ; struct xt_table *ip6table_mangle ; struct xt_table *ip6table_raw ; struct xt_table *ip6table_security ; struct xt_table *ip6table_nat ; struct rt6_info *ip6_null_entry ; struct rt6_statistics *rt6_stats ; struct timer_list ip6_fib_timer ; struct hlist_head *fib_table_hash ; struct fib6_table *fib6_main_tbl ; struct dst_ops ip6_dst_ops ; unsigned int ip6_rt_gc_expire ; unsigned long ip6_rt_last_gc ; struct rt6_info *ip6_prohibit_entry ; struct rt6_info *ip6_blk_hole_entry ; struct fib6_table *fib6_local_tbl ; struct fib_rules_ops *fib6_rules_ops ; struct sock **icmp_sk ; struct sock *ndisc_sk ; struct sock *tcp_sk ; struct sock *igmp_sk ; struct sock *mc_autojoin_sk ; struct list_head mr6_tables ; struct fib_rules_ops *mr6_rules_ops ; atomic_t dev_addr_genid ; atomic_t fib6_sernum ; }; struct netns_nf_frag { struct netns_sysctl_ipv6 sysctl ; struct netns_frags frags ; }; struct netns_sysctl_lowpan { struct ctl_table_header *frags_hdr ; }; struct netns_ieee802154_lowpan { struct netns_sysctl_lowpan sysctl ; struct netns_frags frags ; }; struct sctp_mib; struct netns_sctp { struct sctp_mib *sctp_statistics ; struct proc_dir_entry *proc_net_sctp ; struct ctl_table_header *sysctl_header ; struct sock *ctl_sock ; struct list_head local_addr_list ; struct list_head addr_waitq ; struct timer_list addr_wq_timer ; struct list_head auto_asconf_splist ; spinlock_t addr_wq_lock ; spinlock_t local_addr_lock ; unsigned int rto_initial ; unsigned int rto_min ; unsigned int rto_max ; int rto_alpha ; int rto_beta ; int max_burst ; int cookie_preserve_enable ; char *sctp_hmac_alg ; unsigned int valid_cookie_life ; unsigned int sack_timeout ; unsigned int hb_interval ; int max_retrans_association ; int max_retrans_path ; int max_retrans_init ; int pf_retrans ; int sndbuf_policy ; int rcvbuf_policy ; int default_auto_asconf ; int addip_enable ; int addip_noauth ; int prsctp_enable ; int auth_enable ; int scope_policy ; int rwnd_upd_shift ; unsigned long max_autoclose ; }; struct netns_dccp { struct sock *v4_ctl_sk ; struct sock *v6_ctl_sk ; }; struct nf_logger; struct netns_nf { struct proc_dir_entry *proc_netfilter ; struct nf_logger const *nf_loggers[13U] ; struct ctl_table_header *nf_log_dir_header ; }; struct ebt_table; struct netns_xt { struct list_head tables[13U] ; bool notrack_deprecated_warning ; bool clusterip_deprecated_warning ; struct ebt_table *broute_table ; struct ebt_table *frame_filter ; struct ebt_table *frame_nat ; }; struct nf_proto_net { struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; struct ctl_table_header *ctl_compat_header ; struct ctl_table *ctl_compat_table ; unsigned int users ; }; struct nf_generic_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_tcp_net { struct nf_proto_net pn ; unsigned int timeouts[14U] ; unsigned int tcp_loose ; unsigned int tcp_be_liberal ; unsigned int tcp_max_retrans ; }; struct nf_udp_net { struct nf_proto_net pn ; unsigned int timeouts[2U] ; }; struct nf_icmp_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_ip_net { struct nf_generic_net generic ; struct nf_tcp_net tcp ; struct nf_udp_net udp ; struct nf_icmp_net icmp ; struct nf_icmp_net icmpv6 ; struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; }; struct ct_pcpu { spinlock_t lock ; struct hlist_nulls_head unconfirmed ; struct hlist_nulls_head dying ; struct hlist_nulls_head tmpl ; }; struct ip_conntrack_stat; struct nf_ct_event_notifier; struct nf_exp_event_notifier; struct netns_ct { atomic_t count ; unsigned int expect_count ; struct delayed_work ecache_dwork ; bool ecache_dwork_pending ; struct ctl_table_header *sysctl_header ; struct ctl_table_header *acct_sysctl_header ; struct ctl_table_header *tstamp_sysctl_header ; struct ctl_table_header *event_sysctl_header ; struct ctl_table_header *helper_sysctl_header ; char *slabname ; unsigned int sysctl_log_invalid ; int sysctl_events ; int sysctl_acct ; int sysctl_auto_assign_helper ; bool auto_assign_helper_warned ; int sysctl_tstamp ; int sysctl_checksum ; unsigned int htable_size ; seqcount_t generation ; struct kmem_cache *nf_conntrack_cachep ; struct hlist_nulls_head *hash ; struct hlist_head *expect_hash ; struct ct_pcpu *pcpu_lists ; struct ip_conntrack_stat *stat ; struct nf_ct_event_notifier *nf_conntrack_event_cb ; struct nf_exp_event_notifier *nf_expect_event_cb ; struct nf_ip_net nf_ct_proto ; unsigned int labels_used ; u8 label_words ; struct hlist_head *nat_bysource ; unsigned int nat_htable_size ; }; struct nft_af_info; struct netns_nftables { struct list_head af_info ; struct list_head commit_list ; struct nft_af_info *ipv4 ; struct nft_af_info *ipv6 ; struct nft_af_info *inet ; struct nft_af_info *arp ; struct nft_af_info *bridge ; struct nft_af_info *netdev ; unsigned int base_seq ; u8 gencursor ; }; struct flow_cache_percpu { struct hlist_head *hash_table ; int hash_count ; u32 hash_rnd ; int hash_rnd_recalc ; struct tasklet_struct flush_tasklet ; }; struct flow_cache { u32 hash_shift ; struct flow_cache_percpu *percpu ; struct notifier_block hotcpu_notifier ; int low_watermark ; int high_watermark ; struct timer_list rnd_timer ; }; struct xfrm_policy_hash { struct hlist_head *table ; unsigned int hmask ; u8 dbits4 ; u8 sbits4 ; u8 dbits6 ; u8 sbits6 ; }; struct xfrm_policy_hthresh { struct work_struct work ; seqlock_t lock ; u8 lbits4 ; u8 rbits4 ; u8 lbits6 ; u8 rbits6 ; }; struct netns_xfrm { struct list_head state_all ; struct hlist_head *state_bydst ; struct hlist_head *state_bysrc ; struct hlist_head *state_byspi ; unsigned int state_hmask ; unsigned int state_num ; struct work_struct state_hash_work ; struct hlist_head state_gc_list ; struct work_struct state_gc_work ; struct list_head policy_all ; struct hlist_head *policy_byidx ; unsigned int policy_idx_hmask ; struct hlist_head policy_inexact[3U] ; struct xfrm_policy_hash policy_bydst[3U] ; unsigned int policy_count[6U] ; struct work_struct policy_hash_work ; struct xfrm_policy_hthresh policy_hthresh ; struct sock *nlsk ; struct sock *nlsk_stash ; u32 sysctl_aevent_etime ; u32 sysctl_aevent_rseqth ; int sysctl_larval_drop ; u32 sysctl_acq_expires ; struct ctl_table_header *sysctl_hdr ; struct dst_ops xfrm4_dst_ops ; struct dst_ops xfrm6_dst_ops ; spinlock_t xfrm_state_lock ; rwlock_t xfrm_policy_lock ; struct mutex xfrm_cfg_mutex ; struct flow_cache flow_cache_global ; atomic_t flow_cache_genid ; struct list_head flow_cache_gc_list ; spinlock_t flow_cache_gc_lock ; struct work_struct flow_cache_gc_work ; struct work_struct flow_cache_flush_work ; struct mutex flow_flush_sem ; }; struct mpls_route; struct netns_mpls { size_t platform_labels ; struct mpls_route **platform_label ; struct ctl_table_header *ctl ; }; struct proc_ns_operations; struct ns_common { atomic_long_t stashed ; struct proc_ns_operations const *ops ; unsigned int inum ; }; struct net_generic; struct netns_ipvs; struct net { atomic_t passive ; atomic_t count ; spinlock_t rules_mod_lock ; atomic64_t cookie_gen ; struct list_head list ; struct list_head cleanup_list ; struct list_head exit_list ; struct user_namespace *user_ns ; spinlock_t nsid_lock ; struct idr netns_ids ; struct ns_common ns ; struct proc_dir_entry *proc_net ; struct proc_dir_entry *proc_net_stat ; struct ctl_table_set sysctls ; struct sock *rtnl ; struct sock *genl_sock ; struct list_head dev_base_head ; struct hlist_head *dev_name_head ; struct hlist_head *dev_index_head ; unsigned int dev_base_seq ; int ifindex ; unsigned int dev_unreg_count ; struct list_head rules_ops ; struct net_device *loopback_dev ; struct netns_core core ; struct netns_mib mib ; struct netns_packet packet ; struct netns_unix unx ; struct netns_ipv4 ipv4 ; struct netns_ipv6 ipv6 ; struct netns_ieee802154_lowpan ieee802154_lowpan ; struct netns_sctp sctp ; struct netns_dccp dccp ; struct netns_nf nf ; struct netns_xt xt ; struct netns_ct ct ; struct netns_nftables nft ; struct netns_nf_frag nf_frag ; struct sock *nfnl ; struct sock *nfnl_stash ; struct sk_buff_head wext_nlevents ; struct net_generic *gen ; struct netns_xfrm xfrm ; struct netns_ipvs *ipvs ; struct netns_mpls mpls ; struct sock *diag_nlsk ; atomic_t fnhe_genid ; }; struct __anonstruct_possible_net_t_312 { struct net *net ; }; typedef struct __anonstruct_possible_net_t_312 possible_net_t; typedef unsigned long kernel_ulong_t; struct acpi_device_id { __u8 id[9U] ; kernel_ulong_t driver_data ; }; struct of_device_id { char name[32U] ; char type[32U] ; char compatible[128U] ; void const *data ; }; enum fwnode_type { FWNODE_INVALID = 0, FWNODE_OF = 1, FWNODE_ACPI = 2, FWNODE_PDATA = 3 } ; struct fwnode_handle { enum fwnode_type type ; struct fwnode_handle *secondary ; }; typedef u32 phandle; struct property { char *name ; int length ; void *value ; struct property *next ; unsigned long _flags ; unsigned int unique_id ; struct bin_attribute attr ; }; struct device_node { char const *name ; char const *type ; phandle phandle ; char const *full_name ; struct fwnode_handle fwnode ; struct property *properties ; struct property *deadprops ; struct device_node *parent ; struct device_node *child ; struct device_node *sibling ; struct kobject kobj ; unsigned long _flags ; void *data ; }; enum ldv_28455 { PHY_INTERFACE_MODE_NA = 0, PHY_INTERFACE_MODE_MII = 1, PHY_INTERFACE_MODE_GMII = 2, PHY_INTERFACE_MODE_SGMII = 3, PHY_INTERFACE_MODE_TBI = 4, PHY_INTERFACE_MODE_REVMII = 5, PHY_INTERFACE_MODE_RMII = 6, PHY_INTERFACE_MODE_RGMII = 7, PHY_INTERFACE_MODE_RGMII_ID = 8, PHY_INTERFACE_MODE_RGMII_RXID = 9, PHY_INTERFACE_MODE_RGMII_TXID = 10, PHY_INTERFACE_MODE_RTBI = 11, PHY_INTERFACE_MODE_SMII = 12, PHY_INTERFACE_MODE_XGMII = 13, PHY_INTERFACE_MODE_MOCA = 14, PHY_INTERFACE_MODE_QSGMII = 15, PHY_INTERFACE_MODE_MAX = 16 } ; typedef enum ldv_28455 phy_interface_t; enum ldv_28509 { MDIOBUS_ALLOCATED = 1, MDIOBUS_REGISTERED = 2, MDIOBUS_UNREGISTERED = 3, MDIOBUS_RELEASED = 4 } ; struct phy_device; struct mii_bus { char const *name ; char id[17U] ; void *priv ; int (*read)(struct mii_bus * , int , int ) ; int (*write)(struct mii_bus * , int , int , u16 ) ; int (*reset)(struct mii_bus * ) ; struct mutex mdio_lock ; struct device *parent ; enum ldv_28509 state ; struct device dev ; struct phy_device *phy_map[32U] ; u32 phy_mask ; u32 phy_ignore_ta_mask ; int *irq ; }; enum phy_state { PHY_DOWN = 0, PHY_STARTING = 1, PHY_READY = 2, PHY_PENDING = 3, PHY_UP = 4, PHY_AN = 5, PHY_RUNNING = 6, PHY_NOLINK = 7, PHY_FORCING = 8, PHY_CHANGELINK = 9, PHY_HALTED = 10, PHY_RESUMING = 11 } ; struct phy_c45_device_ids { u32 devices_in_package ; u32 device_ids[8U] ; }; struct phy_driver; struct phy_device { struct phy_driver *drv ; struct mii_bus *bus ; struct device dev ; u32 phy_id ; struct phy_c45_device_ids c45_ids ; bool is_c45 ; bool is_internal ; bool has_fixups ; bool suspended ; enum phy_state state ; u32 dev_flags ; phy_interface_t interface ; int addr ; int speed ; int duplex ; int pause ; int asym_pause ; int link ; u32 interrupts ; u32 supported ; u32 advertising ; u32 lp_advertising ; int autoneg ; int link_timeout ; int irq ; void *priv ; struct work_struct phy_queue ; struct delayed_work state_queue ; atomic_t irq_disable ; struct mutex lock ; struct net_device *attached_dev ; void (*adjust_link)(struct net_device * ) ; }; struct phy_driver { u32 phy_id ; char *name ; unsigned int phy_id_mask ; u32 features ; u32 flags ; void const *driver_data ; int (*soft_reset)(struct phy_device * ) ; int (*config_init)(struct phy_device * ) ; int (*probe)(struct phy_device * ) ; int (*suspend)(struct phy_device * ) ; int (*resume)(struct phy_device * ) ; int (*config_aneg)(struct phy_device * ) ; int (*aneg_done)(struct phy_device * ) ; int (*read_status)(struct phy_device * ) ; int (*ack_interrupt)(struct phy_device * ) ; int (*config_intr)(struct phy_device * ) ; int (*did_interrupt)(struct phy_device * ) ; void (*remove)(struct phy_device * ) ; int (*match_phy_device)(struct phy_device * ) ; int (*ts_info)(struct phy_device * , struct ethtool_ts_info * ) ; int (*hwtstamp)(struct phy_device * , struct ifreq * ) ; bool (*rxtstamp)(struct phy_device * , struct sk_buff * , int ) ; void (*txtstamp)(struct phy_device * , struct sk_buff * , int ) ; int (*set_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*get_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*link_change_notify)(struct phy_device * ) ; int (*read_mmd_indirect)(struct phy_device * , int , int , int ) ; void (*write_mmd_indirect)(struct phy_device * , int , int , int , u32 ) ; int (*module_info)(struct phy_device * , struct ethtool_modinfo * ) ; int (*module_eeprom)(struct phy_device * , struct ethtool_eeprom * , u8 * ) ; struct device_driver driver ; }; struct fixed_phy_status { int link ; int speed ; int duplex ; int pause ; int asym_pause ; }; enum dsa_tag_protocol { DSA_TAG_PROTO_NONE = 0, DSA_TAG_PROTO_DSA = 1, DSA_TAG_PROTO_TRAILER = 2, DSA_TAG_PROTO_EDSA = 3, DSA_TAG_PROTO_BRCM = 4 } ; struct dsa_chip_data { struct device *host_dev ; int sw_addr ; int eeprom_len ; struct device_node *of_node ; char *port_names[12U] ; struct device_node *port_dn[12U] ; s8 *rtable ; }; struct dsa_platform_data { struct device *netdev ; struct net_device *of_netdev ; int nr_chips ; struct dsa_chip_data *chip ; }; struct packet_type; struct dsa_switch; struct dsa_switch_tree { struct dsa_platform_data *pd ; struct net_device *master_netdev ; int (*rcv)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; enum dsa_tag_protocol tag_protocol ; s8 cpu_switch ; s8 cpu_port ; int link_poll_needed ; struct work_struct link_poll_work ; struct timer_list link_poll_timer ; struct dsa_switch *ds[4U] ; }; struct dsa_switch_driver; struct dsa_switch { struct dsa_switch_tree *dst ; int index ; enum dsa_tag_protocol tag_protocol ; struct dsa_chip_data *pd ; struct dsa_switch_driver *drv ; struct device *master_dev ; char hwmon_name[24U] ; struct device *hwmon_dev ; u32 dsa_port_mask ; u32 phys_port_mask ; u32 phys_mii_mask ; struct mii_bus *slave_mii_bus ; struct net_device *ports[12U] ; }; struct dsa_switch_driver { struct list_head list ; enum dsa_tag_protocol tag_protocol ; int priv_size ; char *(*probe)(struct device * , int ) ; int (*setup)(struct dsa_switch * ) ; int (*set_addr)(struct dsa_switch * , u8 * ) ; u32 (*get_phy_flags)(struct dsa_switch * , int ) ; int (*phy_read)(struct dsa_switch * , int , int ) ; int (*phy_write)(struct dsa_switch * , int , int , u16 ) ; void (*poll_link)(struct dsa_switch * ) ; void (*adjust_link)(struct dsa_switch * , int , struct phy_device * ) ; void (*fixed_link_update)(struct dsa_switch * , int , struct fixed_phy_status * ) ; void (*get_strings)(struct dsa_switch * , int , uint8_t * ) ; void (*get_ethtool_stats)(struct dsa_switch * , int , uint64_t * ) ; int (*get_sset_count)(struct dsa_switch * ) ; void (*get_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*set_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*suspend)(struct dsa_switch * ) ; int (*resume)(struct dsa_switch * ) ; int (*port_enable)(struct dsa_switch * , int , struct phy_device * ) ; void (*port_disable)(struct dsa_switch * , int , struct phy_device * ) ; int (*set_eee)(struct dsa_switch * , int , struct phy_device * , struct ethtool_eee * ) ; int (*get_eee)(struct dsa_switch * , int , struct ethtool_eee * ) ; int (*get_temp)(struct dsa_switch * , int * ) ; int (*get_temp_limit)(struct dsa_switch * , int * ) ; int (*set_temp_limit)(struct dsa_switch * , int ) ; int (*get_temp_alarm)(struct dsa_switch * , bool * ) ; int (*get_eeprom_len)(struct dsa_switch * ) ; int (*get_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*get_regs_len)(struct dsa_switch * , int ) ; void (*get_regs)(struct dsa_switch * , int , struct ethtool_regs * , void * ) ; int (*port_join_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_leave_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_stp_update)(struct dsa_switch * , int , u8 ) ; int (*fdb_add)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_del)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_getnext)(struct dsa_switch * , int , unsigned char * , bool * ) ; }; struct ieee_ets { __u8 willing ; __u8 ets_cap ; __u8 cbs ; __u8 tc_tx_bw[8U] ; __u8 tc_rx_bw[8U] ; __u8 tc_tsa[8U] ; __u8 prio_tc[8U] ; __u8 tc_reco_bw[8U] ; __u8 tc_reco_tsa[8U] ; __u8 reco_prio_tc[8U] ; }; struct ieee_maxrate { __u64 tc_maxrate[8U] ; }; struct ieee_qcn { __u8 rpg_enable[8U] ; __u32 rppp_max_rps[8U] ; __u32 rpg_time_reset[8U] ; __u32 rpg_byte_reset[8U] ; __u32 rpg_threshold[8U] ; __u32 rpg_max_rate[8U] ; __u32 rpg_ai_rate[8U] ; __u32 rpg_hai_rate[8U] ; __u32 rpg_gd[8U] ; __u32 rpg_min_dec_fac[8U] ; __u32 rpg_min_rate[8U] ; __u32 cndd_state_machine[8U] ; }; struct ieee_qcn_stats { __u64 rppp_rp_centiseconds[8U] ; __u32 rppp_created_rps[8U] ; }; struct ieee_pfc { __u8 pfc_cap ; __u8 pfc_en ; __u8 mbc ; __u16 delay ; __u64 requests[8U] ; __u64 indications[8U] ; }; struct cee_pg { __u8 willing ; __u8 error ; __u8 pg_en ; __u8 tcs_supported ; __u8 pg_bw[8U] ; __u8 prio_pg[8U] ; }; struct cee_pfc { __u8 willing ; __u8 error ; __u8 pfc_en ; __u8 tcs_supported ; }; struct dcb_app { __u8 selector ; __u8 priority ; __u16 protocol ; }; struct dcb_peer_app_info { __u8 willing ; __u8 error ; }; struct dcbnl_rtnl_ops { int (*ieee_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_setets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_getmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_setmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_getqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_setqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_getqcnstats)(struct net_device * , struct ieee_qcn_stats * ) ; int (*ieee_getpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_setpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_getapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_setapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_delapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_peer_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_peer_getpfc)(struct net_device * , struct ieee_pfc * ) ; u8 (*getstate)(struct net_device * ) ; u8 (*setstate)(struct net_device * , u8 ) ; void (*getpermhwaddr)(struct net_device * , u8 * ) ; void (*setpgtccfgtx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgtx)(struct net_device * , int , u8 ) ; void (*setpgtccfgrx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgrx)(struct net_device * , int , u8 ) ; void (*getpgtccfgtx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgtx)(struct net_device * , int , u8 * ) ; void (*getpgtccfgrx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgrx)(struct net_device * , int , u8 * ) ; void (*setpfccfg)(struct net_device * , int , u8 ) ; void (*getpfccfg)(struct net_device * , int , u8 * ) ; u8 (*setall)(struct net_device * ) ; u8 (*getcap)(struct net_device * , int , u8 * ) ; int (*getnumtcs)(struct net_device * , int , u8 * ) ; int (*setnumtcs)(struct net_device * , int , u8 ) ; u8 (*getpfcstate)(struct net_device * ) ; void (*setpfcstate)(struct net_device * , u8 ) ; void (*getbcncfg)(struct net_device * , int , u32 * ) ; void (*setbcncfg)(struct net_device * , int , u32 ) ; void (*getbcnrp)(struct net_device * , int , u8 * ) ; void (*setbcnrp)(struct net_device * , int , u8 ) ; int (*setapp)(struct net_device * , u8 , u16 , u8 ) ; int (*getapp)(struct net_device * , u8 , u16 ) ; u8 (*getfeatcfg)(struct net_device * , int , u8 * ) ; u8 (*setfeatcfg)(struct net_device * , int , u8 ) ; u8 (*getdcbx)(struct net_device * ) ; u8 (*setdcbx)(struct net_device * , u8 ) ; int (*peer_getappinfo)(struct net_device * , struct dcb_peer_app_info * , u16 * ) ; int (*peer_getapptable)(struct net_device * , struct dcb_app * ) ; int (*cee_peer_getpg)(struct net_device * , struct cee_pg * ) ; int (*cee_peer_getpfc)(struct net_device * , struct cee_pfc * ) ; }; struct netprio_map { struct callback_head rcu ; u32 priomap_len ; u32 priomap[] ; }; struct xfrm_policy; struct xfrm_state; struct mnt_namespace; struct ipc_namespace; struct nsproxy { atomic_t count ; struct uts_namespace *uts_ns ; struct ipc_namespace *ipc_ns ; struct mnt_namespace *mnt_ns ; struct pid_namespace *pid_ns_for_children ; struct net *net_ns ; }; struct nlmsghdr { __u32 nlmsg_len ; __u16 nlmsg_type ; __u16 nlmsg_flags ; __u32 nlmsg_seq ; __u32 nlmsg_pid ; }; struct nlattr { __u16 nla_len ; __u16 nla_type ; }; struct netlink_callback { struct sk_buff *skb ; struct nlmsghdr const *nlh ; int (*dump)(struct sk_buff * , struct netlink_callback * ) ; int (*done)(struct netlink_callback * ) ; void *data ; struct module *module ; u16 family ; u16 min_dump_alloc ; unsigned int prev_seq ; unsigned int seq ; long args[6U] ; }; struct ndmsg { __u8 ndm_family ; __u8 ndm_pad1 ; __u16 ndm_pad2 ; __s32 ndm_ifindex ; __u16 ndm_state ; __u8 ndm_flags ; __u8 ndm_type ; }; struct rtnl_link_stats64 { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 rx_errors ; __u64 tx_errors ; __u64 rx_dropped ; __u64 tx_dropped ; __u64 multicast ; __u64 collisions ; __u64 rx_length_errors ; __u64 rx_over_errors ; __u64 rx_crc_errors ; __u64 rx_frame_errors ; __u64 rx_fifo_errors ; __u64 rx_missed_errors ; __u64 tx_aborted_errors ; __u64 tx_carrier_errors ; __u64 tx_fifo_errors ; __u64 tx_heartbeat_errors ; __u64 tx_window_errors ; __u64 rx_compressed ; __u64 tx_compressed ; }; struct ifla_vf_stats { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 broadcast ; __u64 multicast ; }; struct ifla_vf_info { __u32 vf ; __u8 mac[32U] ; __u32 vlan ; __u32 qos ; __u32 spoofchk ; __u32 linkstate ; __u32 min_tx_rate ; __u32 max_tx_rate ; __u32 rss_query_en ; }; struct netpoll_info; struct wireless_dev; struct wpan_dev; struct mpls_dev; enum netdev_tx { __NETDEV_TX_MIN = (-0x7FFFFFFF-1), NETDEV_TX_OK = 0, NETDEV_TX_BUSY = 16, NETDEV_TX_LOCKED = 32 } ; typedef enum netdev_tx netdev_tx_t; struct net_device_stats { unsigned long rx_packets ; unsigned long tx_packets ; unsigned long rx_bytes ; unsigned long tx_bytes ; unsigned long rx_errors ; unsigned long tx_errors ; unsigned long rx_dropped ; unsigned long tx_dropped ; unsigned long multicast ; unsigned long collisions ; unsigned long rx_length_errors ; unsigned long rx_over_errors ; unsigned long rx_crc_errors ; unsigned long rx_frame_errors ; unsigned long rx_fifo_errors ; unsigned long rx_missed_errors ; unsigned long tx_aborted_errors ; unsigned long tx_carrier_errors ; unsigned long tx_fifo_errors ; unsigned long tx_heartbeat_errors ; unsigned long tx_window_errors ; unsigned long rx_compressed ; unsigned long tx_compressed ; }; struct neigh_parms; struct netdev_hw_addr_list { struct list_head list ; int count ; }; struct hh_cache { u16 hh_len ; u16 __pad ; seqlock_t hh_lock ; unsigned long hh_data[16U] ; }; struct header_ops { int (*create)(struct sk_buff * , struct net_device * , unsigned short , void const * , void const * , unsigned int ) ; int (*parse)(struct sk_buff const * , unsigned char * ) ; int (*cache)(struct neighbour const * , struct hh_cache * , __be16 ) ; void (*cache_update)(struct hh_cache * , struct net_device const * , unsigned char const * ) ; }; struct napi_struct { struct list_head poll_list ; unsigned long state ; int weight ; unsigned int gro_count ; int (*poll)(struct napi_struct * , int ) ; spinlock_t poll_lock ; int poll_owner ; struct net_device *dev ; struct sk_buff *gro_list ; struct sk_buff *skb ; struct hrtimer timer ; struct list_head dev_list ; struct hlist_node napi_hash_node ; unsigned int napi_id ; }; enum rx_handler_result { RX_HANDLER_CONSUMED = 0, RX_HANDLER_ANOTHER = 1, RX_HANDLER_EXACT = 2, RX_HANDLER_PASS = 3 } ; typedef enum rx_handler_result rx_handler_result_t; typedef rx_handler_result_t rx_handler_func_t(struct sk_buff ** ); struct Qdisc; struct netdev_queue { struct net_device *dev ; struct Qdisc *qdisc ; struct Qdisc *qdisc_sleeping ; struct kobject kobj ; int numa_node ; spinlock_t _xmit_lock ; int xmit_lock_owner ; unsigned long trans_start ; unsigned long trans_timeout ; unsigned long state ; struct dql dql ; unsigned long tx_maxrate ; }; struct rps_map { unsigned int len ; struct callback_head rcu ; u16 cpus[0U] ; }; struct rps_dev_flow { u16 cpu ; u16 filter ; unsigned int last_qtail ; }; struct rps_dev_flow_table { unsigned int mask ; struct callback_head rcu ; struct rps_dev_flow flows[0U] ; }; struct netdev_rx_queue { struct rps_map *rps_map ; struct rps_dev_flow_table *rps_flow_table ; struct kobject kobj ; struct net_device *dev ; }; struct xps_map { unsigned int len ; unsigned int alloc_len ; struct callback_head rcu ; u16 queues[0U] ; }; struct xps_dev_maps { struct callback_head rcu ; struct xps_map *cpu_map[0U] ; }; struct netdev_tc_txq { u16 count ; u16 offset ; }; struct netdev_fcoe_hbainfo { char manufacturer[64U] ; char serial_number[64U] ; char hardware_version[64U] ; char driver_version[64U] ; char optionrom_version[64U] ; char firmware_version[64U] ; char model[256U] ; char model_description[256U] ; }; struct netdev_phys_item_id { unsigned char id[32U] ; unsigned char id_len ; }; struct net_device_ops { int (*ndo_init)(struct net_device * ) ; void (*ndo_uninit)(struct net_device * ) ; int (*ndo_open)(struct net_device * ) ; int (*ndo_stop)(struct net_device * ) ; netdev_tx_t (*ndo_start_xmit)(struct sk_buff * , struct net_device * ) ; u16 (*ndo_select_queue)(struct net_device * , struct sk_buff * , void * , u16 (*)(struct net_device * , struct sk_buff * ) ) ; void (*ndo_change_rx_flags)(struct net_device * , int ) ; void (*ndo_set_rx_mode)(struct net_device * ) ; int (*ndo_set_mac_address)(struct net_device * , void * ) ; int (*ndo_validate_addr)(struct net_device * ) ; int (*ndo_do_ioctl)(struct net_device * , struct ifreq * , int ) ; int (*ndo_set_config)(struct net_device * , struct ifmap * ) ; int (*ndo_change_mtu)(struct net_device * , int ) ; int (*ndo_neigh_setup)(struct net_device * , struct neigh_parms * ) ; void (*ndo_tx_timeout)(struct net_device * ) ; struct rtnl_link_stats64 *(*ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) ; struct net_device_stats *(*ndo_get_stats)(struct net_device * ) ; int (*ndo_vlan_rx_add_vid)(struct net_device * , __be16 , u16 ) ; int (*ndo_vlan_rx_kill_vid)(struct net_device * , __be16 , u16 ) ; void (*ndo_poll_controller)(struct net_device * ) ; int (*ndo_netpoll_setup)(struct net_device * , struct netpoll_info * ) ; void (*ndo_netpoll_cleanup)(struct net_device * ) ; int (*ndo_busy_poll)(struct napi_struct * ) ; int (*ndo_set_vf_mac)(struct net_device * , int , u8 * ) ; int (*ndo_set_vf_vlan)(struct net_device * , int , u16 , u8 ) ; int (*ndo_set_vf_rate)(struct net_device * , int , int , int ) ; int (*ndo_set_vf_spoofchk)(struct net_device * , int , bool ) ; int (*ndo_get_vf_config)(struct net_device * , int , struct ifla_vf_info * ) ; int (*ndo_set_vf_link_state)(struct net_device * , int , int ) ; int (*ndo_get_vf_stats)(struct net_device * , int , struct ifla_vf_stats * ) ; int (*ndo_set_vf_port)(struct net_device * , int , struct nlattr ** ) ; int (*ndo_get_vf_port)(struct net_device * , int , struct sk_buff * ) ; int (*ndo_set_vf_rss_query_en)(struct net_device * , int , bool ) ; int (*ndo_setup_tc)(struct net_device * , u8 ) ; int (*ndo_fcoe_enable)(struct net_device * ) ; int (*ndo_fcoe_disable)(struct net_device * ) ; int (*ndo_fcoe_ddp_setup)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_ddp_done)(struct net_device * , u16 ) ; int (*ndo_fcoe_ddp_target)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_get_hbainfo)(struct net_device * , struct netdev_fcoe_hbainfo * ) ; int (*ndo_fcoe_get_wwn)(struct net_device * , u64 * , int ) ; int (*ndo_rx_flow_steer)(struct net_device * , struct sk_buff const * , u16 , u32 ) ; int (*ndo_add_slave)(struct net_device * , struct net_device * ) ; int (*ndo_del_slave)(struct net_device * , struct net_device * ) ; netdev_features_t (*ndo_fix_features)(struct net_device * , netdev_features_t ) ; int (*ndo_set_features)(struct net_device * , netdev_features_t ) ; int (*ndo_neigh_construct)(struct neighbour * ) ; void (*ndo_neigh_destroy)(struct neighbour * ) ; int (*ndo_fdb_add)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 , u16 ) ; int (*ndo_fdb_del)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 ) ; int (*ndo_fdb_dump)(struct sk_buff * , struct netlink_callback * , struct net_device * , struct net_device * , int ) ; int (*ndo_bridge_setlink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_bridge_getlink)(struct sk_buff * , u32 , u32 , struct net_device * , u32 , int ) ; int (*ndo_bridge_dellink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_change_carrier)(struct net_device * , bool ) ; int (*ndo_get_phys_port_id)(struct net_device * , struct netdev_phys_item_id * ) ; int (*ndo_get_phys_port_name)(struct net_device * , char * , size_t ) ; void (*ndo_add_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void (*ndo_del_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void *(*ndo_dfwd_add_station)(struct net_device * , struct net_device * ) ; void (*ndo_dfwd_del_station)(struct net_device * , void * ) ; netdev_tx_t (*ndo_dfwd_start_xmit)(struct sk_buff * , struct net_device * , void * ) ; int (*ndo_get_lock_subclass)(struct net_device * ) ; netdev_features_t (*ndo_features_check)(struct sk_buff * , struct net_device * , netdev_features_t ) ; int (*ndo_set_tx_maxrate)(struct net_device * , int , u32 ) ; int (*ndo_get_iflink)(struct net_device const * ) ; }; struct __anonstruct_adj_list_319 { struct list_head upper ; struct list_head lower ; }; struct __anonstruct_all_adj_list_320 { struct list_head upper ; struct list_head lower ; }; struct iw_handler_def; struct iw_public_data; struct switchdev_ops; struct vlan_info; struct tipc_bearer; struct in_device; struct dn_dev; struct inet6_dev; struct tcf_proto; struct cpu_rmap; struct pcpu_lstats; struct pcpu_sw_netstats; struct pcpu_dstats; struct pcpu_vstats; union __anonunion____missing_field_name_321 { void *ml_priv ; struct pcpu_lstats *lstats ; struct pcpu_sw_netstats *tstats ; struct pcpu_dstats *dstats ; struct pcpu_vstats *vstats ; }; struct garp_port; struct mrp_port; struct rtnl_link_ops; struct net_device { char name[16U] ; struct hlist_node name_hlist ; char *ifalias ; unsigned long mem_end ; unsigned long mem_start ; unsigned long base_addr ; int irq ; atomic_t carrier_changes ; unsigned long state ; struct list_head dev_list ; struct list_head napi_list ; struct list_head unreg_list ; struct list_head close_list ; struct list_head ptype_all ; struct list_head ptype_specific ; struct __anonstruct_adj_list_319 adj_list ; struct __anonstruct_all_adj_list_320 all_adj_list ; netdev_features_t features ; netdev_features_t hw_features ; netdev_features_t wanted_features ; netdev_features_t vlan_features ; netdev_features_t hw_enc_features ; netdev_features_t mpls_features ; int ifindex ; int group ; struct net_device_stats stats ; atomic_long_t rx_dropped ; atomic_long_t tx_dropped ; struct iw_handler_def const *wireless_handlers ; struct iw_public_data *wireless_data ; struct net_device_ops const *netdev_ops ; struct ethtool_ops const *ethtool_ops ; struct switchdev_ops const *switchdev_ops ; struct header_ops const *header_ops ; unsigned int flags ; unsigned int priv_flags ; unsigned short gflags ; unsigned short padded ; unsigned char operstate ; unsigned char link_mode ; unsigned char if_port ; unsigned char dma ; unsigned int mtu ; unsigned short type ; unsigned short hard_header_len ; unsigned short needed_headroom ; unsigned short needed_tailroom ; unsigned char perm_addr[32U] ; unsigned char addr_assign_type ; unsigned char addr_len ; unsigned short neigh_priv_len ; unsigned short dev_id ; unsigned short dev_port ; spinlock_t addr_list_lock ; unsigned char name_assign_type ; bool uc_promisc ; struct netdev_hw_addr_list uc ; struct netdev_hw_addr_list mc ; struct netdev_hw_addr_list dev_addrs ; struct kset *queues_kset ; unsigned int promiscuity ; unsigned int allmulti ; struct vlan_info *vlan_info ; struct dsa_switch_tree *dsa_ptr ; struct tipc_bearer *tipc_ptr ; void *atalk_ptr ; struct in_device *ip_ptr ; struct dn_dev *dn_ptr ; struct inet6_dev *ip6_ptr ; void *ax25_ptr ; struct wireless_dev *ieee80211_ptr ; struct wpan_dev *ieee802154_ptr ; struct mpls_dev *mpls_ptr ; unsigned long last_rx ; unsigned char *dev_addr ; struct netdev_rx_queue *_rx ; unsigned int num_rx_queues ; unsigned int real_num_rx_queues ; unsigned long gro_flush_timeout ; rx_handler_func_t *rx_handler ; void *rx_handler_data ; struct tcf_proto *ingress_cl_list ; struct netdev_queue *ingress_queue ; struct list_head nf_hooks_ingress ; unsigned char broadcast[32U] ; struct cpu_rmap *rx_cpu_rmap ; struct hlist_node index_hlist ; struct netdev_queue *_tx ; unsigned int num_tx_queues ; unsigned int real_num_tx_queues ; struct Qdisc *qdisc ; unsigned long tx_queue_len ; spinlock_t tx_global_lock ; int watchdog_timeo ; struct xps_dev_maps *xps_maps ; unsigned long trans_start ; struct timer_list watchdog_timer ; int *pcpu_refcnt ; struct list_head todo_list ; struct list_head link_watch_list ; unsigned char reg_state ; bool dismantle ; unsigned short rtnl_link_state ; void (*destructor)(struct net_device * ) ; struct netpoll_info *npinfo ; possible_net_t nd_net ; union __anonunion____missing_field_name_321 __annonCompField94 ; struct garp_port *garp_port ; struct mrp_port *mrp_port ; struct device dev ; struct attribute_group const *sysfs_groups[4U] ; struct attribute_group const *sysfs_rx_queue_group ; struct rtnl_link_ops const *rtnl_link_ops ; unsigned int gso_max_size ; u16 gso_max_segs ; u16 gso_min_segs ; struct dcbnl_rtnl_ops const *dcbnl_ops ; u8 num_tc ; struct netdev_tc_txq tc_to_txq[16U] ; u8 prio_tc_map[16U] ; unsigned int fcoe_ddp_xid ; struct netprio_map *priomap ; struct phy_device *phydev ; struct lock_class_key *qdisc_tx_busylock ; }; struct packet_type { __be16 type ; struct net_device *dev ; int (*func)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; bool (*id_match)(struct packet_type * , struct sock * ) ; void *af_packet_priv ; struct list_head list ; }; struct pcpu_sw_netstats { u64 rx_packets ; u64 rx_bytes ; u64 tx_packets ; u64 tx_bytes ; struct u64_stats_sync syncp ; }; struct page_counter { atomic_long_t count ; unsigned long limit ; struct page_counter *parent ; unsigned long watermark ; unsigned long failcnt ; }; struct sock_filter { __u16 code ; __u8 jt ; __u8 jf ; __u32 k ; }; struct bpf_insn { __u8 code ; unsigned char dst_reg : 4 ; unsigned char src_reg : 4 ; __s16 off ; __s32 imm ; }; enum bpf_prog_type { BPF_PROG_TYPE_UNSPEC = 0, BPF_PROG_TYPE_SOCKET_FILTER = 1, BPF_PROG_TYPE_KPROBE = 2, BPF_PROG_TYPE_SCHED_CLS = 3, BPF_PROG_TYPE_SCHED_ACT = 4 } ; struct bpf_prog_aux; struct sock_fprog_kern { u16 len ; struct sock_filter *filter ; }; union __anonunion____missing_field_name_330 { struct sock_filter insns[0U] ; struct bpf_insn insnsi[0U] ; }; struct bpf_prog { u16 pages ; bool jited ; bool gpl_compatible ; u32 len ; enum bpf_prog_type type ; struct bpf_prog_aux *aux ; struct sock_fprog_kern *orig_prog ; unsigned int (*bpf_func)(struct sk_buff const * , struct bpf_insn const * ) ; union __anonunion____missing_field_name_330 __annonCompField99 ; }; struct sk_filter { atomic_t refcnt ; struct callback_head rcu ; struct bpf_prog *prog ; }; struct pollfd { int fd ; short events ; short revents ; }; struct poll_table_struct { void (*_qproc)(struct file * , wait_queue_head_t * , struct poll_table_struct * ) ; unsigned long _key ; }; struct nla_policy { u16 type ; u16 len ; }; struct rtnl_link_ops { struct list_head list ; char const *kind ; size_t priv_size ; void (*setup)(struct net_device * ) ; int maxtype ; struct nla_policy const *policy ; int (*validate)(struct nlattr ** , struct nlattr ** ) ; int (*newlink)(struct net * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; int (*changelink)(struct net_device * , struct nlattr ** , struct nlattr ** ) ; void (*dellink)(struct net_device * , struct list_head * ) ; size_t (*get_size)(struct net_device const * ) ; int (*fill_info)(struct sk_buff * , struct net_device const * ) ; size_t (*get_xstats_size)(struct net_device const * ) ; int (*fill_xstats)(struct sk_buff * , struct net_device const * ) ; unsigned int (*get_num_tx_queues)(void) ; unsigned int (*get_num_rx_queues)(void) ; int slave_maxtype ; struct nla_policy const *slave_policy ; int (*slave_validate)(struct nlattr ** , struct nlattr ** ) ; int (*slave_changelink)(struct net_device * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; size_t (*get_slave_size)(struct net_device const * , struct net_device const * ) ; int (*fill_slave_info)(struct sk_buff * , struct net_device const * , struct net_device const * ) ; struct net *(*get_link_net)(struct net_device const * ) ; }; struct neigh_table; struct neigh_parms { possible_net_t net ; struct net_device *dev ; struct list_head list ; int (*neigh_setup)(struct neighbour * ) ; void (*neigh_cleanup)(struct neighbour * ) ; struct neigh_table *tbl ; void *sysctl_table ; int dead ; atomic_t refcnt ; struct callback_head callback_head ; int reachable_time ; int data[13U] ; unsigned long data_state[1U] ; }; struct neigh_statistics { unsigned long allocs ; unsigned long destroys ; unsigned long hash_grows ; unsigned long res_failed ; unsigned long lookups ; unsigned long hits ; unsigned long rcv_probes_mcast ; unsigned long rcv_probes_ucast ; unsigned long periodic_gc_runs ; unsigned long forced_gc_runs ; unsigned long unres_discards ; }; struct neigh_ops; struct neighbour { struct neighbour *next ; struct neigh_table *tbl ; struct neigh_parms *parms ; unsigned long confirmed ; unsigned long updated ; rwlock_t lock ; atomic_t refcnt ; struct sk_buff_head arp_queue ; unsigned int arp_queue_len_bytes ; struct timer_list timer ; unsigned long used ; atomic_t probes ; __u8 flags ; __u8 nud_state ; __u8 type ; __u8 dead ; seqlock_t ha_lock ; unsigned char ha[32U] ; struct hh_cache hh ; int (*output)(struct neighbour * , struct sk_buff * ) ; struct neigh_ops const *ops ; struct callback_head rcu ; struct net_device *dev ; u8 primary_key[0U] ; }; struct neigh_ops { int family ; void (*solicit)(struct neighbour * , struct sk_buff * ) ; void (*error_report)(struct neighbour * , struct sk_buff * ) ; int (*output)(struct neighbour * , struct sk_buff * ) ; int (*connected_output)(struct neighbour * , struct sk_buff * ) ; }; struct pneigh_entry { struct pneigh_entry *next ; possible_net_t net ; struct net_device *dev ; u8 flags ; u8 key[0U] ; }; struct neigh_hash_table { struct neighbour **hash_buckets ; unsigned int hash_shift ; __u32 hash_rnd[4U] ; struct callback_head rcu ; }; struct neigh_table { int family ; int entry_size ; int key_len ; __be16 protocol ; __u32 (*hash)(void const * , struct net_device const * , __u32 * ) ; bool (*key_eq)(struct neighbour const * , void const * ) ; int (*constructor)(struct neighbour * ) ; int (*pconstructor)(struct pneigh_entry * ) ; void (*pdestructor)(struct pneigh_entry * ) ; void (*proxy_redo)(struct sk_buff * ) ; char *id ; struct neigh_parms parms ; struct list_head parms_list ; int gc_interval ; int gc_thresh1 ; int gc_thresh2 ; int gc_thresh3 ; unsigned long last_flush ; struct delayed_work gc_work ; struct timer_list proxy_timer ; struct sk_buff_head proxy_queue ; atomic_t entries ; rwlock_t lock ; unsigned long last_rand ; struct neigh_statistics *stats ; struct neigh_hash_table *nht ; struct pneigh_entry **phash_buckets ; }; struct dn_route; union __anonunion____missing_field_name_341 { struct dst_entry *next ; struct rtable *rt_next ; struct rt6_info *rt6_next ; struct dn_route *dn_next ; }; struct dst_entry { struct callback_head callback_head ; struct dst_entry *child ; struct net_device *dev ; struct dst_ops *ops ; unsigned long _metrics ; unsigned long expires ; struct dst_entry *path ; struct dst_entry *from ; struct xfrm_state *xfrm ; int (*input)(struct sk_buff * ) ; int (*output)(struct sock * , struct sk_buff * ) ; unsigned short flags ; unsigned short pending_confirm ; short error ; short obsolete ; unsigned short header_len ; unsigned short trailer_len ; __u32 tclassid ; long __pad_to_align_refcnt[2U] ; atomic_t __refcnt ; int __use ; unsigned long lastuse ; union __anonunion____missing_field_name_341 __annonCompField100 ; }; struct __anonstruct_socket_lock_t_342 { spinlock_t slock ; int owned ; wait_queue_head_t wq ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_socket_lock_t_342 socket_lock_t; struct proto; typedef __u32 __portpair; typedef __u64 __addrpair; struct __anonstruct____missing_field_name_344 { __be32 skc_daddr ; __be32 skc_rcv_saddr ; }; union __anonunion____missing_field_name_343 { __addrpair skc_addrpair ; struct __anonstruct____missing_field_name_344 __annonCompField101 ; }; union __anonunion____missing_field_name_345 { unsigned int skc_hash ; __u16 skc_u16hashes[2U] ; }; struct __anonstruct____missing_field_name_347 { __be16 skc_dport ; __u16 skc_num ; }; union __anonunion____missing_field_name_346 { __portpair skc_portpair ; struct __anonstruct____missing_field_name_347 __annonCompField104 ; }; union __anonunion____missing_field_name_348 { struct hlist_node skc_bind_node ; struct hlist_nulls_node skc_portaddr_node ; }; union __anonunion____missing_field_name_349 { struct hlist_node skc_node ; struct hlist_nulls_node skc_nulls_node ; }; struct sock_common { union __anonunion____missing_field_name_343 __annonCompField102 ; union __anonunion____missing_field_name_345 __annonCompField103 ; union __anonunion____missing_field_name_346 __annonCompField105 ; unsigned short skc_family ; unsigned char volatile skc_state ; unsigned char skc_reuse : 4 ; unsigned char skc_reuseport : 1 ; unsigned char skc_ipv6only : 1 ; unsigned char skc_net_refcnt : 1 ; int skc_bound_dev_if ; union __anonunion____missing_field_name_348 __annonCompField106 ; struct proto *skc_prot ; possible_net_t skc_net ; struct in6_addr skc_v6_daddr ; struct in6_addr skc_v6_rcv_saddr ; atomic64_t skc_cookie ; int skc_dontcopy_begin[0U] ; union __anonunion____missing_field_name_349 __annonCompField107 ; int skc_tx_queue_mapping ; atomic_t skc_refcnt ; int skc_dontcopy_end[0U] ; }; struct cg_proto; struct __anonstruct_sk_backlog_350 { atomic_t rmem_alloc ; int len ; struct sk_buff *head ; struct sk_buff *tail ; }; struct sock { struct sock_common __sk_common ; socket_lock_t sk_lock ; struct sk_buff_head sk_receive_queue ; struct __anonstruct_sk_backlog_350 sk_backlog ; int sk_forward_alloc ; __u32 sk_rxhash ; u16 sk_incoming_cpu ; __u32 sk_txhash ; unsigned int sk_napi_id ; unsigned int sk_ll_usec ; atomic_t sk_drops ; int sk_rcvbuf ; struct sk_filter *sk_filter ; struct socket_wq *sk_wq ; struct xfrm_policy *sk_policy[2U] ; unsigned long sk_flags ; struct dst_entry *sk_rx_dst ; struct dst_entry *sk_dst_cache ; spinlock_t sk_dst_lock ; atomic_t sk_wmem_alloc ; atomic_t sk_omem_alloc ; int sk_sndbuf ; struct sk_buff_head sk_write_queue ; unsigned char sk_shutdown : 2 ; unsigned char sk_no_check_tx : 1 ; unsigned char sk_no_check_rx : 1 ; unsigned char sk_userlocks : 4 ; unsigned char sk_protocol ; unsigned short sk_type ; int sk_wmem_queued ; gfp_t sk_allocation ; u32 sk_pacing_rate ; u32 sk_max_pacing_rate ; netdev_features_t sk_route_caps ; netdev_features_t sk_route_nocaps ; int sk_gso_type ; unsigned int sk_gso_max_size ; u16 sk_gso_max_segs ; int sk_rcvlowat ; unsigned long sk_lingertime ; struct sk_buff_head sk_error_queue ; struct proto *sk_prot_creator ; rwlock_t sk_callback_lock ; int sk_err ; int sk_err_soft ; u32 sk_ack_backlog ; u32 sk_max_ack_backlog ; __u32 sk_priority ; __u32 sk_cgrp_prioidx ; struct pid *sk_peer_pid ; struct cred const *sk_peer_cred ; long sk_rcvtimeo ; long sk_sndtimeo ; struct timer_list sk_timer ; ktime_t sk_stamp ; u16 sk_tsflags ; u32 sk_tskey ; struct socket *sk_socket ; void *sk_user_data ; struct page_frag sk_frag ; struct sk_buff *sk_send_head ; __s32 sk_peek_off ; int sk_write_pending ; void *sk_security ; __u32 sk_mark ; u32 sk_classid ; struct cg_proto *sk_cgrp ; void (*sk_state_change)(struct sock * ) ; void (*sk_data_ready)(struct sock * ) ; void (*sk_write_space)(struct sock * ) ; void (*sk_error_report)(struct sock * ) ; int (*sk_backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*sk_destruct)(struct sock * ) ; }; struct request_sock_ops; struct timewait_sock_ops; struct inet_hashinfo; struct raw_hashinfo; struct udp_table; union __anonunion_h_353 { struct inet_hashinfo *hashinfo ; struct udp_table *udp_table ; struct raw_hashinfo *raw_hash ; }; struct proto { void (*close)(struct sock * , long ) ; int (*connect)(struct sock * , struct sockaddr * , int ) ; int (*disconnect)(struct sock * , int ) ; struct sock *(*accept)(struct sock * , int , int * ) ; int (*ioctl)(struct sock * , int , unsigned long ) ; int (*init)(struct sock * ) ; void (*destroy)(struct sock * ) ; void (*shutdown)(struct sock * , int ) ; int (*setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_ioctl)(struct sock * , unsigned int , unsigned long ) ; int (*sendmsg)(struct sock * , struct msghdr * , size_t ) ; int (*recvmsg)(struct sock * , struct msghdr * , size_t , int , int , int * ) ; int (*sendpage)(struct sock * , struct page * , int , size_t , int ) ; int (*bind)(struct sock * , struct sockaddr * , int ) ; int (*backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*release_cb)(struct sock * ) ; void (*hash)(struct sock * ) ; void (*unhash)(struct sock * ) ; void (*rehash)(struct sock * ) ; int (*get_port)(struct sock * , unsigned short ) ; void (*clear_sk)(struct sock * , int ) ; unsigned int inuse_idx ; bool (*stream_memory_free)(struct sock const * ) ; void (*enter_memory_pressure)(struct sock * ) ; atomic_long_t *memory_allocated ; struct percpu_counter *sockets_allocated ; int *memory_pressure ; long *sysctl_mem ; int *sysctl_wmem ; int *sysctl_rmem ; int max_header ; bool no_autobind ; struct kmem_cache *slab ; unsigned int obj_size ; int slab_flags ; struct percpu_counter *orphan_count ; struct request_sock_ops *rsk_prot ; struct timewait_sock_ops *twsk_prot ; union __anonunion_h_353 h ; struct module *owner ; char name[32U] ; struct list_head node ; int (*init_cgroup)(struct mem_cgroup * , struct cgroup_subsys * ) ; void (*destroy_cgroup)(struct mem_cgroup * ) ; struct cg_proto *(*proto_cgroup)(struct mem_cgroup * ) ; }; struct cg_proto { struct page_counter memory_allocated ; struct percpu_counter sockets_allocated ; int memory_pressure ; long sysctl_mem[3U] ; unsigned long flags ; struct mem_cgroup *memcg ; }; struct ptldebug_header { __u32 ph_len ; __u32 ph_flags ; __u32 ph_subsys ; __u32 ph_mask ; __u16 ph_cpu_id ; __u16 ph_type ; __u32 ph_sec ; __u64 ph_usec ; __u32 ph_stack ; __u32 ph_pid ; __u32 ph_extern_pid ; __u32 ph_line_num ; }; struct cfs_debug_limit_state { unsigned long cdls_next ; unsigned int cdls_delay ; int cdls_count ; }; struct libcfs_debug_msg_data { char const *msg_file ; char const *msg_fn ; int msg_subsys ; int msg_line ; int msg_mask ; struct cfs_debug_limit_state *msg_cdls ; }; enum ldv_34576 { CFS_TCD_TYPE_PROC = 0, CFS_TCD_TYPE_SOFTIRQ = 1, CFS_TCD_TYPE_IRQ = 2, CFS_TCD_TYPE_MAX = 3 } ; typedef enum ldv_34576 cfs_trace_buf_type_t; struct cfs_trace_cpu_data { spinlock_t tcd_lock ; unsigned long tcd_lock_flags ; struct list_head tcd_pages ; unsigned long tcd_cur_pages ; struct list_head tcd_daemon_pages ; unsigned long tcd_cur_daemon_pages ; unsigned long tcd_max_pages ; struct list_head tcd_stock_pages ; unsigned long tcd_cur_stock_pages ; unsigned short tcd_shutting_down ; unsigned short tcd_cpu ; unsigned short tcd_type ; unsigned short tcd_pages_factor ; }; union cfs_trace_data_union { struct cfs_trace_cpu_data tcd ; char __pad[192U] ; }; struct cfs_trace_page { struct page *page ; struct list_head linkage ; unsigned int used ; unsigned short cpu ; unsigned short type ; }; typedef int ldv_func_ret_type; struct atomic_notifier_head; enum hrtimer_restart; struct atomic_notifier_head { spinlock_t lock ; struct notifier_block *head ; }; struct __anonstruct_mm_segment_t_29 { unsigned long seg ; }; typedef struct __anonstruct_mm_segment_t_29 mm_segment_t; struct thread_info { struct task_struct *task ; __u32 flags ; __u32 status ; __u32 cpu ; int saved_preempt_count ; mm_segment_t addr_limit ; void *sysenter_return ; unsigned char sig_on_uaccess_error : 1 ; unsigned char uaccess_err : 1 ; }; struct __wait_queue; typedef struct __wait_queue wait_queue_t; struct __wait_queue { unsigned int flags ; void *private ; int (*func)(wait_queue_t * , unsigned int , int , void * ) ; struct list_head task_list ; }; enum hrtimer_restart; struct fs_struct { int users ; spinlock_t lock ; seqcount_t seq ; int umask ; int in_exec ; struct path root ; struct path pwd ; }; typedef unsigned long ulong_ptr_t; typedef void cfs_timer_func_t(ulong_ptr_t ); typedef int ldv_func_ret_type___0; typedef int ldv_func_ret_type___1; struct paravirt_callee_save { void *func ; }; struct pv_irq_ops { struct paravirt_callee_save save_fl ; struct paravirt_callee_save restore_fl ; struct paravirt_callee_save irq_disable ; struct paravirt_callee_save irq_enable ; void (*safe_halt)(void) ; void (*halt)(void) ; void (*adjust_exception_frame)(void) ; }; enum node_states { N_POSSIBLE = 0, N_ONLINE = 1, N_NORMAL_MEMORY = 2, N_HIGH_MEMORY = 2, N_MEMORY = 3, N_CPU = 4, NR_NODE_STATES = 5 } ; enum hrtimer_restart; struct cfs_cpu_partition { cpumask_t *cpt_cpumask ; nodemask_t *cpt_nodemask ; unsigned int cpt_spread_rotor ; }; struct cfs_cpt_table { unsigned int ctb_version ; unsigned int ctb_spread_rotor ; unsigned int ctb_nparts ; struct cfs_cpu_partition *ctb_parts ; int *ctb_cpu2cpt ; cpumask_t *ctb_cpumask ; nodemask_t *ctb_nodemask ; }; struct cfs_range_expr { struct list_head re_link ; __u32 re_lo ; __u32 re_hi ; __u32 re_stride ; }; struct cfs_expr_list { struct list_head el_link ; struct list_head el_exprs ; }; struct cfs_cpt_data { spinlock_t cpt_lock ; unsigned long cpt_version ; struct mutex cpt_mutex ; cpumask_t *cpt_cpumask ; }; enum hrtimer_restart; typedef __u32 cfs_cap_t; enum hrtimer_restart; struct miscdevice { int minor ; char const *name ; struct file_operations const *fops ; struct list_head list ; struct device *parent ; struct device *this_device ; struct attribute_group const **groups ; char const *nodename ; umode_t mode ; }; struct cfs_psdev_file { unsigned long off ; void *private_data ; unsigned long reserved1 ; unsigned long reserved2 ; }; struct cfs_psdev_ops { int (*p_open)(unsigned long , void * ) ; int (*p_close)(unsigned long , void * ) ; int (*p_read)(struct cfs_psdev_file * , char * , unsigned long ) ; int (*p_write)(struct cfs_psdev_file * , char * , unsigned long ) ; int (*p_ioctl)(struct cfs_psdev_file * , unsigned long , void * ) ; }; struct libcfs_device_userstate { int ldu_memhog_pages ; struct page *ldu_memhog_root_page ; }; struct libcfs_ioctl_data { __u32 ioc_len ; __u32 ioc_version ; __u64 ioc_nid ; __u64 ioc_u64[1U] ; __u32 ioc_flags ; __u32 ioc_count ; __u32 ioc_net ; __u32 ioc_u32[7U] ; __u32 ioc_inllen1 ; char *ioc_inlbuf1 ; __u32 ioc_inllen2 ; char *ioc_inlbuf2 ; __u32 ioc_plen1 ; char *ioc_pbuf1 ; __u32 ioc_plen2 ; char *ioc_pbuf2 ; char ioc_bulk[0U] ; }; struct libcfs_ioctl_hdr { __u32 ioc_len ; __u32 ioc_version ; }; enum hrtimer_restart; struct crypto_ablkcipher; struct crypto_async_request; struct crypto_aead; struct crypto_blkcipher; struct crypto_hash; struct crypto_tfm; struct crypto_type; struct aead_request; struct aead_givcrypt_request; struct skcipher_givcrypt_request; struct crypto_async_request { struct list_head list ; void (*complete)(struct crypto_async_request * , int ) ; void *data ; struct crypto_tfm *tfm ; u32 flags ; }; struct ablkcipher_request { struct crypto_async_request base ; unsigned int nbytes ; void *info ; struct scatterlist *src ; struct scatterlist *dst ; void *__ctx[] ; }; struct blkcipher_desc { struct crypto_blkcipher *tfm ; void *info ; u32 flags ; }; struct hash_desc { struct crypto_hash *tfm ; u32 flags ; }; struct ablkcipher_alg { int (*setkey)(struct crypto_ablkcipher * , u8 const * , unsigned int ) ; int (*encrypt)(struct ablkcipher_request * ) ; int (*decrypt)(struct ablkcipher_request * ) ; int (*givencrypt)(struct skcipher_givcrypt_request * ) ; int (*givdecrypt)(struct skcipher_givcrypt_request * ) ; char const *geniv ; unsigned int min_keysize ; unsigned int max_keysize ; unsigned int ivsize ; }; struct old_aead_alg { int (*setkey)(struct crypto_aead * , u8 const * , unsigned int ) ; int (*setauthsize)(struct crypto_aead * , unsigned int ) ; int (*encrypt)(struct aead_request * ) ; int (*decrypt)(struct aead_request * ) ; int (*givencrypt)(struct aead_givcrypt_request * ) ; int (*givdecrypt)(struct aead_givcrypt_request * ) ; char const *geniv ; unsigned int ivsize ; unsigned int maxauthsize ; }; struct blkcipher_alg { int (*setkey)(struct crypto_tfm * , u8 const * , unsigned int ) ; int (*encrypt)(struct blkcipher_desc * , struct scatterlist * , struct scatterlist * , unsigned int ) ; int (*decrypt)(struct blkcipher_desc * , struct scatterlist * , struct scatterlist * , unsigned int ) ; char const *geniv ; unsigned int min_keysize ; unsigned int max_keysize ; unsigned int ivsize ; }; struct cipher_alg { unsigned int cia_min_keysize ; unsigned int cia_max_keysize ; int (*cia_setkey)(struct crypto_tfm * , u8 const * , unsigned int ) ; void (*cia_encrypt)(struct crypto_tfm * , u8 * , u8 const * ) ; void (*cia_decrypt)(struct crypto_tfm * , u8 * , u8 const * ) ; }; struct compress_alg { int (*coa_compress)(struct crypto_tfm * , u8 const * , unsigned int , u8 * , unsigned int * ) ; int (*coa_decompress)(struct crypto_tfm * , u8 const * , unsigned int , u8 * , unsigned int * ) ; }; union __anonunion_cra_u_205 { struct ablkcipher_alg ablkcipher ; struct old_aead_alg aead ; struct blkcipher_alg blkcipher ; struct cipher_alg cipher ; struct compress_alg compress ; }; struct crypto_alg { struct list_head cra_list ; struct list_head cra_users ; u32 cra_flags ; unsigned int cra_blocksize ; unsigned int cra_ctxsize ; unsigned int cra_alignmask ; int cra_priority ; atomic_t cra_refcnt ; char cra_name[64U] ; char cra_driver_name[64U] ; struct crypto_type const *cra_type ; union __anonunion_cra_u_205 cra_u ; int (*cra_init)(struct crypto_tfm * ) ; void (*cra_exit)(struct crypto_tfm * ) ; void (*cra_destroy)(struct crypto_alg * ) ; struct module *cra_module ; }; struct ablkcipher_tfm { int (*setkey)(struct crypto_ablkcipher * , u8 const * , unsigned int ) ; int (*encrypt)(struct ablkcipher_request * ) ; int (*decrypt)(struct ablkcipher_request * ) ; int (*givencrypt)(struct skcipher_givcrypt_request * ) ; int (*givdecrypt)(struct skcipher_givcrypt_request * ) ; struct crypto_ablkcipher *base ; unsigned int ivsize ; unsigned int reqsize ; }; struct blkcipher_tfm { void *iv ; int (*setkey)(struct crypto_tfm * , u8 const * , unsigned int ) ; int (*encrypt)(struct blkcipher_desc * , struct scatterlist * , struct scatterlist * , unsigned int ) ; int (*decrypt)(struct blkcipher_desc * , struct scatterlist * , struct scatterlist * , unsigned int ) ; }; struct cipher_tfm { int (*cit_setkey)(struct crypto_tfm * , u8 const * , unsigned int ) ; void (*cit_encrypt_one)(struct crypto_tfm * , u8 * , u8 const * ) ; void (*cit_decrypt_one)(struct crypto_tfm * , u8 * , u8 const * ) ; }; struct hash_tfm { int (*init)(struct hash_desc * ) ; int (*update)(struct hash_desc * , struct scatterlist * , unsigned int ) ; int (*final)(struct hash_desc * , u8 * ) ; int (*digest)(struct hash_desc * , struct scatterlist * , unsigned int , u8 * ) ; int (*setkey)(struct crypto_hash * , u8 const * , unsigned int ) ; unsigned int digestsize ; }; struct compress_tfm { int (*cot_compress)(struct crypto_tfm * , u8 const * , unsigned int , u8 * , unsigned int * ) ; int (*cot_decompress)(struct crypto_tfm * , u8 const * , unsigned int , u8 * , unsigned int * ) ; }; union __anonunion_crt_u_206 { struct ablkcipher_tfm ablkcipher ; struct blkcipher_tfm blkcipher ; struct cipher_tfm cipher ; struct hash_tfm hash ; struct compress_tfm compress ; }; struct crypto_tfm { u32 crt_flags ; union __anonunion_crt_u_206 crt_u ; void (*exit)(struct crypto_tfm * ) ; struct crypto_alg *__crt_alg ; void *__crt_ctx[] ; }; struct crypto_ablkcipher { struct crypto_tfm base ; }; struct crypto_blkcipher { struct crypto_tfm base ; }; struct crypto_hash { struct crypto_tfm base ; }; struct cfs_crypto_hash_type { char *cht_name ; unsigned int cht_key ; unsigned int cht_size ; }; struct cfs_crypto_hash_desc; enum hrtimer_restart; struct shash_desc; typedef unsigned char Byte; typedef unsigned int uInt; typedef unsigned long uLong; struct crypto_type { unsigned int (*ctxsize)(struct crypto_alg * , u32 , u32 ) ; unsigned int (*extsize)(struct crypto_alg * ) ; int (*init)(struct crypto_tfm * , u32 , u32 ) ; int (*init_tfm)(struct crypto_tfm * ) ; void (*show)(struct seq_file * , struct crypto_alg * ) ; int (*report)(struct sk_buff * , struct crypto_alg * ) ; struct crypto_alg *(*lookup)(char const * , u32 , u32 ) ; unsigned int type ; unsigned int maskclear ; unsigned int maskset ; unsigned int tfmsize ; }; struct crypto_shash; struct shash_desc { struct crypto_shash *tfm ; u32 flags ; void *__ctx[] ; }; struct shash_alg { int (*init)(struct shash_desc * ) ; int (*update)(struct shash_desc * , u8 const * , unsigned int ) ; int (*final)(struct shash_desc * , u8 * ) ; int (*finup)(struct shash_desc * , u8 const * , unsigned int , u8 * ) ; int (*digest)(struct shash_desc * , u8 const * , unsigned int , u8 * ) ; int (*export)(struct shash_desc * , void * ) ; int (*import)(struct shash_desc * , void const * ) ; int (*setkey)(struct crypto_shash * , u8 const * , unsigned int ) ; unsigned int descsize ; unsigned int digestsize ; unsigned int statesize ; struct crypto_alg base ; }; struct crypto_shash { unsigned int descsize ; struct crypto_tfm base ; }; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; enum hrtimer_restart; struct cfs_lstr { char *ls_str ; int ls_len ; }; typedef __u64 lnet_nid_t; typedef __u32 lnet_pid_t; struct __anonstruct_lnet_process_id_t_371 { lnet_nid_t nid ; lnet_pid_t pid ; }; typedef struct __anonstruct_lnet_process_id_t_371 lnet_process_id_t; struct netstrfns { int nf_type ; char *nf_name ; char *nf_modname ; void (*nf_addr2str)(__u32 , char * ) ; int (*nf_str2addr)(char const * , int , __u32 * ) ; int (*nf_parse_addrlist)(char * , int , struct list_head * ) ; int (*nf_match_addr)(__u32 , struct list_head * ) ; }; struct nidrange { struct list_head nr_link ; struct list_head nr_addrranges ; int nr_all ; struct netstrfns *nr_netstrfns ; int nr_netnum ; }; struct addrrange { struct list_head ar_link ; struct list_head ar_numaddr_ranges ; }; enum hrtimer_restart; struct libcfs_ioctl_handler { struct list_head item ; int (*handle_ioctl)(unsigned int , struct libcfs_ioctl_data * ) ; }; struct cfs_wi_sched; typedef int ldv_func_ret_type___2; struct va_list; typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; struct tss_struct; struct x86_hw_tss { u32 reserved1 ; u64 sp0 ; u64 sp1 ; u64 sp2 ; u64 reserved2 ; u64 ist[7U] ; u32 reserved3 ; u32 reserved4 ; u16 reserved5 ; u16 io_bitmap_base ; }; struct tss_struct { struct x86_hw_tss x86_tss ; unsigned long io_bitmap[1025U] ; unsigned long SYSENTER_stack[64U] ; }; typedef int pao_T__; typedef int pao_T_____0; enum hrtimer_restart; struct page_collection { struct list_head pc_pages ; spinlock_t pc_lock ; int pc_want_daemon_pages ; }; struct tracefiled_ctl { struct completion tctl_start ; struct completion tctl_stop ; wait_queue_head_t tctl_waitq ; pid_t tctl_pid ; atomic_t tctl_shutdown ; }; enum hrtimer_restart; enum hrtimer_restart; struct cfs_workitem; struct cfs_workitem { struct list_head wi_list ; int (*wi_action)(struct cfs_workitem * ) ; void *wi_data ; unsigned char wi_running : 1 ; unsigned char wi_scheduled : 1 ; }; typedef struct cfs_workitem cfs_workitem_t; struct cfs_hash_ops; struct cfs_hash_lock_ops; struct cfs_hash_hlist_ops; union cfs_hash_lock { rwlock_t rw ; spinlock_t spin ; }; struct cfs_hash_bucket { union cfs_hash_lock hsb_lock ; __u32 hsb_count ; __u32 hsb_version ; unsigned int hsb_index ; int hsb_depmax ; long hsb_head[0U] ; }; struct cfs_hash_bd { struct cfs_hash_bucket *bd_bucket ; unsigned int bd_offset ; }; struct cfs_hash { union cfs_hash_lock hs_lock ; struct cfs_hash_ops *hs_ops ; struct cfs_hash_lock_ops *hs_lops ; struct cfs_hash_hlist_ops *hs_hops ; struct cfs_hash_bucket **hs_buckets ; atomic_t hs_count ; __u16 hs_flags ; __u16 hs_extra_bytes ; __u8 hs_iterating ; __u8 hs_exiting ; __u8 hs_cur_bits ; __u8 hs_min_bits ; __u8 hs_max_bits ; __u8 hs_rehash_bits ; __u8 hs_bkt_bits ; __u16 hs_min_theta ; __u16 hs_max_theta ; __u32 hs_rehash_count ; __u32 hs_iterators ; cfs_workitem_t hs_rehash_wi ; atomic_t hs_refcount ; struct cfs_hash_bucket **hs_rehash_buckets ; char hs_name[0U] ; }; struct cfs_hash_lock_ops { void (*hs_lock)(union cfs_hash_lock * , int ) ; void (*hs_unlock)(union cfs_hash_lock * , int ) ; void (*hs_bkt_lock)(union cfs_hash_lock * , int ) ; void (*hs_bkt_unlock)(union cfs_hash_lock * , int ) ; }; typedef struct cfs_hash_lock_ops cfs_hash_lock_ops_t; struct cfs_hash_hlist_ops { struct hlist_head *(*hop_hhead)(struct cfs_hash * , struct cfs_hash_bd * ) ; int (*hop_hhead_size)(struct cfs_hash * ) ; int (*hop_hnode_add)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * ) ; int (*hop_hnode_del)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * ) ; }; typedef struct cfs_hash_hlist_ops cfs_hash_hlist_ops_t; struct cfs_hash_ops { unsigned int (*hs_hash)(struct cfs_hash * , void const * , unsigned int ) ; void *(*hs_key)(struct hlist_node * ) ; void (*hs_keycpy)(struct hlist_node * , void * ) ; int (*hs_keycmp)(void const * , struct hlist_node * ) ; void *(*hs_object)(struct hlist_node * ) ; void (*hs_get)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_put)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_put_locked)(struct cfs_hash * , struct hlist_node * ) ; void (*hs_exit)(struct cfs_hash * , struct hlist_node * ) ; }; typedef struct cfs_hash_ops cfs_hash_ops_t; struct __anonstruct_cfs_hash_head_t_362 { struct hlist_head hh_head ; }; typedef struct __anonstruct_cfs_hash_head_t_362 cfs_hash_head_t; struct __anonstruct_cfs_hash_head_dep_t_363 { struct hlist_head hd_head ; unsigned int hd_depth ; }; typedef struct __anonstruct_cfs_hash_head_dep_t_363 cfs_hash_head_dep_t; struct __anonstruct_cfs_hash_dhead_t_364 { struct hlist_head dh_head ; struct hlist_node *dh_tail ; }; typedef struct __anonstruct_cfs_hash_dhead_t_364 cfs_hash_dhead_t; struct __anonstruct_cfs_hash_dhead_dep_t_365 { struct hlist_head dd_head ; struct hlist_node *dd_tail ; unsigned int dd_depth ; }; typedef struct __anonstruct_cfs_hash_dhead_dep_t_365 cfs_hash_dhead_dep_t; enum cfs_hash_lookup_intent { CFS_HS_LOOKUP_IT_PEEK = 1, CFS_HS_LOOKUP_IT_FIND = 3, CFS_HS_LOOKUP_IT_ADD = 5, CFS_HS_LOOKUP_IT_FINDADD = 7, CFS_HS_LOOKUP_IT_FINDDEL = 9 } ; typedef enum cfs_hash_lookup_intent cfs_hash_lookup_intent_t; struct __anonstruct_cfs_hash_cond_arg_t_366 { int (*func)(void * , void * ) ; void *arg ; }; typedef struct __anonstruct_cfs_hash_cond_arg_t_366 cfs_hash_cond_arg_t; enum hrtimer_restart; struct kuc_hdr { __u16 kuc_magic ; __u8 kuc_transport ; __u8 kuc_flags ; __u16 kuc_msgtype ; __u16 kuc_msglen ; }; struct kkuc_reg { struct list_head kr_chain ; int kr_uid ; struct file *kr_fp ; __u32 kr_data ; }; enum hrtimer_restart; enum hrtimer_restart; struct cfs_wi_sched { struct list_head ws_list ; spinlock_t ws_lock ; wait_queue_head_t ws_waitq ; struct list_head ws_runq ; struct list_head ws_rerunq ; struct cfs_cpt_table *ws_cptab ; int ws_cpt ; int ws_nscheduled ; unsigned int ws_nthreads : 30 ; unsigned char ws_stopping : 1 ; unsigned char ws_starting : 1 ; char ws_name[16U] ; }; typedef struct cfs_wi_sched cfs_wi_sched_t; struct cfs_workitem_data { spinlock_t wi_glock ; struct list_head wi_scheds ; int wi_init ; int wi_stopping ; }; enum hrtimer_restart; enum hrtimer_restart; struct cfs_var_array { unsigned int va_count ; unsigned int va_size ; struct cfs_cpt_table *va_cptab ; void *va_ptrs[0U] ; }; enum hrtimer_restart; struct cfs_percpt_lock { struct cfs_cpt_table *pcl_cptab ; unsigned int pcl_locked ; spinlock_t **pcl_locks ; }; __inline static long ldv__builtin_expect(long exp , long c ) ; extern int printk(char const * , ...) ; extern void __bad_percpu_size(void) ; extern void __bad_size_call_parameter(void) ; extern struct task_struct *current_task ; __inline static struct task_struct *get_current(void) { struct task_struct *pfo_ret__ ; { switch (8UL) { case 1UL: __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& current_task)); goto ldv_2696; case 2UL: __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2696; case 4UL: __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2696; case 8UL: __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2696; default: __bad_percpu_size(); } ldv_2696: ; return (pfo_ret__); } } extern void *memset(void * , int , size_t ) ; extern int __bitmap_weight(unsigned long const * , unsigned int ) ; __inline static int bitmap_weight(unsigned long const *src , unsigned int nbits ) { int tmp___0 ; { tmp___0 = __bitmap_weight(src, nbits); return (tmp___0); } } extern int nr_cpu_ids ; extern struct cpumask const * const cpu_possible_mask ; __inline static unsigned int cpumask_weight(struct cpumask const *srcp ) { int tmp ; { tmp = bitmap_weight((unsigned long const *)(& srcp->bits), (unsigned int )nr_cpu_ids); return ((unsigned int )tmp); } } extern int mutex_trylock(struct mutex * ) ; int ldv_mutex_trylock_10(struct mutex *ldv_func_arg1 ) ; extern void mutex_unlock(struct mutex * ) ; void ldv_mutex_unlock_5(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_8(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_11(struct mutex *ldv_func_arg1 ) ; extern void *malloc(size_t ) ; extern void *calloc(size_t , size_t ) ; extern int __VERIFIER_nondet_int(void) ; extern unsigned long __VERIFIER_nondet_ulong(void) ; extern void abort(void); void assume_abort_if_not(int cond) { if(!cond) {abort();} } __inline static bool IS_ERR(void const *ptr ) ; void *ldv_malloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = malloc(size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); assume_abort_if_not(IS_ERR(p) == 0); return (p); } } } void *ldv_zalloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = calloc(1UL, size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); assume_abort_if_not(IS_ERR(p) == 0); return (p); } } } void *ldv_init_zalloc(size_t size ) { void *p ; void *tmp ; { tmp = calloc(1UL, size); p = tmp; assume_abort_if_not((unsigned long )p != (unsigned long )((void *)0)); return (p); } } void *ldv_memset(void *s , int c , size_t n ) { void *tmp ; { tmp = memset(s, c, n); return (tmp); } } int ldv_undef_int(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); return (tmp); } } unsigned long ldv_undef_ulong(void) { unsigned long tmp ; { tmp = __VERIFIER_nondet_ulong(); return (tmp); } } __inline static long ldv__builtin_expect(long exp , long c ) { { return (exp); } } extern void mutex_lock(struct mutex * ) ; void ldv_mutex_lock_6(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_7(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_9(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_i_mutex_of_inode(struct mutex *lock ) ; void ldv_mutex_unlock_i_mutex_of_inode(struct mutex *lock ) ; void ldv_mutex_lock_lock(struct mutex *lock ) ; void ldv_mutex_unlock_lock(struct mutex *lock ) ; void ldv_mutex_lock_mutex_of_device(struct mutex *lock ) ; int ldv_mutex_trylock_mutex_of_device(struct mutex *lock ) ; void ldv_mutex_unlock_mutex_of_device(struct mutex *lock ) ; extern int __preempt_count ; __inline static int preempt_count(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6538; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6538; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6538; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6538; default: __bad_percpu_size(); } ldv_6538: ; return (pfo_ret__ & 2147483647); } } extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_spin_lock(raw_spinlock_t * ) ; extern void _raw_spin_lock_bh(raw_spinlock_t * ) ; extern void _raw_spin_lock_irq(raw_spinlock_t * ) ; extern unsigned long _raw_spin_lock_irqsave(raw_spinlock_t * ) ; extern void _raw_spin_unlock(raw_spinlock_t * ) ; extern void _raw_spin_unlock_bh(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irq(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irqrestore(raw_spinlock_t * , unsigned long ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->__annonCompField17.rlock); } } __inline static void spin_lock(spinlock_t *lock ) { { _raw_spin_lock(& lock->__annonCompField17.rlock); return; } } __inline static void spin_lock_bh(spinlock_t *lock ) { { _raw_spin_lock_bh(& lock->__annonCompField17.rlock); return; } } __inline static void spin_lock_irq(spinlock_t *lock ) { { _raw_spin_lock_irq(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock(spinlock_t *lock ) { { _raw_spin_unlock(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock_bh(spinlock_t *lock ) { { _raw_spin_unlock_bh(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock_irq(spinlock_t *lock ) { { _raw_spin_unlock_irq(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock_irqrestore(spinlock_t *lock , unsigned long flags ) { { _raw_spin_unlock_irqrestore(& lock->__annonCompField17.rlock, flags); return; } } extern void down_read(struct rw_semaphore * ) ; extern void down_write(struct rw_semaphore * ) ; extern void up_read(struct rw_semaphore * ) ; extern void up_write(struct rw_semaphore * ) ; extern void do_gettimeofday(struct timeval * ) ; extern int cpu_number ; extern void kfree(void const * ) ; extern void *ldv_malloc(size_t); void *__kmalloc(size_t size, gfp_t t) { return ldv_malloc(size); } void *ldv_malloc(size_t size ) ; __inline static void *kmalloc(size_t size , gfp_t flags ) { void *tmp___2 ; { tmp___2 = __kmalloc(size, flags); return (tmp___2); } } int LDV_IN_INTERRUPT = 1; int ldv_timer_state_2 = 0; int ldv_timer_state_1 = 0; extern unsigned long totalram_pages ; unsigned int libcfs_printk ; int cfs_tracefile_init_arch(void) ; void cfs_tracefile_fini_arch(void) ; void cfs_tracefile_read_lock(void) ; void cfs_tracefile_read_unlock(void) ; void cfs_tracefile_write_lock(void) ; void cfs_tracefile_write_unlock(void) ; int cfs_trace_max_debug_mb(void) ; union cfs_trace_data_union (*cfs_trace_data[8U])[8192U] ; void cfs_set_ptldebug_header(struct ptldebug_header *header , struct libcfs_debug_msg_data *msgdata , unsigned long stack ) ; void cfs_print_to_console(struct ptldebug_header *hdr , int mask , char const *buf , int len , char const *file , char const *fn ) ; int cfs_trace_lock_tcd(struct cfs_trace_cpu_data *tcd , int walking ) ; void cfs_trace_unlock_tcd(struct cfs_trace_cpu_data *tcd , int walking ) ; char *cfs_trace_console_buffers[8192U][3U] ; cfs_trace_buf_type_t cfs_trace_buf_idx_get(void) ; int cfs_tcd_owns_tage(struct cfs_trace_cpu_data *tcd , struct cfs_trace_page *tage ) ; void cfs_trace_assertion_failed(char const *str , struct libcfs_debug_msg_data *msgdata ) ; static unsigned int pages_factor[3U] = { 80U, 10U, 10U}; static struct rw_semaphore cfs_tracefile_sem = {0L, {& cfs_tracefile_sem.wait_list, & cfs_tracefile_sem.wait_list}, {{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "cfs_tracefile_sem.wait_lock", 0, 0UL}}, {{0}}, (struct task_struct *)0, {0, {0, 0}, "cfs_tracefile_sem", 0, 0UL}}; int cfs_tracefile_init_arch(void) { int i ; int j ; struct cfs_trace_cpu_data *tcd ; unsigned int tmp ; void *tmp___0 ; struct lock_class_key __key ; unsigned int tmp___1 ; void *tmp___2 ; unsigned int tmp___3 ; { memset((void *)(& cfs_trace_data), 0, 64UL); i = 0; goto ldv_50299; ldv_50298: tmp = cpumask_weight(cpu_possible_mask); tmp___0 = kmalloc((unsigned long )tmp * 192UL, 208U); cfs_trace_data[i] = (union cfs_trace_data_union (*)[8192])tmp___0; if ((unsigned long )cfs_trace_data[i] == (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto out; } else { } i = i + 1; ldv_50299: ; if (i <= 2) { goto ldv_50298; } else { } i = 0; goto ldv_50306; ldv_50305: j = 0; tcd = & (*(cfs_trace_data[i]))[j].tcd; goto ldv_50303; ldv_50302: spinlock_check(& tcd->tcd_lock); __raw_spin_lock_init(& tcd->tcd_lock.__annonCompField17.rlock, "&(&tcd->tcd_lock)->rlock", & __key); tcd->tcd_pages_factor = (unsigned short )pages_factor[i]; tcd->tcd_type = (unsigned short )i; tcd->tcd_cpu = (unsigned short )j; j = j + 1; tcd = & (*(cfs_trace_data[i]))[j].tcd; ldv_50303: tmp___1 = cpumask_weight(cpu_possible_mask); if ((unsigned int )j < tmp___1) { goto ldv_50302; } else { } i = i + 1; ldv_50306: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50305; } else { } i = 0; goto ldv_50312; ldv_50311: j = 0; goto ldv_50309; ldv_50308: tmp___2 = kmalloc(1024UL, 208U); cfs_trace_console_buffers[i][j] = (char *)tmp___2; if ((unsigned long )cfs_trace_console_buffers[i][j] == (unsigned long )((char *)0)) { goto out; } else { } j = j + 1; ldv_50309: ; if (j <= 2) { goto ldv_50308; } else { } i = i + 1; ldv_50312: tmp___3 = cpumask_weight(cpu_possible_mask); if ((unsigned int )i < tmp___3) { goto ldv_50311; } else { } return (0); out: cfs_tracefile_fini_arch(); printk("\vlnet: Not enough memory\n"); return (-12); } } void cfs_tracefile_fini_arch(void) { int i ; int j ; unsigned int tmp ; { i = 0; goto ldv_50323; ldv_50322: j = 0; goto ldv_50320; ldv_50319: kfree((void const *)cfs_trace_console_buffers[i][j]); cfs_trace_console_buffers[i][j] = (char *)0; j = j + 1; ldv_50320: ; if (j <= 2) { goto ldv_50319; } else { } i = i + 1; ldv_50323: tmp = cpumask_weight(cpu_possible_mask); if ((unsigned int )i < tmp) { goto ldv_50322; } else { } i = 0; goto ldv_50326; ldv_50325: kfree((void const *)cfs_trace_data[i]); cfs_trace_data[i] = (union cfs_trace_data_union (*)[8192])0; i = i + 1; ldv_50326: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50325; } else { } return; } } void cfs_tracefile_read_lock(void) { { down_read(& cfs_tracefile_sem); return; } } void cfs_tracefile_read_unlock(void) { { up_read(& cfs_tracefile_sem); return; } } void cfs_tracefile_write_lock(void) { { down_write(& cfs_tracefile_sem); return; } } void cfs_tracefile_write_unlock(void) { { up_write(& cfs_tracefile_sem); return; } } cfs_trace_buf_type_t cfs_trace_buf_idx_get(void) { int tmp ; int tmp___0 ; { tmp___0 = preempt_count(); if (((unsigned long )tmp___0 & 983040UL) != 0UL) { return (2); } else { tmp = preempt_count(); if (((unsigned long )tmp & 65280UL) != 0UL) { return (1); } else { return (0); } } } } int cfs_trace_lock_tcd(struct cfs_trace_cpu_data *tcd , int walking ) { struct libcfs_debug_msg_data msgdata ; long tmp ; raw_spinlock_t *tmp___0 ; long tmp___1 ; { tmp = ldv__builtin_expect((unsigned int )tcd->tcd_type > 2U, 0L); if (tmp != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-tracefile.c"; msgdata.msg_fn = "cfs_trace_lock_tcd"; msgdata.msg_subsys = 1024; msgdata.msg_line = 153; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tcd->tcd_type < CFS_TCD_TYPE_MAX) failed", & msgdata); } else { } if ((unsigned int )tcd->tcd_type == 2U) { tmp___0 = spinlock_check(& tcd->tcd_lock); tcd->tcd_lock_flags = _raw_spin_lock_irqsave(tmp___0); } else if ((unsigned int )tcd->tcd_type == 1U) { spin_lock_bh(& tcd->tcd_lock); } else { tmp___1 = ldv__builtin_expect(walking != 0, 0L); if (tmp___1 != 0L) { spin_lock_irq(& tcd->tcd_lock); } else { spin_lock(& tcd->tcd_lock); } } return (1); } } void cfs_trace_unlock_tcd(struct cfs_trace_cpu_data *tcd , int walking ) { struct libcfs_debug_msg_data msgdata ; long tmp ; long tmp___0 ; { tmp = ldv__builtin_expect((unsigned int )tcd->tcd_type > 2U, 0L); if (tmp != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-tracefile.c"; msgdata.msg_fn = "cfs_trace_unlock_tcd"; msgdata.msg_subsys = 1024; msgdata.msg_line = 168; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tcd->tcd_type < CFS_TCD_TYPE_MAX) failed", & msgdata); } else { } if ((unsigned int )tcd->tcd_type == 2U) { spin_unlock_irqrestore(& tcd->tcd_lock, tcd->tcd_lock_flags); } else if ((unsigned int )tcd->tcd_type == 1U) { spin_unlock_bh(& tcd->tcd_lock); } else { tmp___0 = ldv__builtin_expect(walking != 0, 0L); if (tmp___0 != 0L) { spin_unlock_irq(& tcd->tcd_lock); } else { spin_unlock(& tcd->tcd_lock); } } return; } } int cfs_tcd_owns_tage(struct cfs_trace_cpu_data *tcd , struct cfs_trace_page *tage ) { { return ((int )tcd->tcd_cpu == (int )tage->cpu); } } void cfs_set_ptldebug_header(struct ptldebug_header *header , struct libcfs_debug_msg_data *msgdata , unsigned long stack ) { struct timeval tv ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; cfs_trace_buf_type_t tmp ; struct task_struct *tmp___0 ; { do_gettimeofday(& tv); header->ph_subsys = (__u32 )msgdata->msg_subsys; header->ph_mask = (__u32 )msgdata->msg_mask; __vpp_verify = (void const *)0; switch (4UL) { case 1UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50373; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50373; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50373; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50373; default: __bad_percpu_size(); } ldv_50373: pscr_ret__ = pfo_ret__; goto ldv_50379; case 2UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50383; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50383; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50383; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50383; default: __bad_percpu_size(); } ldv_50383: pscr_ret__ = pfo_ret_____0; goto ldv_50379; case 4UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50392; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50392; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50392; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50392; default: __bad_percpu_size(); } ldv_50392: pscr_ret__ = pfo_ret_____1; goto ldv_50379; case 8UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50401; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50401; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50401; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50401; default: __bad_percpu_size(); } ldv_50401: pscr_ret__ = pfo_ret_____2; goto ldv_50379; default: __bad_size_call_parameter(); goto ldv_50379; } ldv_50379: header->ph_cpu_id = (__u16 )pscr_ret__; tmp = cfs_trace_buf_idx_get(); header->ph_type = (__u16 )tmp; header->ph_sec = (unsigned int )tv.tv_sec; header->ph_usec = (__u64 )tv.tv_usec; header->ph_stack = (__u32 )stack; tmp___0 = get_current(); header->ph_pid = (__u32 )tmp___0->pid; header->ph_line_num = (__u32 )msgdata->msg_line; header->ph_extern_pid = 0U; return; } } static char *dbghdr_to_err_string(struct ptldebug_header *hdr ) { { switch (hdr->ph_subsys) { case 2048U: ; case 1024U: ; return ((char *)"LNetError"); default: ; return ((char *)"LustreError"); } } } static char *dbghdr_to_info_string(struct ptldebug_header *hdr ) { { switch (hdr->ph_subsys) { case 2048U: ; case 1024U: ; return ((char *)"LNet"); default: ; return ((char *)"Lustre"); } } } void cfs_print_to_console(struct ptldebug_header *hdr , int mask , char const *buf , int len , char const *file , char const *fn ) { char *prefix ; char *ptype ; { prefix = (char *)"Lustre"; ptype = (char *)0; if ((mask & 262144) != 0) { prefix = dbghdr_to_err_string(hdr); ptype = (char *)"\b"; } else if ((mask & 131072) != 0) { prefix = dbghdr_to_err_string(hdr); ptype = (char *)"\v"; } else if ((mask & 1024) != 0) { prefix = dbghdr_to_info_string(hdr); ptype = (char *)"\f"; } else if (((libcfs_printk | 33554432U) & (unsigned int )mask) != 0U) { prefix = dbghdr_to_info_string(hdr); ptype = (char *)"\016"; } else { } if ((mask & 33554432) != 0) { printk("%s%s: %.*s", ptype, prefix, len, buf); } else { printk("%s%s: %d:%d:(%s:%d:%s()) %.*s", ptype, prefix, hdr->ph_pid, hdr->ph_extern_pid, file, hdr->ph_line_num, fn, len, buf); } return; } } int cfs_trace_max_debug_mb(void) { int total_mb ; int _max1 ; int _max2 ; { total_mb = (int )(totalram_pages >> 8); _max1 = 512; _max2 = (total_mb * 80) / 100; return (_max1 > _max2 ? _max1 : _max2); } } void ldv_mutex_unlock_5(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_6(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_7(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_8(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_9(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_10(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_11(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern void dump_stack(void) ; extern struct atomic_notifier_head panic_notifier_list ; extern void panic(char const * , ...) ; extern int snprintf(char * , size_t , char const * , ...) ; extern void __xchg_wrong_size(void) ; int ldv_mutex_trylock_28(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_24(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_25(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_29(struct mutex *ldv_func_arg1 ) ; __inline static void ldv_stop(void) { { LDV_STOP: ; goto LDV_STOP; } } void ldv_mutex_lock_23(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_26(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_27(struct mutex *ldv_func_arg1 ) ; extern int atomic_notifier_chain_register(struct atomic_notifier_head * , struct notifier_block * ) ; extern int atomic_notifier_chain_unregister(struct atomic_notifier_head * , struct notifier_block * ) ; extern void schedule(void) ; int ldv_state_variable_7 ; extern int call_usermodehelper(char * , char ** , char ** , int ) ; unsigned int libcfs_subsystem_debug ; unsigned int libcfs_debug ; unsigned int libcfs_catastrophe ; unsigned int libcfs_panic_on_lbug ; __inline static int cfs_cdebug_show(unsigned int mask , unsigned int subsystem ) { { return ((mask & 33948672U) != 0U || ((libcfs_debug & mask) != 0U && (libcfs_subsystem_debug & subsystem) != 0U)); } } int libcfs_debug_msg(struct libcfs_debug_msg_data *msgdata , char const *format , ...) ; void lbug_with_loc(struct libcfs_debug_msg_data *msgdata ) ; void libcfs_run_upcall(char **argv ) ; void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *msgdata ) ; void libcfs_debug_dumplog(void) ; void libcfs_run_debug_log_upcall(char *file ) ; void libcfs_register_panic_notifier(void) ; void libcfs_unregister_panic_notifier(void) ; int libcfs_panic_in_progress ; char lnet_upcall[1024U] = { '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 'l', 'u', 's', 't', 'r', 'e', '/', 'l', 'n', 'e', 't', '_', 'u', 'p', 'c', 'a', 'l', 'l', '\000'}; char lnet_debug_log_upcall[1024U] = { '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 'l', 'u', 's', 't', 'r', 'e', '/', 'l', 'n', 'e', 't', '_', 'd', 'e', 'b', 'u', 'g', '_', 'l', 'o', 'g', '_', 'u', 'p', 'c', 'a', 'l', 'l', '\000'}; void libcfs_run_debug_log_upcall(char *file ) { char *argv[3U] ; int rc ; char *envp[3U] ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; { envp[0] = (char *)"HOME=/"; envp[1] = (char *)"PATH=/sbin:/bin:/usr/sbin:/usr/bin"; envp[2] = (char *)0; argv[0] = (char *)(& lnet_debug_log_upcall); tmp = ldv__builtin_expect((unsigned long )file == (unsigned long )((char *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; __msg_data.msg_fn = "libcfs_run_debug_log_upcall"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 83; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: called on a null filename\n", (char *)"file != NULL"); lbug_with_loc(& __msg_data); } else { } argv[1] = file; argv[2] = (char *)0; rc = call_usermodehelper(argv[0], (char **)(& argv), (char **)(& envp), 1); if (rc < 0 && rc != -2) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; msgdata.msg_fn = "libcfs_run_debug_log_upcall"; msgdata.msg_line = 91; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Error %d invoking LNET debug log upcall %s %s; check /proc/sys/lnet/debug_log_upcall\n", rc, argv[0], argv[1]); } else { } } else { tmp___1 = cfs_cdebug_show(524288U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; msgdata___0.msg_fn = "libcfs_run_debug_log_upcall"; msgdata___0.msg_line = 94; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 524288; libcfs_debug_msg(& msgdata___0, "Invoked LNET debug log upcall %s %s\n", argv[0], argv[1]); } else { } } return; } } void libcfs_run_upcall(char **argv ) { int rc ; int argc ; char *envp[3U] ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; { envp[0] = (char *)"HOME=/"; envp[1] = (char *)"PATH=/sbin:/bin:/usr/sbin:/usr/bin"; envp[2] = (char *)0; *argv = (char *)(& lnet_upcall); argc = 1; goto ldv_50144; ldv_50143: argc = argc + 1; ldv_50144: ; if ((unsigned long )*(argv + (unsigned long )argc) != (unsigned long )((char *)0)) { goto ldv_50143; } else { } tmp = ldv__builtin_expect(argc <= 1, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; __msg_data.msg_fn = "libcfs_run_upcall"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 112; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"argc >= 2"); lbug_with_loc(& __msg_data); } else { } rc = call_usermodehelper(*argv, argv, (char **)(& envp), 1); if (rc < 0 && rc != -2) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; msgdata.msg_fn = "libcfs_run_upcall"; msgdata.msg_line = 121; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Error %d invoking LNET upcall %s %s%s%s%s%s%s%s%s; check /proc/sys/lnet/upcall\n", rc, *argv, *(argv + 1UL), argc <= 2 ? (char *)"" : (char *)",", argc > 2 ? *(argv + 2UL) : (char *)"", argc <= 3 ? (char *)"" : (char *)",", argc > 3 ? *(argv + 3UL) : (char *)"", argc <= 4 ? (char *)"" : (char *)",", argc > 4 ? *(argv + 4UL) : (char *)"", argc <= 5 ? (char *)"" : (char *)",..."); } else { } } else { tmp___1 = cfs_cdebug_show(524288U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c"; msgdata___0.msg_fn = "libcfs_run_upcall"; msgdata___0.msg_line = 128; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 524288; libcfs_debug_msg(& msgdata___0, "Invoked LNET upcall %s %s%s%s%s%s%s%s%s\n", *argv, *(argv + 1UL), argc <= 2 ? (char *)"" : (char *)",", argc > 2 ? *(argv + 2UL) : (char *)"", argc <= 3 ? (char *)"" : (char *)",", argc > 3 ? *(argv + 3UL) : (char *)"", argc <= 4 ? (char *)"" : (char *)",", argc > 4 ? *(argv + 4UL) : (char *)"", argc <= 5 ? (char *)"" : (char *)",..."); } else { } } return; } } void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *msgdata ) { char *argv[6U] ; char buf[32U] ; { snprintf((char *)(& buf), 32UL, "%d", msgdata->msg_line); argv[1] = (char *)"LBUG"; argv[2] = (char *)msgdata->msg_file; argv[3] = (char *)msgdata->msg_fn; argv[4] = (char *)(& buf); argv[5] = (char *)0; libcfs_run_upcall((char **)(& argv)); return; } } void lbug_with_loc(struct libcfs_debug_msg_data *msgdata ) { int tmp ; struct task_struct *tmp___0 ; long volatile __ret ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; { libcfs_catastrophe = 1U; libcfs_debug_msg(msgdata, "LBUG\n"); tmp = preempt_count(); if (((unsigned long )tmp & 2096896UL) != 0UL) { panic("LBUG in interrupt.\n"); } else { } dump_stack(); if (libcfs_panic_on_lbug == 0U) { libcfs_debug_dumplog(); } else { } libcfs_run_lbug_upcall(msgdata); if (libcfs_panic_on_lbug != 0U) { panic("LBUG"); } else { } tmp___0 = get_current(); tmp___0->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___1 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_50161; case 2UL: tmp___2 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_50161; case 4UL: tmp___3 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_50161; case 8UL: tmp___4 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___4->state): : "memory", "cc"); goto ldv_50161; default: __xchg_wrong_size(); } ldv_50161: ; ldv_50167: schedule(); goto ldv_50167; } } static int panic_notifier(struct notifier_block *self , unsigned long unused1 , void *unused2 ) { { if (libcfs_panic_in_progress != 0) { return (0); } else { } libcfs_panic_in_progress = 1; __asm__ volatile ("mfence": : : "memory"); return (0); } } static struct notifier_block libcfs_panic_notifier = {& panic_notifier, (struct notifier_block *)0, 10000}; void libcfs_register_panic_notifier(void) { { atomic_notifier_chain_register(& panic_notifier_list, & libcfs_panic_notifier); return; } } void libcfs_unregister_panic_notifier(void) { { atomic_notifier_chain_unregister(& panic_notifier_list, & libcfs_panic_notifier); return; } } static char const __kstrtab_libcfs_run_upcall[18U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'r', 'u', 'n', '_', 'u', 'p', 'c', 'a', 'l', 'l', '\000'}; struct kernel_symbol const __ksymtab_libcfs_run_upcall ; struct kernel_symbol const __ksymtab_libcfs_run_upcall = {(unsigned long )(& libcfs_run_upcall), (char const *)(& __kstrtab_libcfs_run_upcall)}; static char const __kstrtab_libcfs_run_lbug_upcall[23U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'r', 'u', 'n', '_', 'l', 'b', 'u', 'g', '_', 'u', 'p', 'c', 'a', 'l', 'l', '\000'}; struct kernel_symbol const __ksymtab_libcfs_run_lbug_upcall ; struct kernel_symbol const __ksymtab_libcfs_run_lbug_upcall = {(unsigned long )(& libcfs_run_lbug_upcall), (char const *)(& __kstrtab_libcfs_run_lbug_upcall)}; static char const __kstrtab_lbug_with_loc[14U] = { 'l', 'b', 'u', 'g', '_', 'w', 'i', 't', 'h', '_', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_lbug_with_loc ; struct kernel_symbol const __ksymtab_lbug_with_loc = {(unsigned long )(& lbug_with_loc), (char const *)(& __kstrtab_lbug_with_loc)}; void ldv_main_exported_7(void) { unsigned long ldvarg12 ; struct notifier_block *ldvarg10 ; void *tmp ; void *ldvarg11 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(24UL); ldvarg10 = (struct notifier_block *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg11 = tmp___0; ldv_memset((void *)(& ldvarg12), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_7 == 1) { panic_notifier(ldvarg10, ldvarg12, ldvarg11); ldv_state_variable_7 = 1; } else { } goto ldv_50208; default: ldv_stop(); } ldv_50208: ; return; } } void ldv_mutex_lock_23(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_24(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_25(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_26(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_27(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_28(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_29(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void clear_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; btr %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr)); return; } } __inline static int variable_test_bit(long nr , unsigned long const volatile *addr ) { int oldbit ; { __asm__ volatile ("bt %2,%1\n\tsbb %0,%0": "=r" (oldbit): "m" (*((unsigned long *)addr)), "Ir" (nr)); return (oldbit); } } extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ; __inline static void list_add(struct list_head *new , struct list_head *head ) { { __list_add(new, head, head->next); return; } } int ldv_mutex_trylock_46(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_42(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_43(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_47(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_41(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_44(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_45(struct mutex *ldv_func_arg1 ) ; __inline static void clear_ti_thread_flag(struct thread_info *ti , int flag ) { { clear_bit((long )flag, (unsigned long volatile *)(& ti->flags)); return; } } __inline static int test_ti_thread_flag(struct thread_info *ti , int flag ) { int tmp ; { tmp = variable_test_bit((long )flag, (unsigned long const volatile *)(& ti->flags)); return (tmp); } } __inline static void __add_wait_queue(wait_queue_head_t *head , wait_queue_t *new ) { { list_add(& new->task_list, & head->task_list); return; } } __inline static void __add_wait_queue_exclusive(wait_queue_head_t *q , wait_queue_t *wait ) { { wait->flags = wait->flags | 1U; __add_wait_queue(q, wait); return; } } __inline static int timer_pending(struct timer_list const *timer ) { { return ((unsigned long )timer->entry.pprev != (unsigned long )((struct hlist_node **/* const */)0)); } } extern int del_timer(struct timer_list * ) ; int ldv_del_timer_49(struct timer_list *ldv_func_arg1 ) ; extern int mod_timer(struct timer_list * , unsigned long ) ; int ldv_mod_timer_48(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; __inline static void sigfillset(sigset_t *set ) { { switch (1) { default: memset((void *)set, -1, 8UL); goto ldv_14923; case 2: set->sig[1] = 0xffffffffffffffffUL; case 1: set->sig[0] = 0xffffffffffffffffUL; goto ldv_14923; } ldv_14923: ; return; } } __inline static void sigaddsetmask(sigset_t *set , unsigned long mask ) { { set->sig[0] = set->sig[0] | mask; return; } } __inline static void clear_tsk_thread_flag(struct task_struct *tsk , int flag ) { { clear_ti_thread_flag((struct thread_info *)tsk->stack, flag); return; } } __inline static int test_tsk_thread_flag(struct task_struct *tsk , int flag ) { int tmp ; { tmp = test_ti_thread_flag((struct thread_info *)tsk->stack, flag); return (tmp); } } __inline static int signal_pending(struct task_struct *p ) { int tmp ; long tmp___0 ; { tmp = test_tsk_thread_flag(p, 2); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); return ((int )tmp___0); } } extern void recalc_sigpending(void) ; struct timer_list *ldv_timer_list_2 ; struct timer_list *ldv_timer_list_1 ; void activate_pending_timer_1(struct timer_list *timer , unsigned long data , int pending_flag ) ; void choose_timer_1(struct timer_list *timer ) ; int reg_timer_1(struct timer_list *timer ) ; void choose_timer_2(struct timer_list *timer ) ; int reg_timer_2(struct timer_list *timer ) ; void activate_pending_timer_2(struct timer_list *timer , unsigned long data , int pending_flag ) ; void disable_suitable_timer_2(struct timer_list *timer ) ; void disable_suitable_timer_1(struct timer_list *timer ) ; int libcfs_arch_init(void) ; void libcfs_arch_cleanup(void) ; void cfs_enter_debugger(void) ; sigset_t cfs_block_allsigs(void) ; sigset_t cfs_block_sigs(unsigned long sigs ) ; sigset_t cfs_block_sigsinv(unsigned long sigs ) ; void cfs_restore_sigs(sigset_t old ) ; int cfs_signal_pending(void) ; void cfs_clear_sigpending(void) ; void add_wait_queue_exclusive_head(wait_queue_head_t *waitq , wait_queue_t *link ) ; void cfs_init_timer(struct timer_list *t ) ; void cfs_timer_init(struct timer_list *t , cfs_timer_func_t *func , void *arg ) ; void cfs_timer_done(struct timer_list *t ) ; void cfs_timer_arm(struct timer_list *t , unsigned long deadline ) ; void cfs_timer_disarm(struct timer_list *t ) ; int cfs_timer_is_armed(struct timer_list *t ) ; unsigned long cfs_timer_deadline(struct timer_list *t ) ; void add_wait_queue_exclusive_head(wait_queue_head_t *waitq , wait_queue_t *link ) { unsigned long flags ; raw_spinlock_t *tmp ; { tmp = spinlock_check(& waitq->lock); flags = _raw_spin_lock_irqsave(tmp); __add_wait_queue_exclusive(waitq, link); spin_unlock_irqrestore(& waitq->lock, flags); return; } } static char const __kstrtab_add_wait_queue_exclusive_head[30U] = { 'a', 'd', 'd', '_', 'w', 'a', 'i', 't', '_', 'q', 'u', 'e', 'u', 'e', '_', 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', '_', 'h', 'e', 'a', 'd', '\000'}; struct kernel_symbol const __ksymtab_add_wait_queue_exclusive_head ; struct kernel_symbol const __ksymtab_add_wait_queue_exclusive_head = {(unsigned long )(& add_wait_queue_exclusive_head), (char const *)(& __kstrtab_add_wait_queue_exclusive_head)}; void cfs_init_timer(struct timer_list *t ) { { reg_timer_2(t); return; } } static char const __kstrtab_cfs_init_timer[15U] = { 'c', 'f', 's', '_', 'i', 'n', 'i', 't', '_', 't', 'i', 'm', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_init_timer ; struct kernel_symbol const __ksymtab_cfs_init_timer = {(unsigned long )(& cfs_init_timer), (char const *)(& __kstrtab_cfs_init_timer)}; void cfs_timer_init(struct timer_list *t , cfs_timer_func_t *func , void *arg ) { { reg_timer_2(t); t->function = func; t->data = (unsigned long )arg; return; } } static char const __kstrtab_cfs_timer_init[15U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'i', 'n', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_init ; struct kernel_symbol const __ksymtab_cfs_timer_init = {(unsigned long )(& cfs_timer_init), (char const *)(& __kstrtab_cfs_timer_init)}; void cfs_timer_done(struct timer_list *t ) { { return; } } static char const __kstrtab_cfs_timer_done[15U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'd', 'o', 'n', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_done ; struct kernel_symbol const __ksymtab_cfs_timer_done = {(unsigned long )(& cfs_timer_done), (char const *)(& __kstrtab_cfs_timer_done)}; void cfs_timer_arm(struct timer_list *t , unsigned long deadline ) { { ldv_mod_timer_48(t, deadline); return; } } static char const __kstrtab_cfs_timer_arm[14U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'a', 'r', 'm', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_arm ; struct kernel_symbol const __ksymtab_cfs_timer_arm = {(unsigned long )(& cfs_timer_arm), (char const *)(& __kstrtab_cfs_timer_arm)}; void cfs_timer_disarm(struct timer_list *t ) { { ldv_del_timer_49(t); return; } } static char const __kstrtab_cfs_timer_disarm[17U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'd', 'i', 's', 'a', 'r', 'm', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_disarm ; struct kernel_symbol const __ksymtab_cfs_timer_disarm = {(unsigned long )(& cfs_timer_disarm), (char const *)(& __kstrtab_cfs_timer_disarm)}; int cfs_timer_is_armed(struct timer_list *t ) { int tmp ; { tmp = timer_pending((struct timer_list const *)t); return (tmp); } } static char const __kstrtab_cfs_timer_is_armed[19U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'i', 's', '_', 'a', 'r', 'm', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_is_armed ; struct kernel_symbol const __ksymtab_cfs_timer_is_armed = {(unsigned long )(& cfs_timer_is_armed), (char const *)(& __kstrtab_cfs_timer_is_armed)}; unsigned long cfs_timer_deadline(struct timer_list *t ) { { return (t->expires); } } static char const __kstrtab_cfs_timer_deadline[19U] = { 'c', 'f', 's', '_', 't', 'i', 'm', 'e', 'r', '_', 'd', 'e', 'a', 'd', 'l', 'i', 'n', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_timer_deadline ; struct kernel_symbol const __ksymtab_cfs_timer_deadline = {(unsigned long )(& cfs_timer_deadline), (char const *)(& __kstrtab_cfs_timer_deadline)}; void cfs_enter_debugger(void) { { return; } } static char const __kstrtab_cfs_enter_debugger[19U] = { 'c', 'f', 's', '_', 'e', 'n', 't', 'e', 'r', '_', 'd', 'e', 'b', 'u', 'g', 'g', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_enter_debugger ; struct kernel_symbol const __ksymtab_cfs_enter_debugger = {(unsigned long )(& cfs_enter_debugger), (char const *)(& __kstrtab_cfs_enter_debugger)}; sigset_t cfs_block_allsigs(void) { unsigned long flags ; sigset_t old ; struct task_struct *tmp ; raw_spinlock_t *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; { tmp = get_current(); tmp___0 = spinlock_check(& (tmp->sighand)->siglock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_current(); old = tmp___1->blocked; tmp___2 = get_current(); sigfillset(& tmp___2->blocked); recalc_sigpending(); tmp___3 = get_current(); spin_unlock_irqrestore(& (tmp___3->sighand)->siglock, flags); return (old); } } static char const __kstrtab_cfs_block_allsigs[18U] = { 'c', 'f', 's', '_', 'b', 'l', 'o', 'c', 'k', '_', 'a', 'l', 'l', 's', 'i', 'g', 's', '\000'}; struct kernel_symbol const __ksymtab_cfs_block_allsigs ; struct kernel_symbol const __ksymtab_cfs_block_allsigs = {(unsigned long )(& cfs_block_allsigs), (char const *)(& __kstrtab_cfs_block_allsigs)}; sigset_t cfs_block_sigs(unsigned long sigs ) { unsigned long flags ; sigset_t old ; struct task_struct *tmp ; raw_spinlock_t *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; { tmp = get_current(); tmp___0 = spinlock_check(& (tmp->sighand)->siglock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_current(); old = tmp___1->blocked; tmp___2 = get_current(); sigaddsetmask(& tmp___2->blocked, sigs); recalc_sigpending(); tmp___3 = get_current(); spin_unlock_irqrestore(& (tmp___3->sighand)->siglock, flags); return (old); } } static char const __kstrtab_cfs_block_sigs[15U] = { 'c', 'f', 's', '_', 'b', 'l', 'o', 'c', 'k', '_', 's', 'i', 'g', 's', '\000'}; struct kernel_symbol const __ksymtab_cfs_block_sigs ; struct kernel_symbol const __ksymtab_cfs_block_sigs = {(unsigned long )(& cfs_block_sigs), (char const *)(& __kstrtab_cfs_block_sigs)}; sigset_t cfs_block_sigsinv(unsigned long sigs ) { unsigned long flags ; sigset_t old ; struct task_struct *tmp ; raw_spinlock_t *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; { tmp = get_current(); tmp___0 = spinlock_check(& (tmp->sighand)->siglock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_current(); old = tmp___1->blocked; tmp___2 = get_current(); sigaddsetmask(& tmp___2->blocked, ~ sigs); recalc_sigpending(); tmp___3 = get_current(); spin_unlock_irqrestore(& (tmp___3->sighand)->siglock, flags); return (old); } } static char const __kstrtab_cfs_block_sigsinv[18U] = { 'c', 'f', 's', '_', 'b', 'l', 'o', 'c', 'k', '_', 's', 'i', 'g', 's', 'i', 'n', 'v', '\000'}; struct kernel_symbol const __ksymtab_cfs_block_sigsinv ; struct kernel_symbol const __ksymtab_cfs_block_sigsinv = {(unsigned long )(& cfs_block_sigsinv), (char const *)(& __kstrtab_cfs_block_sigsinv)}; void cfs_restore_sigs(sigset_t old ) { unsigned long flags ; struct task_struct *tmp ; raw_spinlock_t *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; { tmp = get_current(); tmp___0 = spinlock_check(& (tmp->sighand)->siglock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_current(); tmp___1->blocked = old; recalc_sigpending(); tmp___2 = get_current(); spin_unlock_irqrestore(& (tmp___2->sighand)->siglock, flags); return; } } static char const __kstrtab_cfs_restore_sigs[17U] = { 'c', 'f', 's', '_', 'r', 'e', 's', 't', 'o', 'r', 'e', '_', 's', 'i', 'g', 's', '\000'}; struct kernel_symbol const __ksymtab_cfs_restore_sigs ; struct kernel_symbol const __ksymtab_cfs_restore_sigs = {(unsigned long )(& cfs_restore_sigs), (char const *)(& __kstrtab_cfs_restore_sigs)}; int cfs_signal_pending(void) { struct task_struct *tmp ; int tmp___0 ; { tmp = get_current(); tmp___0 = signal_pending(tmp); return (tmp___0); } } static char const __kstrtab_cfs_signal_pending[19U] = { 'c', 'f', 's', '_', 's', 'i', 'g', 'n', 'a', 'l', '_', 'p', 'e', 'n', 'd', 'i', 'n', 'g', '\000'}; struct kernel_symbol const __ksymtab_cfs_signal_pending ; struct kernel_symbol const __ksymtab_cfs_signal_pending = {(unsigned long )(& cfs_signal_pending), (char const *)(& __kstrtab_cfs_signal_pending)}; void cfs_clear_sigpending(void) { unsigned long flags ; struct task_struct *tmp ; raw_spinlock_t *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; { tmp = get_current(); tmp___0 = spinlock_check(& (tmp->sighand)->siglock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_current(); clear_tsk_thread_flag(tmp___1, 2); tmp___2 = get_current(); spin_unlock_irqrestore(& (tmp___2->sighand)->siglock, flags); return; } } static char const __kstrtab_cfs_clear_sigpending[21U] = { 'c', 'f', 's', '_', 'c', 'l', 'e', 'a', 'r', '_', 's', 'i', 'g', 'p', 'e', 'n', 'd', 'i', 'n', 'g', '\000'}; struct kernel_symbol const __ksymtab_cfs_clear_sigpending ; struct kernel_symbol const __ksymtab_cfs_clear_sigpending = {(unsigned long )(& cfs_clear_sigpending), (char const *)(& __kstrtab_cfs_clear_sigpending)}; int libcfs_arch_init(void) { { return (0); } } static char const __kstrtab_libcfs_arch_init[17U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'a', 'r', 'c', 'h', '_', 'i', 'n', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_arch_init ; struct kernel_symbol const __ksymtab_libcfs_arch_init = {(unsigned long )(& libcfs_arch_init), (char const *)(& __kstrtab_libcfs_arch_init)}; void libcfs_arch_cleanup(void) { { return; } } static char const __kstrtab_libcfs_arch_cleanup[20U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'a', 'r', 'c', 'h', '_', 'c', 'l', 'e', 'a', 'n', 'u', 'p', '\000'}; struct kernel_symbol const __ksymtab_libcfs_arch_cleanup ; struct kernel_symbol const __ksymtab_libcfs_arch_cleanup = {(unsigned long )(& libcfs_arch_cleanup), (char const *)(& __kstrtab_libcfs_arch_cleanup)}; void activate_pending_timer_1(struct timer_list *timer , unsigned long data , int pending_flag ) { { if ((unsigned long )ldv_timer_list_1 == (unsigned long )timer) { if (ldv_timer_state_1 == 2 || pending_flag != 0) { ldv_timer_list_1 = timer; ldv_timer_list_1->data = data; ldv_timer_state_1 = 1; } else { } return; } else { } reg_timer_1(timer); ldv_timer_list_1->data = data; return; } } void choose_timer_1(struct timer_list *timer ) { { if (ldv_timer_state_1 != 1) { return; } LDV_IN_INTERRUPT = 2; (*(timer->function))(timer->data); LDV_IN_INTERRUPT = 1; ldv_timer_state_1 = 2; return; } } int reg_timer_1(struct timer_list *timer ) { { ldv_timer_list_1 = timer; ldv_timer_state_1 = 1; return (0); } } void choose_timer_2(struct timer_list *timer ) { { if (ldv_timer_state_2 != 1) { return; } LDV_IN_INTERRUPT = 2; (*(timer->function))(timer->data); LDV_IN_INTERRUPT = 1; ldv_timer_state_2 = 2; return; } } int reg_timer_2(struct timer_list *timer ) { { ldv_timer_list_2 = timer; ldv_timer_state_2 = 1; return (0); } } void activate_pending_timer_2(struct timer_list *timer , unsigned long data , int pending_flag ) { { if ((unsigned long )ldv_timer_list_2 == (unsigned long )timer) { if (ldv_timer_state_2 == 2 || pending_flag != 0) { ldv_timer_list_2 = timer; ldv_timer_list_2->data = data; ldv_timer_state_2 = 1; } else { } return; } else { } reg_timer_2(timer); ldv_timer_list_2->data = data; return; } } void disable_suitable_timer_2(struct timer_list *timer ) { { if ((unsigned long )timer == (unsigned long )ldv_timer_list_2) { ldv_timer_state_2 = 0; return; } else { } return; } } void disable_suitable_timer_1(struct timer_list *timer ) { { if ((unsigned long )timer == (unsigned long )ldv_timer_list_1) { ldv_timer_state_1 = 0; return; } else { } return; } } void ldv_mutex_lock_41(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_42(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_43(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_44(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_45(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_46(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_47(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_mod_timer_48(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; activate_pending_timer_2(ldv_func_arg1, ldv_func_arg2, 1); return (ldv_func_res); } } int ldv_del_timer_49(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; { tmp = del_timer(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_2(ldv_func_arg1); return (ldv_func_res); } } void *__builtin_return_address(unsigned int ) ; __inline static long ldv__builtin_expect(long exp , long c ) ; extern struct pv_irq_ops pv_irq_ops ; __inline static void set_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr): "memory"); return; } } extern unsigned long find_next_bit(unsigned long const * , unsigned long , unsigned long ) ; extern unsigned long find_first_bit(unsigned long const * , unsigned long ) ; extern int sscanf(char const * , char const * , ...) ; extern unsigned long __per_cpu_offset[8192U] ; extern void *memcpy(void * , void const * , size_t ) ; extern char *strchr(char const * , int ) ; extern int __bitmap_and(unsigned long * , unsigned long const * , unsigned long const * , unsigned int ) ; __inline static void bitmap_copy(unsigned long *dst , unsigned long const *src , unsigned int nbits ) { unsigned int len ; { len = (unsigned int )(((unsigned long )nbits + 63UL) / 64UL) * 8U; memcpy((void *)dst, (void const *)src, (size_t )len); return; } } __inline static int bitmap_and(unsigned long *dst , unsigned long const *src1 , unsigned long const *src2 , unsigned int nbits ) { int tmp___0 ; { tmp___0 = __bitmap_and(dst, src1, src2, nbits); return (tmp___0); } } __inline static int bitmap_empty(unsigned long const *src , unsigned int nbits ) { unsigned long tmp ; { tmp = find_first_bit(src, (unsigned long )nbits); return (tmp == (unsigned long )nbits); } } extern void warn_slowpath_null(char const * , int const ) ; extern struct cpumask const * const cpu_online_mask ; __inline static unsigned int cpumask_check(unsigned int cpu ) { bool __warned ; int __ret_warn_once ; int __ret_warn_on ; long tmp ; long tmp___0 ; long tmp___1 ; { __ret_warn_once = (unsigned int )nr_cpu_ids <= cpu; tmp___1 = ldv__builtin_expect(__ret_warn_once != 0, 0L); if (tmp___1 != 0L) { __ret_warn_on = ! __warned; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp != 0L) { warn_slowpath_null("include/linux/cpumask.h", 117); } else { } tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { __warned = 1; } else { } } else { } ldv__builtin_expect(__ret_warn_once != 0, 0L); return (cpu); } } __inline static unsigned int cpumask_first(struct cpumask const *srcp ) { unsigned long tmp ; { tmp = find_first_bit((unsigned long const *)(& srcp->bits), (unsigned long )nr_cpu_ids); return ((unsigned int )tmp); } } __inline static unsigned int cpumask_next(int n , struct cpumask const *srcp ) { unsigned long tmp ; { if (n != -1) { cpumask_check((unsigned int )n); } else { } tmp = find_next_bit((unsigned long const *)(& srcp->bits), (unsigned long )nr_cpu_ids, (unsigned long )(n + 1)); return ((unsigned int )tmp); } } extern int cpumask_next_and(int , struct cpumask const * , struct cpumask const * ) ; __inline static void cpumask_set_cpu(unsigned int cpu , struct cpumask *dstp ) { unsigned int tmp ; { tmp = cpumask_check(cpu); set_bit((long )tmp, (unsigned long volatile *)(& dstp->bits)); return; } } __inline static void cpumask_clear_cpu(int cpu , struct cpumask *dstp ) { unsigned int tmp ; { tmp = cpumask_check((unsigned int )cpu); clear_bit((long )tmp, (unsigned long volatile *)(& dstp->bits)); return; } } __inline static int cpumask_test_cpu(int cpu , struct cpumask const *cpumask ) { unsigned int tmp ; int tmp___0 ; { tmp = cpumask_check((unsigned int )cpu); tmp___0 = variable_test_bit((long )tmp, (unsigned long const volatile *)(& cpumask->bits)); return (tmp___0); } } __inline static int cpumask_and(struct cpumask *dstp , struct cpumask const *src1p , struct cpumask const *src2p ) { int tmp ; { tmp = bitmap_and((unsigned long *)(& dstp->bits), (unsigned long const *)(& src1p->bits), (unsigned long const *)(& src2p->bits), (unsigned int )nr_cpu_ids); return (tmp); } } __inline static bool cpumask_empty(struct cpumask const *srcp ) { int tmp ; { tmp = bitmap_empty((unsigned long const *)(& srcp->bits), (unsigned int )nr_cpu_ids); return (tmp != 0); } } __inline static void cpumask_copy(struct cpumask *dstp , struct cpumask const *srcp ) { { bitmap_copy((unsigned long *)(& dstp->bits), (unsigned long const *)(& srcp->bits), (unsigned int )nr_cpu_ids); return; } } __inline static size_t cpumask_size(void) { { return ((((unsigned long )nr_cpu_ids + 63UL) / 64UL) * 8UL); } } __inline static unsigned long arch_local_save_flags(void) { unsigned long __ret ; unsigned long __edi ; unsigned long __esi ; unsigned long __edx ; unsigned long __ecx ; unsigned long __eax ; long tmp ; { __edi = __edi; __esi = __esi; __edx = __edx; __ecx = __ecx; __eax = __eax; tmp = ldv__builtin_expect((unsigned long )pv_irq_ops.save_fl.func == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"./arch/x86/include/asm/paravirt.h"), "i" (831), "i" (12UL)); ldv_4801: ; goto ldv_4801; } else { } __asm__ volatile ("771:\n\tcall *%c2;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c1\n .byte 772b-771b\n .short %c3\n.popsection\n": "=a" (__eax): [paravirt_typenum] "i" (43UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } __inline static void arch_local_irq_restore(unsigned long f ) { unsigned long __edi ; unsigned long __esi ; unsigned long __edx ; unsigned long __ecx ; unsigned long __eax ; long tmp ; { __edi = __edi; __esi = __esi; __edx = __edx; __ecx = __ecx; __eax = __eax; tmp = ldv__builtin_expect((unsigned long )pv_irq_ops.restore_fl.func == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"./arch/x86/include/asm/paravirt.h"), "i" (836), "i" (12UL)); ldv_4811: ; goto ldv_4811; } else { } __asm__ volatile ("771:\n\tcall *%c2;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c1\n .byte 772b-771b\n .short %c3\n.popsection\n": "=a" (__eax): [paravirt_typenum] "i" (44UL), [paravirt_opptr] "i" (& pv_irq_ops.restore_fl.func), [paravirt_clobber] "i" (1), "D" (f): "memory", "cc"); return; } } __inline static void arch_local_irq_disable(void) { unsigned long __edi ; unsigned long __esi ; unsigned long __edx ; unsigned long __ecx ; unsigned long __eax ; long tmp ; { __edi = __edi; __esi = __esi; __edx = __edx; __ecx = __ecx; __eax = __eax; tmp = ldv__builtin_expect((unsigned long )pv_irq_ops.irq_disable.func == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"./arch/x86/include/asm/paravirt.h"), "i" (841), "i" (12UL)); ldv_4820: ; goto ldv_4820; } else { } __asm__ volatile ("771:\n\tcall *%c2;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c1\n .byte 772b-771b\n .short %c3\n.popsection\n": "=a" (__eax): [paravirt_typenum] "i" (45UL), [paravirt_opptr] "i" (& pv_irq_ops.irq_disable.func), [paravirt_clobber] "i" (1): "memory", "cc"); return; } } __inline static unsigned long arch_local_irq_save(void) { unsigned long f ; { f = arch_local_save_flags(); arch_local_irq_disable(); return (f); } } __inline static int arch_irqs_disabled_flags(unsigned long flags ) { { return ((flags & 512UL) == 0UL); } } extern void trace_hardirqs_on(void) ; extern void trace_hardirqs_off(void) ; __inline static int atomic_read(atomic_t const *v ) { int __var ; { __var = 0; return ((int )*((int const volatile *)(& v->counter))); } } __inline static void atomic_add(int i , atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; addl %1,%0": "+m" (v->counter): "ir" (i)); return; } } __inline static void atomic_sub(int i , atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; subl %1,%0": "+m" (v->counter): "ir" (i)); return; } } extern void lock_acquire(struct lockdep_map * , unsigned int , int , int , int , struct lockdep_map * , unsigned long ) ; extern void lock_release(struct lockdep_map * , int , unsigned long ) ; extern void __mutex_init(struct mutex * , char const * , struct lock_class_key * ) ; int ldv_mutex_trylock_66(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_64(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_67(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_68(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_71(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_73(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_75(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_63(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_65(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_69(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_70(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_72(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_74(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) ; void ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) ; __inline static int preempt_count___1(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6562; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6562; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6562; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6562; default: __bad_percpu_size(); } ldv_6562: ; return (pfo_ret__ & 2147483647); } } __inline static void raw_write_seqcount_begin(seqcount_t *s ) { { s->sequence = s->sequence + 1U; __asm__ volatile ("": : : "memory"); return; } } __inline static void raw_write_seqcount_end(seqcount_t *s ) { { __asm__ volatile ("": : : "memory"); s->sequence = s->sequence + 1U; return; } } __inline static void write_seqcount_begin_nested(seqcount_t *s , int subclass ) { void *tmp ; { raw_write_seqcount_begin(s); tmp = __builtin_return_address(0U); lock_acquire(& s->dep_map, (unsigned int )subclass, 0, 0, 1, (struct lockdep_map *)0, (unsigned long )tmp); return; } } __inline static void write_seqcount_begin(seqcount_t *s ) { { write_seqcount_begin_nested(s, 0); return; } } __inline static void write_seqcount_end(seqcount_t *s ) { void *tmp ; { tmp = __builtin_return_address(0U); lock_release(& s->dep_map, 1, (unsigned long )tmp); raw_write_seqcount_end(s); return; } } __inline static void __node_set(int node , nodemask_t volatile *dstp ) { { set_bit((long )node, (unsigned long volatile *)(& dstp->bits)); return; } } __inline static void __node_clear(int node , nodemask_t volatile *dstp ) { { clear_bit((long )node, (unsigned long volatile *)(& dstp->bits)); return; } } __inline static int __nodes_weight(nodemask_t const *srcp , unsigned int nbits ) { int tmp ; { tmp = bitmap_weight((unsigned long const *)(& srcp->bits), nbits); return (tmp); } } __inline static int __first_node(nodemask_t const *srcp ) { int __min1 ; int __min2 ; unsigned long tmp ; { __min1 = 1024; tmp = find_first_bit((unsigned long const *)(& srcp->bits), 1024UL); __min2 = (int )tmp; return (__min1 < __min2 ? __min1 : __min2); } } __inline static int __next_node(int n , nodemask_t const *srcp ) { int __min1 ; int __min2 ; unsigned long tmp ; { __min1 = 1024; tmp = find_next_bit((unsigned long const *)(& srcp->bits), 1024UL, (unsigned long )(n + 1)); __min2 = (int )tmp; return (__min1 < __min2 ? __min1 : __min2); } } extern nodemask_t node_states[5U] ; __inline static int num_node_state(enum node_states state ) { int tmp ; { tmp = __nodes_weight((nodemask_t const *)(& node_states) + (unsigned long )state, 1024U); return (tmp); } } extern int __cpu_to_node(int ) ; extern struct cpumask const *cpumask_of_node(int ) ; extern cpumask_var_t cpu_sibling_map ; extern cpumask_var_t cpu_core_map ; extern int set_cpus_allowed_ptr(struct task_struct * , struct cpumask const * ) ; __inline static void task_lock(struct task_struct *p ) { { spin_lock(& p->alloc_lock); return; } } __inline static void task_unlock(struct task_struct *p ) { { spin_unlock(& p->alloc_lock); return; } } int ldv_state_variable_6 ; extern int register_cpu_notifier(struct notifier_block * ) ; extern void unregister_cpu_notifier(struct notifier_block * ) ; extern void *vmalloc(unsigned long ) ; extern void vfree(void const * ) ; __inline static void set_mems_allowed(nodemask_t nodemask ) { unsigned long flags ; struct task_struct *tmp ; struct task_struct *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; int tmp___3 ; struct task_struct *tmp___4 ; { tmp = get_current(); task_lock(tmp); flags = arch_local_irq_save(); trace_hardirqs_off(); tmp___0 = get_current(); write_seqcount_begin(& tmp___0->mems_allowed_seq); tmp___1 = get_current(); tmp___1->mems_allowed = nodemask; tmp___2 = get_current(); write_seqcount_end(& tmp___2->mems_allowed_seq); tmp___3 = arch_irqs_disabled_flags(flags); if (tmp___3 != 0) { arch_local_irq_restore(flags); trace_hardirqs_off(); } else { trace_hardirqs_on(); arch_local_irq_restore(flags); } tmp___4 = get_current(); task_unlock(tmp___4); return; } } cpumask_t *cfs_cpt_cpumask(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpt_table_print(struct cfs_cpt_table *cptab , char *buf , int len ) ; struct cfs_cpt_table *cfs_cpt_table ; void cfs_cpt_table_free(struct cfs_cpt_table *cptab ) ; struct cfs_cpt_table *cfs_cpt_table_alloc(unsigned int ncpt ) ; int cfs_cpt_number(struct cfs_cpt_table *cptab ) ; int cfs_cpt_weight(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpt_online(struct cfs_cpt_table *cptab , int cpt ) ; nodemask_t *cfs_cpt_nodemask(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpt_current(struct cfs_cpt_table *cptab , int remap ) ; int cfs_cpt_of_cpu(struct cfs_cpt_table *cptab , int cpu ) ; int cfs_cpt_bind(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpt_set_cpu(struct cfs_cpt_table *cptab , int cpt , int cpu ) ; void cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab , int cpt , int cpu ) ; int cfs_cpt_set_cpumask(struct cfs_cpt_table *cptab , int cpt , cpumask_t *mask ) ; void cfs_cpt_unset_cpumask(struct cfs_cpt_table *cptab , int cpt , cpumask_t *mask ) ; int cfs_cpt_set_node(struct cfs_cpt_table *cptab , int cpt , int node ) ; void cfs_cpt_unset_node(struct cfs_cpt_table *cptab , int cpt , int node ) ; int cfs_cpt_set_nodemask(struct cfs_cpt_table *cptab , int cpt , nodemask_t *mask ) ; void cfs_cpt_unset_nodemask(struct cfs_cpt_table *cptab , int cpt , nodemask_t *mask ) ; void cfs_cpt_clear(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpt_spread_node(struct cfs_cpt_table *cptab , int cpt ) ; int cfs_cpu_init(void) ; void cfs_cpu_fini(void) ; atomic_t libcfs_kmemory ; char *cfs_trimwhite(char *str ) ; void cfs_expr_list_free(struct cfs_expr_list *expr_list ) ; int cfs_expr_list_parse(char *str , int len , unsigned int min , unsigned int max , struct cfs_expr_list **elpp ) ; static int cpu_npartitions ; static char *cpu_pattern = (char *)""; static struct cfs_cpt_data cpt_data ; static void cfs_cpu_core_siblings(int cpu , cpumask_t *mask ) { void const *__vpp_verify ; unsigned long __ptr ; { __vpp_verify = (void const *)0; __asm__ ("": "=r" (__ptr): "0" (& cpu_core_map)); cpumask_copy(mask, (struct cpumask const *)*((cpumask_var_t **)(__per_cpu_offset[cpu] + __ptr))); return; } } static void cfs_cpu_ht_siblings(int cpu , cpumask_t *mask ) { void const *__vpp_verify ; unsigned long __ptr ; { __vpp_verify = (void const *)0; __asm__ ("": "=r" (__ptr): "0" (& cpu_sibling_map)); cpumask_copy(mask, (struct cpumask const *)*((cpumask_var_t **)(__per_cpu_offset[cpu] + __ptr))); return; } } static void cfs_node_to_cpumask(int node , cpumask_t *mask ) { struct cpumask const *tmp ; { tmp = cpumask_of_node(node); cpumask_copy(mask, tmp); return; } } void cfs_cpt_table_free(struct cfs_cpt_table *cptab ) { int i ; int s ; unsigned int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; long tmp___4 ; struct cfs_cpu_partition *part ; int s___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; int s___1 ; size_t tmp___10 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___11 ; long tmp___12 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___13 ; int tmp___14 ; long tmp___15 ; int s___2 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___16 ; long tmp___17 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___18 ; int tmp___19 ; long tmp___20 ; int s___3 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___21 ; long tmp___22 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___23 ; int tmp___24 ; long tmp___25 ; int s___4 ; size_t tmp___26 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___27 ; long tmp___28 ; struct libcfs_debug_msg_data msgdata___10 ; int tmp___29 ; int tmp___30 ; long tmp___31 ; int s___5 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___11 ; int tmp___32 ; long tmp___33 ; struct libcfs_debug_msg_data msgdata___12 ; int tmp___34 ; int tmp___35 ; long tmp___36 ; { if ((unsigned long )cptab->ctb_cpu2cpt != (unsigned long )((int *)0)) { tmp = cpumask_weight(cpu_possible_mask); s = (int )(tmp * 4U); tmp___1 = ldv__builtin_expect((unsigned long )cptab->ctb_cpu2cpt == (unsigned long )((int *)0), 0L); if (tmp___1 != 0L) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_table_free"; msgdata.msg_line = 106; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'cptab->ctb_cpu2cpt\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 106); } else { } goto ldv_50146; } else { } atomic_sub(s, & libcfs_kmemory); tmp___3 = cfs_cdebug_show(16U, 1024U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_table_free"; msgdata___0.msg_line = 106; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___2 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'cptab->ctb_cpu2cpt\': %d at %p (tot %d).\n", s, cptab->ctb_cpu2cpt, tmp___2); } else { } tmp___4 = ldv__builtin_expect(s > 8192, 0L); if (tmp___4 != 0L) { vfree((void const *)cptab->ctb_cpu2cpt); } else { kfree((void const *)cptab->ctb_cpu2cpt); } ldv_50146: ; } else { } i = 0; goto ldv_50160; ldv_50159: part = cptab->ctb_parts + (unsigned long )i; if ((unsigned long )part->cpt_nodemask != (unsigned long )((nodemask_t *)0)) { s___0 = 128; tmp___6 = ldv__builtin_expect((unsigned long )part->cpt_nodemask == (unsigned long )((nodemask_t *)0), 0L); if (tmp___6 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_table_free"; msgdata___1.msg_line = 114; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'part->cpt_nodemask\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 114); } else { } goto ldv_50152; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___8 = cfs_cdebug_show(16U, 1024U); if (tmp___8 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpt_table_free"; msgdata___2.msg_line = 114; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___7 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'part->cpt_nodemask\': %d at %p (tot %d).\n", s___0, part->cpt_nodemask, tmp___7); } else { } tmp___9 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___9 != 0L) { vfree((void const *)part->cpt_nodemask); } else { kfree((void const *)part->cpt_nodemask); } ldv_50152: ; } else { } if ((unsigned long )part->cpt_cpumask != (unsigned long )((cpumask_t *)0)) { tmp___10 = cpumask_size(); s___1 = (int )tmp___10; tmp___12 = ldv__builtin_expect((unsigned long )part->cpt_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___12 != 0L) { tmp___11 = cfs_cdebug_show(131072U, 1024U); if (tmp___11 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpt_table_free"; msgdata___3.msg_line = 118; msgdata___3.msg_cdls = & cdls___1; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "LIBCFS: free NULL \'part->cpt_cpumask\' (%d bytes) at %s:%d\n", s___1, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 118); } else { } goto ldv_50157; } else { } atomic_sub(s___1, & libcfs_kmemory); tmp___14 = cfs_cdebug_show(16U, 1024U); if (tmp___14 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpt_table_free"; msgdata___4.msg_line = 118; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___13 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___4, "kfreed \'part->cpt_cpumask\': %d at %p (tot %d).\n", s___1, part->cpt_cpumask, tmp___13); } else { } tmp___15 = ldv__builtin_expect(s___1 > 8192, 0L); if (tmp___15 != 0L) { vfree((void const *)part->cpt_cpumask); } else { kfree((void const *)part->cpt_cpumask); } ldv_50157: ; } else { } i = i + 1; ldv_50160: ; if ((unsigned long )cptab->ctb_parts != (unsigned long )((struct cfs_cpu_partition *)0) && (unsigned int )i < cptab->ctb_nparts) { goto ldv_50159; } else { } if ((unsigned long )cptab->ctb_parts != (unsigned long )((struct cfs_cpu_partition *)0)) { s___2 = (int )(cptab->ctb_nparts * 24U); tmp___17 = ldv__builtin_expect((unsigned long )cptab->ctb_parts == (unsigned long )((struct cfs_cpu_partition *)0), 0L); if (tmp___17 != 0L) { tmp___16 = cfs_cdebug_show(131072U, 1024U); if (tmp___16 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpt_table_free"; msgdata___5.msg_line = 123; msgdata___5.msg_cdls = & cdls___2; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "LIBCFS: free NULL \'cptab->ctb_parts\' (%d bytes) at %s:%d\n", s___2, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 123); } else { } goto ldv_50165; } else { } atomic_sub(s___2, & libcfs_kmemory); tmp___19 = cfs_cdebug_show(16U, 1024U); if (tmp___19 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpt_table_free"; msgdata___6.msg_line = 123; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 16; tmp___18 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___6, "kfreed \'cptab->ctb_parts\': %d at %p (tot %d).\n", s___2, cptab->ctb_parts, tmp___18); } else { } tmp___20 = ldv__builtin_expect(s___2 > 8192, 0L); if (tmp___20 != 0L) { vfree((void const *)cptab->ctb_parts); } else { kfree((void const *)cptab->ctb_parts); } ldv_50165: ; } else { } if ((unsigned long )cptab->ctb_nodemask != (unsigned long )((nodemask_t *)0)) { s___3 = 128; tmp___22 = ldv__builtin_expect((unsigned long )cptab->ctb_nodemask == (unsigned long )((nodemask_t *)0), 0L); if (tmp___22 != 0L) { tmp___21 = cfs_cdebug_show(131072U, 1024U); if (tmp___21 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___7.msg_fn = "cfs_cpt_table_free"; msgdata___7.msg_line = 127; msgdata___7.msg_cdls = & cdls___3; msgdata___7.msg_mask = 131072; libcfs_debug_msg(& msgdata___7, "LIBCFS: free NULL \'cptab->ctb_nodemask\' (%d bytes) at %s:%d\n", s___3, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 127); } else { } goto ldv_50170; } else { } atomic_sub(s___3, & libcfs_kmemory); tmp___24 = cfs_cdebug_show(16U, 1024U); if (tmp___24 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___8.msg_fn = "cfs_cpt_table_free"; msgdata___8.msg_line = 127; msgdata___8.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___8.msg_mask = 16; tmp___23 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___8, "kfreed \'cptab->ctb_nodemask\': %d at %p (tot %d).\n", s___3, cptab->ctb_nodemask, tmp___23); } else { } tmp___25 = ldv__builtin_expect(s___3 > 8192, 0L); if (tmp___25 != 0L) { vfree((void const *)cptab->ctb_nodemask); } else { kfree((void const *)cptab->ctb_nodemask); } ldv_50170: ; } else { } if ((unsigned long )cptab->ctb_cpumask != (unsigned long )((cpumask_t *)0)) { tmp___26 = cpumask_size(); s___4 = (int )tmp___26; tmp___28 = ldv__builtin_expect((unsigned long )cptab->ctb_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___28 != 0L) { tmp___27 = cfs_cdebug_show(131072U, 1024U); if (tmp___27 != 0) { msgdata___9.msg_subsys = 1024; msgdata___9.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___9.msg_fn = "cfs_cpt_table_free"; msgdata___9.msg_line = 129; msgdata___9.msg_cdls = & cdls___4; msgdata___9.msg_mask = 131072; libcfs_debug_msg(& msgdata___9, "LIBCFS: free NULL \'cptab->ctb_cpumask\' (%d bytes) at %s:%d\n", s___4, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 129); } else { } goto ldv_50175; } else { } atomic_sub(s___4, & libcfs_kmemory); tmp___30 = cfs_cdebug_show(16U, 1024U); if (tmp___30 != 0) { msgdata___10.msg_subsys = 1024; msgdata___10.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___10.msg_fn = "cfs_cpt_table_free"; msgdata___10.msg_line = 129; msgdata___10.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___10.msg_mask = 16; tmp___29 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___10, "kfreed \'cptab->ctb_cpumask\': %d at %p (tot %d).\n", s___4, cptab->ctb_cpumask, tmp___29); } else { } tmp___31 = ldv__builtin_expect(s___4 > 8192, 0L); if (tmp___31 != 0L) { vfree((void const *)cptab->ctb_cpumask); } else { kfree((void const *)cptab->ctb_cpumask); } ldv_50175: ; } else { } s___5 = 48; tmp___33 = ldv__builtin_expect((unsigned long )cptab == (unsigned long )((struct cfs_cpt_table *)0), 0L); if (tmp___33 != 0L) { tmp___32 = cfs_cdebug_show(131072U, 1024U); if (tmp___32 != 0) { msgdata___11.msg_subsys = 1024; msgdata___11.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___11.msg_fn = "cfs_cpt_table_free"; msgdata___11.msg_line = 131; msgdata___11.msg_cdls = & cdls___5; msgdata___11.msg_mask = 131072; libcfs_debug_msg(& msgdata___11, "LIBCFS: free NULL \'cptab\' (%d bytes) at %s:%d\n", s___5, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 131); } else { } goto ldv_50180; } else { } atomic_sub(s___5, & libcfs_kmemory); tmp___35 = cfs_cdebug_show(16U, 1024U); if (tmp___35 != 0) { msgdata___12.msg_subsys = 1024; msgdata___12.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___12.msg_fn = "cfs_cpt_table_free"; msgdata___12.msg_line = 131; msgdata___12.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___12.msg_mask = 16; tmp___34 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___12, "kfreed \'cptab\': %d at %p (tot %d).\n", s___5, cptab, tmp___34); } else { } tmp___36 = ldv__builtin_expect(s___5 > 8192, 0L); if (tmp___36 != 0L) { vfree((void const *)cptab); } else { kfree((void const *)cptab); } ldv_50180: ; return; } } static char const __kstrtab_cfs_cpt_table_free[19U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 't', 'a', 'b', 'l', 'e', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_table_free ; struct kernel_symbol const __ksymtab_cfs_cpt_table_free = {(unsigned long )(& cfs_cpt_table_free), (char const *)(& __kstrtab_cfs_cpt_table_free)}; struct cfs_cpt_table *cfs_cpt_table_alloc(unsigned int ncpt ) { struct cfs_cpt_table *cptab ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; size_t tmp___12 ; void *tmp___13 ; size_t tmp___14 ; void *tmp___15 ; void *tmp___16 ; size_t tmp___17 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; size_t tmp___18 ; int tmp___19 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___20 ; int tmp___21 ; size_t tmp___22 ; size_t tmp___23 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___24 ; size_t tmp___25 ; int tmp___26 ; long tmp___27 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___28 ; long tmp___29 ; void *tmp___30 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___31 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___32 ; int tmp___33 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___34 ; int tmp___35 ; long tmp___36 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___37 ; int tmp___38 ; long tmp___39 ; unsigned int tmp___41 ; void *tmp___42 ; unsigned int tmp___43 ; void *tmp___44 ; void *tmp___45 ; unsigned int tmp___46 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___8 ; unsigned int tmp___47 ; int tmp___48 ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___49 ; int tmp___50 ; unsigned int tmp___51 ; unsigned int tmp___52 ; struct libcfs_debug_msg_data msgdata___10 ; int tmp___53 ; unsigned int tmp___54 ; int tmp___55 ; long tmp___56 ; unsigned int tmp___57 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___58 ; long tmp___59 ; void *tmp___60 ; void *tmp___61 ; void *tmp___62 ; struct cfs_debug_limit_state cdls___7 ; struct libcfs_debug_msg_data msgdata___11 ; int tmp___63 ; struct cfs_debug_limit_state cdls___8 ; struct libcfs_debug_msg_data msgdata___12 ; int tmp___64 ; int tmp___65 ; struct libcfs_debug_msg_data msgdata___13 ; int tmp___66 ; int tmp___67 ; long tmp___68 ; struct cfs_cpu_partition *part ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___69 ; int tmp___70 ; long tmp___71 ; size_t tmp___73 ; void *tmp___74 ; size_t tmp___75 ; void *tmp___76 ; void *tmp___77 ; size_t tmp___78 ; struct cfs_debug_limit_state cdls___9 ; struct libcfs_debug_msg_data msgdata___14 ; size_t tmp___79 ; int tmp___80 ; struct cfs_debug_limit_state cdls___10 ; struct libcfs_debug_msg_data msgdata___15 ; int tmp___81 ; int tmp___82 ; size_t tmp___83 ; size_t tmp___84 ; struct libcfs_debug_msg_data msgdata___16 ; int tmp___85 ; size_t tmp___86 ; int tmp___87 ; long tmp___88 ; struct libcfs_debug_msg_data __msg_data___5 ; int tmp___89 ; long tmp___90 ; void *tmp___91 ; struct cfs_debug_limit_state cdls___11 ; struct libcfs_debug_msg_data msgdata___17 ; int tmp___92 ; struct cfs_debug_limit_state cdls___12 ; struct libcfs_debug_msg_data msgdata___18 ; int tmp___93 ; int tmp___94 ; struct libcfs_debug_msg_data msgdata___19 ; int tmp___95 ; int tmp___96 ; long tmp___97 ; { tmp = preempt_count___1(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_table_alloc"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 141; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*cptab))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(48UL, 80U); cptab = (struct cfs_cpt_table *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )cptab == (unsigned long )((struct cfs_cpt_table *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_table_alloc"; msgdata.msg_line = 141; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(cptab)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 141, 48); } else { } tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_table_alloc"; msgdata___0.msg_line = 141; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)cptab, 0, 48UL); atomic_add(48, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1024U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_table_alloc"; msgdata___1.msg_line = 141; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(cptab)\': %d at %p (tot %d).\n", 48, cptab, tmp___5); } else { } } if ((unsigned long )cptab == (unsigned long )((struct cfs_cpt_table *)0)) { return ((struct cfs_cpt_table *)0); } else { } cptab->ctb_nparts = ncpt; tmp___8 = preempt_count___1(); if (((unsigned long )tmp___8 & 2096896UL) != 0UL) { cpumask_size(); tmp___9 = 1; } else { tmp___9 = 0; } tmp___10 = ldv__builtin_expect((long )tmp___9, 0L); if (tmp___10 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpt_table_alloc"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 147; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___17 = cpumask_size(); if (tmp___17 <= 8192UL) { tmp___12 = cpumask_size(); tmp___13 = kmalloc(tmp___12, 80U); tmp___16 = tmp___13; } else { tmp___14 = cpumask_size(); tmp___15 = vmalloc(tmp___14); tmp___16 = tmp___15; } cptab->ctb_cpumask = (cpumask_t *)tmp___16; tmp___27 = ldv__builtin_expect((unsigned long )cptab->ctb_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___27 != 0L) { tmp___19 = cfs_cdebug_show(131072U, 1024U); if (tmp___19 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpt_table_alloc"; msgdata___2.msg_line = 147; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; tmp___18 = cpumask_size(); libcfs_debug_msg(& msgdata___2, "LNET: out of memory at %s:%d (tried to alloc \'(cptab->ctb_cpumask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 147, (int )tmp___18); } else { } tmp___21 = cfs_cdebug_show(131072U, 1024U); if (tmp___21 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpt_table_alloc"; msgdata___3.msg_line = 147; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___20 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "LNET: %d total bytes allocated by lnet\n", tmp___20); } else { } } else { tmp___22 = cpumask_size(); memset((void *)cptab->ctb_cpumask, 0, tmp___22); tmp___23 = cpumask_size(); atomic_add((int )tmp___23, & libcfs_kmemory); tmp___26 = cfs_cdebug_show(16U, 1024U); if (tmp___26 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpt_table_alloc"; msgdata___4.msg_line = 147; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___24 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___25 = cpumask_size(); libcfs_debug_msg(& msgdata___4, "alloc \'(cptab->ctb_cpumask)\': %d at %p (tot %d).\n", (int )tmp___25, cptab->ctb_cpumask, tmp___24); } else { } } tmp___28 = preempt_count___1(); tmp___29 = ldv__builtin_expect((long )(((unsigned long )tmp___28 & 2096896UL) != 0UL && 1), 0L); if (tmp___29 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___1.msg_fn = "cfs_cpt_table_alloc"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 148; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*cptab->ctb_nodemask))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___1); } else { } tmp___30 = kmalloc(128UL, 80U); cptab->ctb_nodemask = (nodemask_t *)tmp___30; tmp___36 = ldv__builtin_expect((unsigned long )cptab->ctb_nodemask == (unsigned long )((nodemask_t *)0), 0L); if (tmp___36 != 0L) { tmp___31 = cfs_cdebug_show(131072U, 1024U); if (tmp___31 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpt_table_alloc"; msgdata___5.msg_line = 148; msgdata___5.msg_cdls = & cdls___3; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "LNET: out of memory at %s:%d (tried to alloc \'(cptab->ctb_nodemask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 148, 128); } else { } tmp___33 = cfs_cdebug_show(131072U, 1024U); if (tmp___33 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpt_table_alloc"; msgdata___6.msg_line = 148; msgdata___6.msg_cdls = & cdls___4; msgdata___6.msg_mask = 131072; tmp___32 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___6, "LNET: %d total bytes allocated by lnet\n", tmp___32); } else { } } else { memset((void *)cptab->ctb_nodemask, 0, 128UL); atomic_add(128, & libcfs_kmemory); tmp___35 = cfs_cdebug_show(16U, 1024U); if (tmp___35 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___7.msg_fn = "cfs_cpt_table_alloc"; msgdata___7.msg_line = 148; msgdata___7.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___7.msg_mask = 16; tmp___34 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___7, "alloc \'(cptab->ctb_nodemask)\': %d at %p (tot %d).\n", 128, cptab->ctb_nodemask, tmp___34); } else { } } if ((unsigned long )cptab->ctb_cpumask == (unsigned long )((cpumask_t *)0) || (unsigned long )cptab->ctb_nodemask == (unsigned long )((nodemask_t *)0)) { goto failed; } else { } tmp___37 = preempt_count___1(); if (((unsigned long )tmp___37 & 2096896UL) != 0UL) { cpumask_weight(cpu_possible_mask); tmp___38 = 1; } else { tmp___38 = 0; } tmp___39 = ldv__builtin_expect((long )tmp___38, 0L); if (tmp___39 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___2.msg_fn = "cfs_cpt_table_alloc"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 154; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_weight(cpu_possible_mask) * sizeof(cptab->ctb_cpu2cpt[0]))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___2); } else { } tmp___46 = cpumask_weight(cpu_possible_mask); if ((unsigned long )tmp___46 * 4UL <= 8192UL) { tmp___41 = cpumask_weight(cpu_possible_mask); tmp___42 = kmalloc((unsigned long )tmp___41 * 4UL, 80U); tmp___45 = tmp___42; } else { tmp___43 = cpumask_weight(cpu_possible_mask); tmp___44 = vmalloc((unsigned long )tmp___43 * 4UL); tmp___45 = tmp___44; } cptab->ctb_cpu2cpt = (int *)tmp___45; tmp___56 = ldv__builtin_expect((unsigned long )cptab->ctb_cpu2cpt == (unsigned long )((int *)0), 0L); if (tmp___56 != 0L) { tmp___48 = cfs_cdebug_show(131072U, 1024U); if (tmp___48 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___8.msg_fn = "cfs_cpt_table_alloc"; msgdata___8.msg_line = 154; msgdata___8.msg_cdls = & cdls___5; msgdata___8.msg_mask = 131072; tmp___47 = cpumask_weight(cpu_possible_mask); libcfs_debug_msg(& msgdata___8, "LNET: out of memory at %s:%d (tried to alloc \'(cptab->ctb_cpu2cpt)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 154, (int )(tmp___47 * 4U)); } else { } tmp___50 = cfs_cdebug_show(131072U, 1024U); if (tmp___50 != 0) { msgdata___9.msg_subsys = 1024; msgdata___9.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___9.msg_fn = "cfs_cpt_table_alloc"; msgdata___9.msg_line = 154; msgdata___9.msg_cdls = & cdls___6; msgdata___9.msg_mask = 131072; tmp___49 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___9, "LNET: %d total bytes allocated by lnet\n", tmp___49); } else { } } else { tmp___51 = cpumask_weight(cpu_possible_mask); memset((void *)cptab->ctb_cpu2cpt, 0, (unsigned long )tmp___51 * 4UL); tmp___52 = cpumask_weight(cpu_possible_mask); atomic_add((int )(tmp___52 * 4U), & libcfs_kmemory); tmp___55 = cfs_cdebug_show(16U, 1024U); if (tmp___55 != 0) { msgdata___10.msg_subsys = 1024; msgdata___10.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___10.msg_fn = "cfs_cpt_table_alloc"; msgdata___10.msg_line = 154; msgdata___10.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___10.msg_mask = 16; tmp___53 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___54 = cpumask_weight(cpu_possible_mask); libcfs_debug_msg(& msgdata___10, "alloc \'(cptab->ctb_cpu2cpt)\': %d at %p (tot %d).\n", (int )(tmp___54 * 4U), cptab->ctb_cpu2cpt, tmp___53); } else { } } if ((unsigned long )cptab->ctb_cpu2cpt == (unsigned long )((int *)0)) { goto failed; } else { } tmp___57 = cpumask_weight(cpu_possible_mask); memset((void *)cptab->ctb_cpu2cpt, -1, (unsigned long )tmp___57 * 4UL); tmp___58 = preempt_count___1(); tmp___59 = ldv__builtin_expect((long )(((unsigned long )tmp___58 & 2096896UL) != 0UL && 1), 0L); if (tmp___59 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___3.msg_fn = "cfs_cpt_table_alloc"; __msg_data___3.msg_subsys = 1024; __msg_data___3.msg_line = 161; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((ncpt * sizeof(cptab->ctb_parts[0]))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___3); } else { } if ((unsigned long )ncpt * 24UL <= 8192UL) { tmp___60 = kmalloc((unsigned long )ncpt * 24UL, 80U); tmp___62 = tmp___60; } else { tmp___61 = vmalloc((unsigned long )ncpt * 24UL); tmp___62 = tmp___61; } cptab->ctb_parts = (struct cfs_cpu_partition *)tmp___62; tmp___68 = ldv__builtin_expect((unsigned long )cptab->ctb_parts == (unsigned long )((struct cfs_cpu_partition *)0), 0L); if (tmp___68 != 0L) { tmp___63 = cfs_cdebug_show(131072U, 1024U); if (tmp___63 != 0) { msgdata___11.msg_subsys = 1024; msgdata___11.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___11.msg_fn = "cfs_cpt_table_alloc"; msgdata___11.msg_line = 161; msgdata___11.msg_cdls = & cdls___7; msgdata___11.msg_mask = 131072; libcfs_debug_msg(& msgdata___11, "LNET: out of memory at %s:%d (tried to alloc \'(cptab->ctb_parts)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 161, (int )(ncpt * 24U)); } else { } tmp___65 = cfs_cdebug_show(131072U, 1024U); if (tmp___65 != 0) { msgdata___12.msg_subsys = 1024; msgdata___12.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___12.msg_fn = "cfs_cpt_table_alloc"; msgdata___12.msg_line = 161; msgdata___12.msg_cdls = & cdls___8; msgdata___12.msg_mask = 131072; tmp___64 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___12, "LNET: %d total bytes allocated by lnet\n", tmp___64); } else { } } else { memset((void *)cptab->ctb_parts, 0, (unsigned long )ncpt * 24UL); atomic_add((int )(ncpt * 24U), & libcfs_kmemory); tmp___67 = cfs_cdebug_show(16U, 1024U); if (tmp___67 != 0) { msgdata___13.msg_subsys = 1024; msgdata___13.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___13.msg_fn = "cfs_cpt_table_alloc"; msgdata___13.msg_line = 161; msgdata___13.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___13.msg_mask = 16; tmp___66 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___13, "alloc \'(cptab->ctb_parts)\': %d at %p (tot %d).\n", (int )(ncpt * 24U), cptab->ctb_parts, tmp___66); } else { } } if ((unsigned long )cptab->ctb_parts == (unsigned long )((struct cfs_cpu_partition *)0)) { goto failed; } else { } i = 0; goto ldv_50240; ldv_50239: part = cptab->ctb_parts + (unsigned long )i; tmp___69 = preempt_count___1(); if (((unsigned long )tmp___69 & 2096896UL) != 0UL) { cpumask_size(); tmp___70 = 1; } else { tmp___70 = 0; } tmp___71 = ldv__builtin_expect((long )tmp___70, 0L); if (tmp___71 != 0L) { __msg_data___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___4.msg_fn = "cfs_cpt_table_alloc"; __msg_data___4.msg_subsys = 1024; __msg_data___4.msg_line = 168; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___4); } else { } tmp___78 = cpumask_size(); if (tmp___78 <= 8192UL) { tmp___73 = cpumask_size(); tmp___74 = kmalloc(tmp___73, 80U); tmp___77 = tmp___74; } else { tmp___75 = cpumask_size(); tmp___76 = vmalloc(tmp___75); tmp___77 = tmp___76; } part->cpt_cpumask = (cpumask_t *)tmp___77; tmp___88 = ldv__builtin_expect((unsigned long )part->cpt_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___88 != 0L) { tmp___80 = cfs_cdebug_show(131072U, 1024U); if (tmp___80 != 0) { msgdata___14.msg_subsys = 1024; msgdata___14.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___14.msg_fn = "cfs_cpt_table_alloc"; msgdata___14.msg_line = 168; msgdata___14.msg_cdls = & cdls___9; msgdata___14.msg_mask = 131072; tmp___79 = cpumask_size(); libcfs_debug_msg(& msgdata___14, "LNET: out of memory at %s:%d (tried to alloc \'(part->cpt_cpumask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 168, (int )tmp___79); } else { } tmp___82 = cfs_cdebug_show(131072U, 1024U); if (tmp___82 != 0) { msgdata___15.msg_subsys = 1024; msgdata___15.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___15.msg_fn = "cfs_cpt_table_alloc"; msgdata___15.msg_line = 168; msgdata___15.msg_cdls = & cdls___10; msgdata___15.msg_mask = 131072; tmp___81 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___15, "LNET: %d total bytes allocated by lnet\n", tmp___81); } else { } } else { tmp___83 = cpumask_size(); memset((void *)part->cpt_cpumask, 0, tmp___83); tmp___84 = cpumask_size(); atomic_add((int )tmp___84, & libcfs_kmemory); tmp___87 = cfs_cdebug_show(16U, 1024U); if (tmp___87 != 0) { msgdata___16.msg_subsys = 1024; msgdata___16.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___16.msg_fn = "cfs_cpt_table_alloc"; msgdata___16.msg_line = 168; msgdata___16.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___16.msg_mask = 16; tmp___85 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___86 = cpumask_size(); libcfs_debug_msg(& msgdata___16, "alloc \'(part->cpt_cpumask)\': %d at %p (tot %d).\n", (int )tmp___86, part->cpt_cpumask, tmp___85); } else { } } tmp___89 = preempt_count___1(); tmp___90 = ldv__builtin_expect((long )(((unsigned long )tmp___89 & 2096896UL) != 0UL && 1), 0L); if (tmp___90 != 0L) { __msg_data___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___5.msg_fn = "cfs_cpt_table_alloc"; __msg_data___5.msg_subsys = 1024; __msg_data___5.msg_line = 169; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*part->cpt_nodemask))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___5); } else { } tmp___91 = kmalloc(128UL, 80U); part->cpt_nodemask = (nodemask_t *)tmp___91; tmp___97 = ldv__builtin_expect((unsigned long )part->cpt_nodemask == (unsigned long )((nodemask_t *)0), 0L); if (tmp___97 != 0L) { tmp___92 = cfs_cdebug_show(131072U, 1024U); if (tmp___92 != 0) { msgdata___17.msg_subsys = 1024; msgdata___17.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___17.msg_fn = "cfs_cpt_table_alloc"; msgdata___17.msg_line = 169; msgdata___17.msg_cdls = & cdls___11; msgdata___17.msg_mask = 131072; libcfs_debug_msg(& msgdata___17, "LNET: out of memory at %s:%d (tried to alloc \'(part->cpt_nodemask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 169, 128); } else { } tmp___94 = cfs_cdebug_show(131072U, 1024U); if (tmp___94 != 0) { msgdata___18.msg_subsys = 1024; msgdata___18.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___18.msg_fn = "cfs_cpt_table_alloc"; msgdata___18.msg_line = 169; msgdata___18.msg_cdls = & cdls___12; msgdata___18.msg_mask = 131072; tmp___93 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___18, "LNET: %d total bytes allocated by lnet\n", tmp___93); } else { } } else { memset((void *)part->cpt_nodemask, 0, 128UL); atomic_add(128, & libcfs_kmemory); tmp___96 = cfs_cdebug_show(16U, 1024U); if (tmp___96 != 0) { msgdata___19.msg_subsys = 1024; msgdata___19.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___19.msg_fn = "cfs_cpt_table_alloc"; msgdata___19.msg_line = 169; msgdata___19.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___19.msg_mask = 16; tmp___95 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___19, "alloc \'(part->cpt_nodemask)\': %d at %p (tot %d).\n", 128, part->cpt_nodemask, tmp___95); } else { } } if ((unsigned long )part->cpt_cpumask == (unsigned long )((cpumask_t *)0) || (unsigned long )part->cpt_nodemask == (unsigned long )((nodemask_t *)0)) { goto failed; } else { } i = i + 1; ldv_50240: ; if ((unsigned int )i < ncpt) { goto ldv_50239; } else { } spin_lock(& cpt_data.cpt_lock); cptab->ctb_version = (unsigned int )cpt_data.cpt_version; spin_unlock(& cpt_data.cpt_lock); return (cptab); failed: cfs_cpt_table_free(cptab); return ((struct cfs_cpt_table *)0); } } static char const __kstrtab_cfs_cpt_table_alloc[20U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 't', 'a', 'b', 'l', 'e', '_', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_table_alloc ; struct kernel_symbol const __ksymtab_cfs_cpt_table_alloc = {(unsigned long )(& cfs_cpt_table_alloc), (char const *)(& __kstrtab_cfs_cpt_table_alloc)}; int cfs_cpt_table_print(struct cfs_cpt_table *cptab , char *buf , int len ) { char *tmp ; int rc ; int i ; int j ; unsigned int tmp___0 ; { tmp = buf; rc = 0; i = 0; goto ldv_50263; ldv_50262: ; if (len > 0) { rc = snprintf(tmp, (size_t )len, "%d\t: ", i); len = len - rc; } else { } if (len <= 0) { rc = -27; goto out; } else { } tmp = tmp + (unsigned long )rc; j = -1; goto ldv_50260; ldv_50259: rc = snprintf(tmp, (size_t )len, "%d ", j); len = len - rc; if (len <= 0) { rc = -27; goto out; } else { } tmp = tmp + (unsigned long )rc; ldv_50260: tmp___0 = cpumask_next(j, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )i)->cpt_cpumask); j = (int )tmp___0; if (j < nr_cpu_ids) { goto ldv_50259; } else { } *tmp = 10; tmp = tmp + 1; len = len - 1; i = i + 1; ldv_50263: ; if ((unsigned int )i < cptab->ctb_nparts) { goto ldv_50262; } else { } out: ; if (rc < 0) { return (rc); } else { } return ((int )((unsigned int )((long )tmp) - (unsigned int )((long )buf))); } } static char const __kstrtab_cfs_cpt_table_print[20U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 't', 'a', 'b', 'l', 'e', '_', 'p', 'r', 'i', 'n', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_table_print ; struct kernel_symbol const __ksymtab_cfs_cpt_table_print = {(unsigned long )(& cfs_cpt_table_print), (char const *)(& __kstrtab_cfs_cpt_table_print)}; int cfs_cpt_number(struct cfs_cpt_table *cptab ) { { return ((int )cptab->ctb_nparts); } } static char const __kstrtab_cfs_cpt_number[15U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'n', 'u', 'm', 'b', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_number ; struct kernel_symbol const __ksymtab_cfs_cpt_number = {(unsigned long )(& cfs_cpt_number), (char const *)(& __kstrtab_cfs_cpt_number)}; int cfs_cpt_weight(struct cfs_cpt_table *cptab , int cpt ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; unsigned int tmp___0 ; unsigned int tmp___1 ; unsigned int tmp___2 ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_weight"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 240; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } if (cpt == -1) { tmp___0 = cpumask_weight((struct cpumask const *)cptab->ctb_cpumask); tmp___2 = tmp___0; } else { tmp___1 = cpumask_weight((struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); tmp___2 = tmp___1; } return ((int )tmp___2); } } static char const __kstrtab_cfs_cpt_weight[15U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'w', 'e', 'i', 'g', 'h', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_weight ; struct kernel_symbol const __ksymtab_cfs_cpt_weight = {(unsigned long )(& cfs_cpt_weight), (char const *)(& __kstrtab_cfs_cpt_weight)}; int cfs_cpt_online(struct cfs_cpt_table *cptab , int cpt ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_online"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 251; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } if (cpt == -1) { tmp___0 = cpumask_next_and(-1, (struct cpumask const *)cptab->ctb_cpumask, cpu_online_mask); tmp___2 = tmp___0 < nr_cpu_ids; } else { tmp___1 = cpumask_next_and(-1, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask, cpu_online_mask); tmp___2 = tmp___1 < nr_cpu_ids; } return (tmp___2); } } static char const __kstrtab_cfs_cpt_online[15U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'o', 'n', 'l', 'i', 'n', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_online ; struct kernel_symbol const __ksymtab_cfs_cpt_online = {(unsigned long )(& cfs_cpt_online), (char const *)(& __kstrtab_cfs_cpt_online)}; cpumask_t *cfs_cpt_cpumask(struct cfs_cpt_table *cptab , int cpt ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_cpumask"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 264; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } return (cpt == -1 ? cptab->ctb_cpumask : (cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); } } static char const __kstrtab_cfs_cpt_cpumask[16U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'c', 'p', 'u', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_cpumask ; struct kernel_symbol const __ksymtab_cfs_cpt_cpumask = {(unsigned long )(& cfs_cpt_cpumask), (char const *)(& __kstrtab_cfs_cpt_cpumask)}; nodemask_t *cfs_cpt_nodemask(struct cfs_cpt_table *cptab , int cpt ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_nodemask"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 274; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } return (cpt == -1 ? cptab->ctb_nodemask : (cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask); } } static char const __kstrtab_cfs_cpt_nodemask[17U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'n', 'o', 'd', 'e', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_nodemask ; struct kernel_symbol const __ksymtab_cfs_cpt_nodemask = {(unsigned long )(& cfs_cpt_nodemask), (char const *)(& __kstrtab_cfs_cpt_nodemask)}; int cfs_cpt_set_cpu(struct cfs_cpt_table *cptab , int cpt , int cpu ) { int node ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___5 ; long tmp___6 ; int tmp___7 ; int tmp___8 ; { tmp = ldv__builtin_expect((long )(cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_set_cpu"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 286; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt >= 0 && cpt < cptab->ctb_nparts"); lbug_with_loc(& __msg_data); } else { } if (cpu < 0 || cpu >= nr_cpu_ids) { goto _L; } else { tmp___1 = cpumask_test_cpu(cpu, cpu_online_mask); if (tmp___1 == 0) { _L: /* CIL Label */ tmp___0 = cfs_cdebug_show(64U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_set_cpu"; msgdata.msg_line = 289; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "CPU %d is invalid or it\'s offline\n", cpu); } else { } return (0); } else { } } if (*(cptab->ctb_cpu2cpt + (unsigned long )cpu) != -1) { tmp___2 = cfs_cdebug_show(64U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_set_cpu"; msgdata___0.msg_line = 295; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "CPU %d is already in partition %d\n", cpu, *(cptab->ctb_cpu2cpt + (unsigned long )cpu)); } else { } return (0); } else { } *(cptab->ctb_cpu2cpt + (unsigned long )cpu) = cpt; tmp___3 = cpumask_test_cpu(cpu, (struct cpumask const *)cptab->ctb_cpumask); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpt_set_cpu"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 301; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!cpumask_test_cpu(cpu, cptab->ctb_cpumask)"); lbug_with_loc(& __msg_data___0); } else { } tmp___5 = cpumask_test_cpu(cpu, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); tmp___6 = ldv__builtin_expect(tmp___5 != 0, 0L); if (tmp___6 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___1.msg_fn = "cfs_cpt_set_cpu"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 302; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!cpumask_test_cpu(cpu, cptab->ctb_parts[cpt].cpt_cpumask)"); lbug_with_loc(& __msg_data___1); } else { } cpumask_set_cpu((unsigned int )cpu, cptab->ctb_cpumask); cpumask_set_cpu((unsigned int )cpu, (cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); node = __cpu_to_node(cpu); tmp___7 = variable_test_bit((long )node, (unsigned long const volatile *)(& (cptab->ctb_nodemask)->bits)); if (tmp___7 == 0) { __node_set(node, (nodemask_t volatile *)cptab->ctb_nodemask); } else { } tmp___8 = variable_test_bit((long )node, (unsigned long const volatile *)(& ((cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask)->bits)); if (tmp___8 == 0) { __node_set(node, (nodemask_t volatile *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask); } else { } return (1); } } static char const __kstrtab_cfs_cpt_set_cpu[16U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 's', 'e', 't', '_', 'c', 'p', 'u', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_set_cpu ; struct kernel_symbol const __ksymtab_cfs_cpt_set_cpu = {(unsigned long )(& cfs_cpt_set_cpu), (char const *)(& __kstrtab_cfs_cpt_set_cpu)}; void cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab , int cpt , int cpu ) { int node ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___7 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___9 ; long tmp___10 ; int tmp___11 ; unsigned int tmp___12 ; int tmp___13 ; unsigned int tmp___14 ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_unset_cpu"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 327; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } if (cpu < 0 || cpu >= nr_cpu_ids) { tmp___0 = cfs_cdebug_show(64U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_unset_cpu"; msgdata.msg_line = 330; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Invalid CPU id %d\n", cpu); } else { } return; } else { } if (cpt == -1) { cpt = *(cptab->ctb_cpu2cpt + (unsigned long )cpu); if (cpt < 0) { tmp___1 = cfs_cdebug_show(64U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_unset_cpu"; msgdata___0.msg_line = 339; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "Try to unset cpu %d which is not in CPT-table %p\n", cpt, cptab); } else { } return; } else { } } else if (*(cptab->ctb_cpu2cpt + (unsigned long )cpu) != cpt) { tmp___2 = cfs_cdebug_show(64U, 1024U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_unset_cpu"; msgdata___1.msg_line = 345; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; libcfs_debug_msg(& msgdata___1, "CPU %d is not in cpu-partition %d\n", cpu, cpt); } else { } return; } else { } tmp___3 = cpumask_test_cpu(cpu, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); tmp___4 = ldv__builtin_expect(tmp___3 == 0, 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpt_unset_cpu"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 349; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"cpumask_test_cpu(cpu, cptab->ctb_parts[cpt].cpt_cpumask)"); lbug_with_loc(& __msg_data___0); } else { } tmp___5 = cpumask_test_cpu(cpu, (struct cpumask const *)cptab->ctb_cpumask); tmp___6 = ldv__builtin_expect(tmp___5 == 0, 0L); if (tmp___6 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___1.msg_fn = "cfs_cpt_unset_cpu"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 350; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"cpumask_test_cpu(cpu, cptab->ctb_cpumask)"); lbug_with_loc(& __msg_data___1); } else { } cpumask_clear_cpu(cpu, (cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); cpumask_clear_cpu(cpu, cptab->ctb_cpumask); *(cptab->ctb_cpu2cpt + (unsigned long )cpu) = -1; node = __cpu_to_node(cpu); tmp___7 = variable_test_bit((long )node, (unsigned long const volatile *)(& ((cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask)->bits)); tmp___8 = ldv__builtin_expect(tmp___7 == 0, 0L); if (tmp___8 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___2.msg_fn = "cfs_cpt_unset_cpu"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 358; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"(__builtin_constant_p(((node))) ? constant_test_bit(((node)), ((*cptab->ctb_parts[cpt].cpt_nodemask).bits)) : variable_test_bit(((node)), ((*cptab->ctb_parts[cpt].cpt_nodemask).bits)))"); lbug_with_loc(& __msg_data___2); } else { } tmp___9 = variable_test_bit((long )node, (unsigned long const volatile *)(& (cptab->ctb_nodemask)->bits)); tmp___10 = ldv__builtin_expect(tmp___9 == 0, 0L); if (tmp___10 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___3.msg_fn = "cfs_cpt_unset_cpu"; __msg_data___3.msg_subsys = 1024; __msg_data___3.msg_line = 359; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"(__builtin_constant_p(((node))) ? constant_test_bit(((node)), ((*cptab->ctb_nodemask).bits)) : variable_test_bit(((node)), ((*cptab->ctb_nodemask).bits)))"); lbug_with_loc(& __msg_data___3); } else { } i = -1; goto ldv_50379; ldv_50378: tmp___11 = __cpu_to_node(i); if (tmp___11 == node) { goto ldv_50377; } else { } ldv_50379: tmp___12 = cpumask_next(i, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); i = (int )tmp___12; if (i < nr_cpu_ids) { goto ldv_50378; } else { } ldv_50377: ; if (i >= nr_cpu_ids) { __node_clear(node, (nodemask_t volatile *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask); } else { } i = -1; goto ldv_50382; ldv_50381: tmp___13 = __cpu_to_node(i); if (tmp___13 == node) { goto ldv_50380; } else { } ldv_50382: tmp___14 = cpumask_next(i, (struct cpumask const *)cptab->ctb_cpumask); i = (int )tmp___14; if (i < nr_cpu_ids) { goto ldv_50381; } else { } ldv_50380: ; if (i >= nr_cpu_ids) { __node_clear(node, (nodemask_t volatile *)cptab->ctb_nodemask); } else { } return; } } static char const __kstrtab_cfs_cpt_unset_cpu[18U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'u', 'n', 's', 'e', 't', '_', 'c', 'p', 'u', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_unset_cpu ; struct kernel_symbol const __ksymtab_cfs_cpt_unset_cpu = {(unsigned long )(& cfs_cpt_unset_cpu), (char const *)(& __kstrtab_cfs_cpt_unset_cpu)}; int cfs_cpt_set_cpumask(struct cfs_cpt_table *cptab , int cpt , cpumask_t *mask ) { int i ; struct libcfs_debug_msg_data msgdata ; int tmp ; unsigned int tmp___0 ; int tmp___1 ; int tmp___2 ; unsigned int tmp___3 ; { tmp___0 = cpumask_weight((struct cpumask const *)mask); if (tmp___0 == 0U) { goto _L; } else { tmp___1 = cpumask_next_and(-1, (struct cpumask const *)mask, cpu_online_mask); if (tmp___1 >= nr_cpu_ids) { _L: /* CIL Label */ tmp = cfs_cdebug_show(64U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_set_cpumask"; msgdata.msg_line = 391; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "No online CPU is found in the CPU mask for CPU partition %d\n", cpt); } else { } return (0); } else { } } i = -1; goto ldv_50401; ldv_50400: tmp___2 = cfs_cpt_set_cpu(cptab, cpt, i); if (tmp___2 == 0) { return (0); } else { } ldv_50401: tmp___3 = cpumask_next(i, (struct cpumask const *)mask); i = (int )tmp___3; if (i < nr_cpu_ids) { goto ldv_50400; } else { } return (1); } } static char const __kstrtab_cfs_cpt_set_cpumask[20U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 's', 'e', 't', '_', 'c', 'p', 'u', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_set_cpumask ; struct kernel_symbol const __ksymtab_cfs_cpt_set_cpumask = {(unsigned long )(& cfs_cpt_set_cpumask), (char const *)(& __kstrtab_cfs_cpt_set_cpumask)}; void cfs_cpt_unset_cpumask(struct cfs_cpt_table *cptab , int cpt , cpumask_t *mask ) { int i ; unsigned int tmp ; { i = -1; goto ldv_50419; ldv_50418: cfs_cpt_unset_cpu(cptab, cpt, i); ldv_50419: tmp = cpumask_next(i, (struct cpumask const *)mask); i = (int )tmp; if (i < nr_cpu_ids) { goto ldv_50418; } else { } return; } } static char const __kstrtab_cfs_cpt_unset_cpumask[22U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'u', 'n', 's', 'e', 't', '_', 'c', 'p', 'u', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_unset_cpumask ; struct kernel_symbol const __ksymtab_cfs_cpt_unset_cpumask = {(unsigned long )(& cfs_cpt_unset_cpumask), (char const *)(& __kstrtab_cfs_cpt_unset_cpumask)}; int cfs_cpt_set_node(struct cfs_cpt_table *cptab , int cpt , int node ) { cpumask_t *mask ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; { if (node < 0 || node > 1023) { tmp = cfs_cdebug_show(64U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_set_node"; msgdata.msg_line = 422; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Invalid NUMA id %d for CPU partition %d\n", node, cpt); } else { } return (0); } else { } ldv_mutex_lock_70(& cpt_data.cpt_mutex); mask = cpt_data.cpt_cpumask; cfs_node_to_cpumask(node, mask); rc = cfs_cpt_set_cpumask(cptab, cpt, mask); ldv_mutex_unlock_71(& cpt_data.cpt_mutex); return (rc); } } static char const __kstrtab_cfs_cpt_set_node[17U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 's', 'e', 't', '_', 'n', 'o', 'd', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_set_node ; struct kernel_symbol const __ksymtab_cfs_cpt_set_node = {(unsigned long )(& cfs_cpt_set_node), (char const *)(& __kstrtab_cfs_cpt_set_node)}; void cfs_cpt_unset_node(struct cfs_cpt_table *cptab , int cpt , int node ) { cpumask_t *mask ; struct libcfs_debug_msg_data msgdata ; int tmp ; { if (node < 0 || node > 1023) { tmp = cfs_cdebug_show(64U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_unset_node"; msgdata.msg_line = 446; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "Invalid NUMA id %d for CPU partition %d\n", node, cpt); } else { } return; } else { } ldv_mutex_lock_72(& cpt_data.cpt_mutex); mask = cpt_data.cpt_cpumask; cfs_node_to_cpumask(node, mask); cfs_cpt_unset_cpumask(cptab, cpt, mask); ldv_mutex_unlock_73(& cpt_data.cpt_mutex); return; } } static char const __kstrtab_cfs_cpt_unset_node[19U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'u', 'n', 's', 'e', 't', '_', 'n', 'o', 'd', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_unset_node ; struct kernel_symbol const __ksymtab_cfs_cpt_unset_node = {(unsigned long )(& cfs_cpt_unset_node), (char const *)(& __kstrtab_cfs_cpt_unset_node)}; int cfs_cpt_set_nodemask(struct cfs_cpt_table *cptab , int cpt , nodemask_t *mask ) { int i ; int tmp ; { i = __first_node((nodemask_t const *)mask); goto ldv_50472; ldv_50471: tmp = cfs_cpt_set_node(cptab, cpt, i); if (tmp == 0) { return (0); } else { } i = __next_node(i, (nodemask_t const *)mask); ldv_50472: ; if (i <= 1023) { goto ldv_50471; } else { } return (1); } } static char const __kstrtab_cfs_cpt_set_nodemask[21U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 's', 'e', 't', '_', 'n', 'o', 'd', 'e', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_set_nodemask ; struct kernel_symbol const __ksymtab_cfs_cpt_set_nodemask = {(unsigned long )(& cfs_cpt_set_nodemask), (char const *)(& __kstrtab_cfs_cpt_set_nodemask)}; void cfs_cpt_unset_nodemask(struct cfs_cpt_table *cptab , int cpt , nodemask_t *mask ) { int i ; { i = __first_node((nodemask_t const *)mask); goto ldv_50490; ldv_50489: cfs_cpt_unset_node(cptab, cpt, i); i = __next_node(i, (nodemask_t const *)mask); ldv_50490: ; if (i <= 1023) { goto ldv_50489; } else { } return; } } static char const __kstrtab_cfs_cpt_unset_nodemask[23U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'u', 'n', 's', 'e', 't', '_', 'n', 'o', 'd', 'e', 'm', 'a', 's', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_unset_nodemask ; struct kernel_symbol const __ksymtab_cfs_cpt_unset_nodemask = {(unsigned long )(& cfs_cpt_unset_nodemask), (char const *)(& __kstrtab_cfs_cpt_unset_nodemask)}; void cfs_cpt_clear(struct cfs_cpt_table *cptab , int cpt ) { int last ; int i ; unsigned int tmp ; { if (cpt == -1) { last = (int )(cptab->ctb_nparts - 1U); cpt = 0; } else { last = cpt; } goto ldv_50511; ldv_50510: i = -1; goto ldv_50508; ldv_50507: cfs_cpt_unset_cpu(cptab, cpt, i); ldv_50508: tmp = cpumask_next(i, (struct cpumask const *)(cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask); i = (int )tmp; if (i < nr_cpu_ids) { goto ldv_50507; } else { } cpt = cpt + 1; ldv_50511: ; if (cpt <= last) { goto ldv_50510; } else { } return; } } static char const __kstrtab_cfs_cpt_clear[14U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'c', 'l', 'e', 'a', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_clear ; struct kernel_symbol const __ksymtab_cfs_cpt_clear = {(unsigned long )(& cfs_cpt_clear), (char const *)(& __kstrtab_cfs_cpt_clear)}; int cfs_cpt_spread_node(struct cfs_cpt_table *cptab , int cpt ) { nodemask_t *mask ; int weight ; int rotor ; int node ; unsigned int tmp ; unsigned int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data msgdata ; { if (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts) { mask = cptab->ctb_nodemask; tmp = cptab->ctb_spread_rotor; cptab->ctb_spread_rotor = cptab->ctb_spread_rotor + 1U; rotor = (int )tmp; } else { mask = (cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask; tmp___0 = (cptab->ctb_parts + (unsigned long )cpt)->cpt_spread_rotor; (cptab->ctb_parts + (unsigned long )cpt)->cpt_spread_rotor = (cptab->ctb_parts + (unsigned long )cpt)->cpt_spread_rotor + 1U; rotor = (int )tmp___0; } weight = __nodes_weight((nodemask_t const *)mask, 1024U); tmp___1 = ldv__builtin_expect(weight <= 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_spread_node"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 524; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"weight > 0"); lbug_with_loc(& __msg_data); } else { } rotor = rotor % weight; node = __first_node((nodemask_t const *)mask); goto ldv_50532; ldv_50531: tmp___2 = rotor; rotor = rotor - 1; if (tmp___2 == 0) { return (node); } else { } node = __next_node(node, (nodemask_t const *)mask); ldv_50532: ; if (node <= 1023) { goto ldv_50531; } else { } msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_spread_node"; msgdata.msg_subsys = 1024; msgdata.msg_line = 533; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); return (0); } } static char const __kstrtab_cfs_cpt_spread_node[20U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 's', 'p', 'r', 'e', 'a', 'd', '_', 'n', 'o', 'd', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_spread_node ; struct kernel_symbol const __ksymtab_cfs_cpt_spread_node = {(unsigned long )(& cfs_cpt_spread_node), (char const *)(& __kstrtab_cfs_cpt_spread_node)}; int cfs_cpt_current(struct cfs_cpt_table *cptab , int remap ) { int cpu ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; int cpt ; { __vpp_verify = (void const *)0; switch (4UL) { case 1UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50553; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50553; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50553; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50553; default: __bad_percpu_size(); } ldv_50553: pscr_ret__ = pfo_ret__; goto ldv_50559; case 2UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50563; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50563; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50563; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50563; default: __bad_percpu_size(); } ldv_50563: pscr_ret__ = pfo_ret_____0; goto ldv_50559; case 4UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50572; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50572; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50572; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50572; default: __bad_percpu_size(); } ldv_50572: pscr_ret__ = pfo_ret_____1; goto ldv_50559; case 8UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50581; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50581; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50581; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50581; default: __bad_percpu_size(); } ldv_50581: pscr_ret__ = pfo_ret_____2; goto ldv_50559; default: __bad_size_call_parameter(); goto ldv_50559; } ldv_50559: cpu = pscr_ret__; cpt = *(cptab->ctb_cpu2cpt + (unsigned long )cpu); if (cpt < 0) { if (remap == 0) { return (cpt); } else { } cpt = (int )((unsigned int )cpu % cptab->ctb_nparts); } else { } return (cpt); } } static char const __kstrtab_cfs_cpt_current[16U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'c', 'u', 'r', 'r', 'e', 'n', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_current ; struct kernel_symbol const __ksymtab_cfs_cpt_current = {(unsigned long )(& cfs_cpt_current), (char const *)(& __kstrtab_cfs_cpt_current)}; int cfs_cpt_of_cpu(struct cfs_cpt_table *cptab , int cpu ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect((long )(cpu < 0 || cpu >= nr_cpu_ids), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_of_cpu"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 560; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpu >= 0 && cpu < nr_cpu_ids"); lbug_with_loc(& __msg_data); } else { } return (*(cptab->ctb_cpu2cpt + (unsigned long )cpu)); } } static char const __kstrtab_cfs_cpt_of_cpu[15U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'o', 'f', '_', 'c', 'p', 'u', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_of_cpu ; struct kernel_symbol const __ksymtab_cfs_cpt_of_cpu = {(unsigned long )(& cfs_cpt_of_cpu), (char const *)(& __kstrtab_cfs_cpt_of_cpu)}; int cfs_cpt_bind(struct cfs_cpt_table *cptab , int cpt ) { cpumask_t *cpumask ; nodemask_t *nodemask ; int rc ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; unsigned int tmp___4 ; { tmp = ldv__builtin_expect((long )(cpt != -1 && (cpt < 0 || (unsigned int )cpt >= cptab->ctb_nparts)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_bind"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 574; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cpt == (-1) || (cpt >= 0 && cpt < cptab->ctb_nparts)"); lbug_with_loc(& __msg_data); } else { } if (cpt == -1) { cpumask = cptab->ctb_cpumask; nodemask = cptab->ctb_nodemask; } else { cpumask = (cptab->ctb_parts + (unsigned long )cpt)->cpt_cpumask; nodemask = (cptab->ctb_parts + (unsigned long )cpt)->cpt_nodemask; } tmp___1 = cpumask_next_and(-1, (struct cpumask const *)cpumask, cpu_online_mask); if (tmp___1 >= nr_cpu_ids) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_bind"; msgdata.msg_line = 586; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "No online CPU found in CPU partition %d, did someone do CPU hotplug on system? You might need to reload Lustre modules to keep system working well.\n", cpt); } else { } return (-22); } else { } i = -1; goto ldv_50624; ldv_50625: tmp___2 = cpumask_test_cpu(i, (struct cpumask const *)cpumask); if (tmp___2 != 0) { goto ldv_50624; } else { } tmp___3 = get_current(); rc = set_cpus_allowed_ptr(tmp___3, (struct cpumask const *)cpumask); set_mems_allowed(*nodemask); if (rc == 0) { schedule(); } else { } return (rc); ldv_50624: tmp___4 = cpumask_next(i, cpu_online_mask); i = (int )tmp___4; if (i < nr_cpu_ids) { goto ldv_50625; } else { } return (0); } } static char const __kstrtab_cfs_cpt_bind[13U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 'b', 'i', 'n', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_bind ; struct kernel_symbol const __ksymtab_cfs_cpt_bind = {(unsigned long )(& cfs_cpt_bind), (char const *)(& __kstrtab_cfs_cpt_bind)}; static int cfs_cpt_choose_ncpus(struct cfs_cpt_table *cptab , int cpt , cpumask_t *node , int number ) { cpumask_t *socket ; cpumask_t *core ; int rc ; int cpu ; struct libcfs_debug_msg_data __msg_data ; long tmp ; unsigned int tmp___0 ; bool tmp___1 ; int tmp___2 ; unsigned int tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; size_t tmp___8 ; void *tmp___9 ; size_t tmp___10 ; void *tmp___11 ; void *tmp___12 ; size_t tmp___13 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; size_t tmp___14 ; int tmp___15 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___16 ; int tmp___17 ; size_t tmp___18 ; size_t tmp___19 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___20 ; size_t tmp___21 ; int tmp___22 ; long tmp___23 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___24 ; int tmp___25 ; long tmp___26 ; size_t tmp___28 ; void *tmp___29 ; size_t tmp___30 ; void *tmp___31 ; void *tmp___32 ; size_t tmp___33 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; size_t tmp___34 ; int tmp___35 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___36 ; int tmp___37 ; size_t tmp___38 ; size_t tmp___39 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___40 ; size_t tmp___41 ; int tmp___42 ; long tmp___43 ; unsigned int tmp___44 ; struct libcfs_debug_msg_data __msg_data___2 ; bool tmp___45 ; long tmp___46 ; int i ; struct libcfs_debug_msg_data __msg_data___3 ; bool tmp___47 ; long tmp___48 ; unsigned int tmp___49 ; unsigned int tmp___50 ; bool tmp___51 ; int tmp___52 ; bool tmp___53 ; int tmp___54 ; int s ; size_t tmp___55 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___56 ; long tmp___57 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___58 ; int tmp___59 ; long tmp___60 ; int s___0 ; size_t tmp___61 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___62 ; long tmp___63 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___64 ; int tmp___65 ; long tmp___66 ; { socket = (cpumask_t *)0; core = (cpumask_t *)0; rc = 0; tmp = ldv__builtin_expect(number <= 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_choose_ncpus"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 620; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"number > 0"); lbug_with_loc(& __msg_data); } else { } tmp___3 = cpumask_weight((struct cpumask const *)node); if ((unsigned int )number >= tmp___3) { goto ldv_50648; ldv_50647: tmp___0 = cpumask_first((struct cpumask const *)node); cpu = (int )tmp___0; rc = cfs_cpt_set_cpu(cptab, cpt, cpu); if (rc == 0) { return (-22); } else { } cpumask_clear_cpu(cpu, node); ldv_50648: tmp___1 = cpumask_empty((struct cpumask const *)node); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { goto ldv_50647; } else { } return (0); } else { } tmp___4 = preempt_count___1(); if (((unsigned long )tmp___4 & 2096896UL) != 0UL) { cpumask_size(); tmp___5 = 1; } else { tmp___5 = 0; } tmp___6 = ldv__builtin_expect((long )tmp___5, 0L); if (tmp___6 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpt_choose_ncpus"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 635; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___13 = cpumask_size(); if (tmp___13 <= 8192UL) { tmp___8 = cpumask_size(); tmp___9 = kmalloc(tmp___8, 80U); tmp___12 = tmp___9; } else { tmp___10 = cpumask_size(); tmp___11 = vmalloc(tmp___10); tmp___12 = tmp___11; } socket = (cpumask_t *)tmp___12; tmp___23 = ldv__builtin_expect((unsigned long )socket == (unsigned long )((cpumask_t *)0), 0L); if (tmp___23 != 0L) { tmp___15 = cfs_cdebug_show(131072U, 1024U); if (tmp___15 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_choose_ncpus"; msgdata.msg_line = 635; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___14 = cpumask_size(); libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(socket)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 635, (int )tmp___14); } else { } tmp___17 = cfs_cdebug_show(131072U, 1024U); if (tmp___17 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___0.msg_line = 635; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___16 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___16); } else { } } else { tmp___18 = cpumask_size(); memset((void *)socket, 0, tmp___18); tmp___19 = cpumask_size(); atomic_add((int )tmp___19, & libcfs_kmemory); tmp___22 = cfs_cdebug_show(16U, 1024U); if (tmp___22 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___1.msg_line = 635; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___20 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___21 = cpumask_size(); libcfs_debug_msg(& msgdata___1, "alloc \'(socket)\': %d at %p (tot %d).\n", (int )tmp___21, socket, tmp___20); } else { } } tmp___24 = preempt_count___1(); if (((unsigned long )tmp___24 & 2096896UL) != 0UL) { cpumask_size(); tmp___25 = 1; } else { tmp___25 = 0; } tmp___26 = ldv__builtin_expect((long )tmp___25, 0L); if (tmp___26 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___1.msg_fn = "cfs_cpt_choose_ncpus"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 636; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___1); } else { } tmp___33 = cpumask_size(); if (tmp___33 <= 8192UL) { tmp___28 = cpumask_size(); tmp___29 = kmalloc(tmp___28, 80U); tmp___32 = tmp___29; } else { tmp___30 = cpumask_size(); tmp___31 = vmalloc(tmp___30); tmp___32 = tmp___31; } core = (cpumask_t *)tmp___32; tmp___43 = ldv__builtin_expect((unsigned long )core == (unsigned long )((cpumask_t *)0), 0L); if (tmp___43 != 0L) { tmp___35 = cfs_cdebug_show(131072U, 1024U); if (tmp___35 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___2.msg_line = 636; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; tmp___34 = cpumask_size(); libcfs_debug_msg(& msgdata___2, "LNET: out of memory at %s:%d (tried to alloc \'(core)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 636, (int )tmp___34); } else { } tmp___37 = cfs_cdebug_show(131072U, 1024U); if (tmp___37 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___3.msg_line = 636; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___36 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "LNET: %d total bytes allocated by lnet\n", tmp___36); } else { } } else { tmp___38 = cpumask_size(); memset((void *)core, 0, tmp___38); tmp___39 = cpumask_size(); atomic_add((int )tmp___39, & libcfs_kmemory); tmp___42 = cfs_cdebug_show(16U, 1024U); if (tmp___42 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___4.msg_line = 636; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___40 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___41 = cpumask_size(); libcfs_debug_msg(& msgdata___4, "alloc \'(core)\': %d at %p (tot %d).\n", (int )tmp___41, core, tmp___40); } else { } } if ((unsigned long )socket == (unsigned long )((cpumask_t *)0) || (unsigned long )core == (unsigned long )((cpumask_t *)0)) { rc = -12; goto out; } else { } goto ldv_50673; ldv_50672: tmp___44 = cpumask_first((struct cpumask const *)node); cpu = (int )tmp___44; cfs_cpu_core_siblings(cpu, socket); cpumask_and(socket, (struct cpumask const *)socket, (struct cpumask const *)node); tmp___45 = cpumask_empty((struct cpumask const *)socket); tmp___46 = ldv__builtin_expect((long )tmp___45, 0L); if (tmp___46 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___2.msg_fn = "cfs_cpt_choose_ncpus"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 649; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!cpumask_empty(socket)"); lbug_with_loc(& __msg_data___2); } else { } goto ldv_50670; ldv_50669: cfs_cpu_ht_siblings(cpu, core); cpumask_and(core, (struct cpumask const *)core, (struct cpumask const *)node); tmp___47 = cpumask_empty((struct cpumask const *)core); tmp___48 = ldv__builtin_expect((long )tmp___47, 0L); if (tmp___48 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___3.msg_fn = "cfs_cpt_choose_ncpus"; __msg_data___3.msg_subsys = 1024; __msg_data___3.msg_line = 658; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"!cpumask_empty(core)"); lbug_with_loc(& __msg_data___3); } else { } i = -1; goto ldv_50667; ldv_50666: cpumask_clear_cpu(i, socket); cpumask_clear_cpu(i, node); rc = cfs_cpt_set_cpu(cptab, cpt, i); if (rc == 0) { rc = -22; goto out; } else { } number = number - 1; if (number == 0) { goto out; } else { } ldv_50667: tmp___49 = cpumask_next(i, (struct cpumask const *)core); i = (int )tmp___49; if (i < nr_cpu_ids) { goto ldv_50666; } else { } tmp___50 = cpumask_first((struct cpumask const *)socket); cpu = (int )tmp___50; ldv_50670: tmp___51 = cpumask_empty((struct cpumask const *)socket); if (tmp___51) { tmp___52 = 0; } else { tmp___52 = 1; } if (tmp___52) { goto ldv_50669; } else { } ldv_50673: tmp___53 = cpumask_empty((struct cpumask const *)node); if (tmp___53) { tmp___54 = 0; } else { tmp___54 = 1; } if (tmp___54) { goto ldv_50672; } else { } out: ; if ((unsigned long )socket != (unsigned long )((cpumask_t *)0)) { tmp___55 = cpumask_size(); s = (int )tmp___55; tmp___57 = ldv__builtin_expect((unsigned long )socket == (unsigned long )((cpumask_t *)0), 0L); if (tmp___57 != 0L) { tmp___56 = cfs_cdebug_show(131072U, 1024U); if (tmp___56 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___5.msg_line = 679; msgdata___5.msg_cdls = & cdls___3; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "LIBCFS: free NULL \'socket\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 679); } else { } goto ldv_50678; } else { } atomic_sub(s, & libcfs_kmemory); tmp___59 = cfs_cdebug_show(16U, 1024U); if (tmp___59 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___6.msg_line = 679; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 16; tmp___58 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___6, "kfreed \'socket\': %d at %p (tot %d).\n", s, socket, tmp___58); } else { } tmp___60 = ldv__builtin_expect(s > 8192, 0L); if (tmp___60 != 0L) { vfree((void const *)socket); } else { kfree((void const *)socket); } ldv_50678: ; } else { } if ((unsigned long )core != (unsigned long )((cpumask_t *)0)) { tmp___61 = cpumask_size(); s___0 = (int )tmp___61; tmp___63 = ldv__builtin_expect((unsigned long )core == (unsigned long )((cpumask_t *)0), 0L); if (tmp___63 != 0L) { tmp___62 = cfs_cdebug_show(131072U, 1024U); if (tmp___62 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___7.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___7.msg_line = 681; msgdata___7.msg_cdls = & cdls___4; msgdata___7.msg_mask = 131072; libcfs_debug_msg(& msgdata___7, "LIBCFS: free NULL \'core\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 681); } else { } goto ldv_50683; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___65 = cfs_cdebug_show(16U, 1024U); if (tmp___65 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___8.msg_fn = "cfs_cpt_choose_ncpus"; msgdata___8.msg_line = 681; msgdata___8.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___8.msg_mask = 16; tmp___64 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___8, "kfreed \'core\': %d at %p (tot %d).\n", s___0, core, tmp___64); } else { } tmp___66 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___66 != 0L) { vfree((void const *)core); } else { kfree((void const *)core); } ldv_50683: ; } else { } return (rc); } } static unsigned int cfs_cpt_num_estimate(void) { unsigned int nnode ; int tmp ; unsigned int ncpu ; unsigned int tmp___0 ; unsigned int ncpt ; { tmp = num_node_state(1); nnode = (unsigned int )tmp; tmp___0 = cpumask_weight(cpu_online_mask); ncpu = tmp___0; if (ncpu <= 4U) { ncpt = 1U; goto out; } else { } ncpt = 2U; goto ldv_50693; ldv_50692: ncpt = ncpt << 1; ldv_50693: ; if ((ncpt * ncpt) * 2U < ncpu) { goto ldv_50692; } else { } if (ncpt <= nnode) { goto ldv_50696; ldv_50695: nnode = nnode >> 1; ldv_50696: ; if (nnode > ncpt) { goto ldv_50695; } else { } } else { goto ldv_50699; ldv_50698: nnode = nnode << 1; ldv_50699: ; if (nnode << 1 <= ncpt) { goto ldv_50698; } else { } } ncpt = nnode; out: ; goto ldv_50702; ldv_50701: ncpt = ncpt - 1U; ldv_50702: ; if (ncpu % ncpt != 0U) { goto ldv_50701; } else { } return (ncpt); } } static struct cfs_cpt_table *cfs_cpt_table_create(int ncpt ) { struct cfs_cpt_table *cptab ; cpumask_t *mask ; int cpt ; int num ; int rc ; int i ; unsigned int tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; unsigned int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; unsigned int tmp___2 ; int tmp___3 ; unsigned int tmp___4 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; unsigned int tmp___6 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___7 ; struct libcfs_debug_msg_data __msg_data ; int tmp___8 ; int tmp___9 ; long tmp___10 ; size_t tmp___12 ; void *tmp___13 ; size_t tmp___14 ; void *tmp___15 ; void *tmp___16 ; size_t tmp___17 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___3 ; size_t tmp___18 ; int tmp___19 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___20 ; int tmp___21 ; size_t tmp___22 ; size_t tmp___23 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___24 ; size_t tmp___25 ; int tmp___26 ; long tmp___27 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___28 ; struct cfs_cpu_partition *part ; int n ; unsigned int tmp___29 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___30 ; struct libcfs_debug_msg_data __msg_data___1 ; unsigned int tmp___31 ; long tmp___32 ; unsigned int tmp___33 ; bool tmp___34 ; int tmp___35 ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___7 ; unsigned int tmp___36 ; int tmp___37 ; unsigned int tmp___38 ; int s ; size_t tmp___39 ; struct cfs_debug_limit_state cdls___7 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___40 ; long tmp___41 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___42 ; int tmp___43 ; long tmp___44 ; struct cfs_debug_limit_state cdls___8 ; struct libcfs_debug_msg_data msgdata___10 ; unsigned int tmp___45 ; int tmp___46 ; int tmp___47 ; int s___0 ; size_t tmp___48 ; struct cfs_debug_limit_state cdls___9 ; struct libcfs_debug_msg_data msgdata___11 ; int tmp___49 ; long tmp___50 ; struct libcfs_debug_msg_data msgdata___12 ; int tmp___51 ; int tmp___52 ; long tmp___53 ; { cptab = (struct cfs_cpt_table *)0; mask = (cpumask_t *)0; cpt = 0; tmp = cfs_cpt_num_estimate(); rc = (int )tmp; if (ncpt <= 0) { ncpt = rc; } else { } tmp___1 = cpumask_weight(cpu_online_mask); if ((unsigned int )ncpt > tmp___1 || rc * 4 < ncpt) { tmp___0 = cfs_cdebug_show(1024U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_table_create"; msgdata.msg_line = 743; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "CPU partition number %d is larger than suggested value (%d), your system may have performance issue or run out of memory while under pressure\n", ncpt, rc); } else { } } else { } tmp___4 = cpumask_weight(cpu_online_mask); if (tmp___4 % (unsigned int )ncpt != 0U) { tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_table_create"; msgdata___0.msg_line = 748; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___2 = cpumask_weight(cpu_online_mask); libcfs_debug_msg(& msgdata___0, "CPU number %d is not multiple of cpu_npartition %d, please try different cpu_npartitions value or set pattern string by cpu_pattern=STRING\n", (int )tmp___2, ncpt); } else { } goto failed; } else { } cptab = cfs_cpt_table_alloc((unsigned int )ncpt); if ((unsigned long )cptab == (unsigned long )((struct cfs_cpt_table *)0)) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_table_create"; msgdata___1.msg_line = 754; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Failed to allocate CPU map(%d)\n", ncpt); } else { } goto failed; } else { } tmp___6 = cpumask_weight(cpu_online_mask); num = (int )(tmp___6 / (unsigned int )ncpt); if (num == 0) { tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpt_table_create"; msgdata___2.msg_line = 760; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "CPU changed while setting CPU partition\n"); } else { } goto failed; } else { } tmp___8 = preempt_count___1(); if (((unsigned long )tmp___8 & 2096896UL) != 0UL) { cpumask_size(); tmp___9 = 1; } else { tmp___9 = 0; } tmp___10 = ldv__builtin_expect((long )tmp___9, 0L); if (tmp___10 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpt_table_create"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 764; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___17 = cpumask_size(); if (tmp___17 <= 8192UL) { tmp___12 = cpumask_size(); tmp___13 = kmalloc(tmp___12, 80U); tmp___16 = tmp___13; } else { tmp___14 = cpumask_size(); tmp___15 = vmalloc(tmp___14); tmp___16 = tmp___15; } mask = (cpumask_t *)tmp___16; tmp___27 = ldv__builtin_expect((unsigned long )mask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___27 != 0L) { tmp___19 = cfs_cdebug_show(131072U, 1024U); if (tmp___19 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpt_table_create"; msgdata___3.msg_line = 764; msgdata___3.msg_cdls = & cdls___3; msgdata___3.msg_mask = 131072; tmp___18 = cpumask_size(); libcfs_debug_msg(& msgdata___3, "LNET: out of memory at %s:%d (tried to alloc \'(mask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 764, (int )tmp___18); } else { } tmp___21 = cfs_cdebug_show(131072U, 1024U); if (tmp___21 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpt_table_create"; msgdata___4.msg_line = 764; msgdata___4.msg_cdls = & cdls___4; msgdata___4.msg_mask = 131072; tmp___20 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___4, "LNET: %d total bytes allocated by lnet\n", tmp___20); } else { } } else { tmp___22 = cpumask_size(); memset((void *)mask, 0, tmp___22); tmp___23 = cpumask_size(); atomic_add((int )tmp___23, & libcfs_kmemory); tmp___26 = cfs_cdebug_show(16U, 1024U); if (tmp___26 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpt_table_create"; msgdata___5.msg_line = 764; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 16; tmp___24 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___25 = cpumask_size(); libcfs_debug_msg(& msgdata___5, "alloc \'(mask)\': %d at %p (tot %d).\n", (int )tmp___25, mask, tmp___24); } else { } } if ((unsigned long )mask == (unsigned long )((cpumask_t *)0)) { tmp___28 = cfs_cdebug_show(131072U, 1024U); if (tmp___28 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpt_table_create"; msgdata___6.msg_line = 766; msgdata___6.msg_cdls = & cdls___5; msgdata___6.msg_mask = 131072; libcfs_debug_msg(& msgdata___6, "Failed to allocate scratch cpumask\n"); } else { } goto failed; } else { } i = __first_node((nodemask_t const *)(& node_states) + 1U); goto ldv_50739; ldv_50738: cfs_node_to_cpumask(i, mask); goto ldv_50736; ldv_50735: ; if (cpt >= ncpt) { goto failed; } else { } part = cptab->ctb_parts + (unsigned long )cpt; tmp___29 = cpumask_weight((struct cpumask const *)part->cpt_cpumask); n = (int )((unsigned int )num - tmp___29); tmp___30 = ldv__builtin_expect(n <= 0, 0L); if (tmp___30 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpt_table_create"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 783; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"n > 0"); lbug_with_loc(& __msg_data___0); } else { } rc = cfs_cpt_choose_ncpus(cptab, cpt, mask, n); if (rc < 0) { goto failed; } else { } tmp___31 = cpumask_weight((struct cpumask const *)part->cpt_cpumask); tmp___32 = ldv__builtin_expect((unsigned int )num < tmp___31, 0L); if (tmp___32 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___1.msg_fn = "cfs_cpt_table_create"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 789; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"num >= cpumask_weight(part->cpt_cpumask)"); lbug_with_loc(& __msg_data___1); } else { } tmp___33 = cpumask_weight((struct cpumask const *)part->cpt_cpumask); if ((unsigned int )num == tmp___33) { cpt = cpt + 1; } else { } ldv_50736: tmp___34 = cpumask_empty((struct cpumask const *)mask); if (tmp___34) { tmp___35 = 0; } else { tmp___35 = 1; } if (tmp___35) { goto ldv_50735; } else { } i = __next_node(i, (nodemask_t const *)(& node_states) + 1U); ldv_50739: ; if (i <= 1023) { goto ldv_50738; } else { } if (cpt != ncpt) { goto _L; } else { tmp___38 = cpumask_weight((struct cpumask const *)(cptab->ctb_parts + ((unsigned long )ncpt + 0xffffffffffffffffUL))->cpt_cpumask); if ((unsigned int )num != tmp___38) { _L: /* CIL Label */ tmp___37 = cfs_cdebug_show(131072U, 1024U); if (tmp___37 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___7.msg_fn = "cfs_cpt_table_create"; msgdata___7.msg_line = 799; msgdata___7.msg_cdls = & cdls___6; msgdata___7.msg_mask = 131072; tmp___36 = cpumask_weight((struct cpumask const *)(cptab->ctb_parts + ((unsigned long )ncpt + 0xffffffffffffffffUL))->cpt_cpumask); libcfs_debug_msg(& msgdata___7, "Expect %d(%d) CPU partitions but got %d(%d), CPU hotplug/unplug while setting?\n", cptab->ctb_nparts, num, cpt, tmp___36); } else { } goto failed; } else { } } tmp___39 = cpumask_size(); s = (int )tmp___39; tmp___41 = ldv__builtin_expect((unsigned long )mask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___41 != 0L) { tmp___40 = cfs_cdebug_show(131072U, 1024U); if (tmp___40 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___8.msg_fn = "cfs_cpt_table_create"; msgdata___8.msg_line = 803; msgdata___8.msg_cdls = & cdls___7; msgdata___8.msg_mask = 131072; libcfs_debug_msg(& msgdata___8, "LIBCFS: free NULL \'mask\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 803); } else { } goto ldv_50746; } else { } atomic_sub(s, & libcfs_kmemory); tmp___43 = cfs_cdebug_show(16U, 1024U); if (tmp___43 != 0) { msgdata___9.msg_subsys = 1024; msgdata___9.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___9.msg_fn = "cfs_cpt_table_create"; msgdata___9.msg_line = 803; msgdata___9.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___9.msg_mask = 16; tmp___42 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___9, "kfreed \'mask\': %d at %p (tot %d).\n", s, mask, tmp___42); } else { } tmp___44 = ldv__builtin_expect(s > 8192, 0L); if (tmp___44 != 0L) { vfree((void const *)mask); } else { kfree((void const *)mask); } ldv_50746: ; return (cptab); failed: tmp___47 = cfs_cdebug_show(131072U, 1024U); if (tmp___47 != 0) { msgdata___10.msg_subsys = 1024; msgdata___10.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___10.msg_fn = "cfs_cpt_table_create"; msgdata___10.msg_line = 809; msgdata___10.msg_cdls = & cdls___8; msgdata___10.msg_mask = 131072; tmp___45 = cpumask_weight(cpu_online_mask); tmp___46 = num_node_state(1); libcfs_debug_msg(& msgdata___10, "Failed to setup CPU-partition-table with %d CPU-partitions, online HW nodes: %d, HW cpus: %d.\n", ncpt, tmp___46, tmp___45); } else { } if ((unsigned long )mask != (unsigned long )((cpumask_t *)0)) { tmp___48 = cpumask_size(); s___0 = (int )tmp___48; tmp___50 = ldv__builtin_expect((unsigned long )mask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___50 != 0L) { tmp___49 = cfs_cdebug_show(131072U, 1024U); if (tmp___49 != 0) { msgdata___11.msg_subsys = 1024; msgdata___11.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___11.msg_fn = "cfs_cpt_table_create"; msgdata___11.msg_line = 812; msgdata___11.msg_cdls = & cdls___9; msgdata___11.msg_mask = 131072; libcfs_debug_msg(& msgdata___11, "LIBCFS: free NULL \'mask\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 812); } else { } goto ldv_50753; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___52 = cfs_cdebug_show(16U, 1024U); if (tmp___52 != 0) { msgdata___12.msg_subsys = 1024; msgdata___12.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___12.msg_fn = "cfs_cpt_table_create"; msgdata___12.msg_line = 812; msgdata___12.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___12.msg_mask = 16; tmp___51 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___12, "kfreed \'mask\': %d at %p (tot %d).\n", s___0, mask, tmp___51); } else { } tmp___53 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___53 != 0L) { vfree((void const *)mask); } else { kfree((void const *)mask); } ldv_50753: ; } else { } if ((unsigned long )cptab != (unsigned long )((struct cfs_cpt_table *)0)) { cfs_cpt_table_free(cptab); } else { } return ((struct cfs_cpt_table *)0); } } static struct cfs_cpt_table *cfs_cpt_table_create_pattern(char *pattern ) { struct cfs_cpt_table *cptab ; char *str ; int node ; int high ; int ncpt ; int c ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; unsigned int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; struct cfs_range_expr *range ; struct cfs_expr_list *el ; char *bracket ; char *tmp___3 ; int cpt ; int rc ; int i ; int n ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___5 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___6 ; int tmp___7 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___8 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___9 ; int tmp___10 ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___11 ; struct cfs_debug_limit_state cdls___7 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___12 ; struct cfs_debug_limit_state cdls___8 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___13 ; int tmp___14 ; struct list_head const *__mptr ; int tmp___15 ; int tmp___16 ; struct list_head const *__mptr___0 ; struct cfs_debug_limit_state cdls___9 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___17 ; int tmp___18 ; { str = pattern; node = 0; ncpt = 0; ldv_50765: str = strchr((char const *)str, 91); if ((unsigned long )str == (unsigned long )((char *)0)) { goto ldv_50764; } else { } str = str + 1; ncpt = ncpt + 1; goto ldv_50765; ldv_50764: str = cfs_trimwhite(pattern); if ((int )((signed char )*str) == 110 || (int )((signed char )*str) == 78) { pattern = str + 1UL; node = 1; } else { } if (ncpt == 0) { goto _L; } else if (node != 0) { tmp___0 = num_node_state(1); if (tmp___0 < ncpt) { goto _L; } else { goto _L___0; } } else _L___0: /* CIL Label */ if (node == 0) { tmp___1 = cpumask_weight(cpu_online_mask); if ((unsigned int )ncpt > tmp___1) { _L: /* CIL Label */ tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpt_table_create_pattern"; msgdata.msg_line = 847; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Invalid pattern %s, or too many partitions %d\n", pattern, ncpt); } else { } return ((struct cfs_cpt_table *)0); } else { } } else { } high = node == 0 ? nr_cpu_ids + -1 : 1023; cptab = cfs_cpt_table_alloc((unsigned int )ncpt); if ((unsigned long )cptab == (unsigned long )((struct cfs_cpt_table *)0)) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___0.msg_line = 855; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "Failed to allocate cpu partition table\n"); } else { } return ((struct cfs_cpt_table *)0); } else { } str = cfs_trimwhite(pattern); c = 0; ldv_50809: tmp___3 = strchr((char const *)str, 91); bracket = tmp___3; if ((unsigned long )bracket == (unsigned long )((char *)0)) { if ((int )((signed char )*str) != 0) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___1.msg_line = 870; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Invalid pattern %s\n", str); } else { } goto failed; } else if (c != ncpt) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___2.msg_line = 874; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "expect %d partitions but found %d\n", ncpt, c); } else { } goto failed; } else { } goto ldv_50783; } else { } tmp___7 = sscanf((char const *)str, "%d%n", & cpt, & n); if (tmp___7 <= 0) { tmp___6 = cfs_cdebug_show(131072U, 1024U); if (tmp___6 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___3.msg_line = 881; msgdata___3.msg_cdls = & cdls___3; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "Invalid cpu pattern %s\n", str); } else { } goto failed; } else { } if (cpt < 0 || cpt >= ncpt) { tmp___8 = cfs_cdebug_show(131072U, 1024U); if (tmp___8 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___4.msg_line = 887; msgdata___4.msg_cdls = & cdls___4; msgdata___4.msg_mask = 131072; libcfs_debug_msg(& msgdata___4, "Invalid partition id %d, total partitions %d\n", cpt, ncpt); } else { } goto failed; } else { } tmp___10 = cfs_cpt_weight(cptab, cpt); if (tmp___10 != 0) { tmp___9 = cfs_cdebug_show(131072U, 1024U); if (tmp___9 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___5.msg_line = 892; msgdata___5.msg_cdls = & cdls___5; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "Partition %d has already been set.\n", cpt); } else { } goto failed; } else { } str = cfs_trimwhite(str + (unsigned long )n); if ((unsigned long )str != (unsigned long )bracket) { tmp___11 = cfs_cdebug_show(131072U, 1024U); if (tmp___11 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___6.msg_line = 898; msgdata___6.msg_cdls = & cdls___6; msgdata___6.msg_mask = 131072; libcfs_debug_msg(& msgdata___6, "Invalid pattern %s\n", str); } else { } goto failed; } else { } bracket = strchr((char const *)str, 93); if ((unsigned long )bracket == (unsigned long )((char *)0)) { tmp___12 = cfs_cdebug_show(131072U, 1024U); if (tmp___12 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___7.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___7.msg_line = 905; msgdata___7.msg_cdls = & cdls___7; msgdata___7.msg_mask = 131072; libcfs_debug_msg(& msgdata___7, "missing right bracket for cpt %d, %s\n", cpt, str); } else { } goto failed; } else { } tmp___14 = cfs_expr_list_parse(str, (int )(((unsigned int )((long )bracket) - (unsigned int )((long )str)) + 1U), 0U, (unsigned int )high, & el); if (tmp___14 != 0) { tmp___13 = cfs_cdebug_show(131072U, 1024U); if (tmp___13 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___8.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___8.msg_line = 911; msgdata___8.msg_cdls = & cdls___8; msgdata___8.msg_mask = 131072; libcfs_debug_msg(& msgdata___8, "Can\'t parse number range: %s\n", str); } else { } goto failed; } else { } __mptr = (struct list_head const *)el->el_exprs.next; range = (struct cfs_range_expr *)__mptr; goto ldv_50805; ldv_50804: i = (int )range->re_lo; goto ldv_50802; ldv_50801: ; if (((__u32 )i - range->re_lo) % range->re_stride != 0U) { goto ldv_50800; } else { } if (node != 0) { tmp___15 = cfs_cpt_set_node(cptab, cpt, i); rc = tmp___15; } else { tmp___16 = cfs_cpt_set_cpu(cptab, cpt, i); rc = tmp___16; } if (rc == 0) { cfs_expr_list_free(el); goto failed; } else { } ldv_50800: i = i + 1; ldv_50802: ; if ((__u32 )i <= range->re_hi) { goto ldv_50801; } else { } __mptr___0 = (struct list_head const *)range->re_link.next; range = (struct cfs_range_expr *)__mptr___0; ldv_50805: ; if ((unsigned long )(& range->re_link) != (unsigned long )(& el->el_exprs)) { goto ldv_50804; } else { } cfs_expr_list_free(el); tmp___18 = cfs_cpt_online(cptab, cpt); if (tmp___18 == 0) { tmp___17 = cfs_cdebug_show(131072U, 1024U); if (tmp___17 != 0) { msgdata___9.msg_subsys = 1024; msgdata___9.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___9.msg_fn = "cfs_cpt_table_create_pattern"; msgdata___9.msg_line = 932; msgdata___9.msg_cdls = & cdls___9; msgdata___9.msg_mask = 131072; libcfs_debug_msg(& msgdata___9, "No online CPU is found on partition %d\n", cpt); } else { } goto failed; } else { } str = cfs_trimwhite(bracket + 1UL); c = c + 1; goto ldv_50809; ldv_50783: ; return (cptab); failed: cfs_cpt_table_free(cptab); return ((struct cfs_cpt_table *)0); } } static int cfs_cpu_notify(struct notifier_block *self , unsigned long action , void *hcpu ) { unsigned int cpu ; bool warn ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; { cpu = (unsigned int )((long )hcpu); switch (action) { case 7UL: ; case 23UL: ; case 2UL: ; case 18UL: spin_lock(& cpt_data.cpt_lock); cpt_data.cpt_version = cpt_data.cpt_version + 1UL; spin_unlock(& cpt_data.cpt_lock); default: ; if (action != 7UL && action != 23UL) { tmp = cfs_cdebug_show(64U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpu_notify"; msgdata.msg_line = 964; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "CPU changed [cpu %u action %lx]\n", cpu, action); } else { } goto ldv_50824; } else { } ldv_mutex_lock_74(& cpt_data.cpt_mutex); cfs_cpu_ht_siblings((int )cpu, cpt_data.cpt_cpumask); tmp___0 = cpumask_next_and(-1, (struct cpumask const *)cpt_data.cpt_cpumask, cpu_online_mask); warn = tmp___0 >= nr_cpu_ids; ldv_mutex_unlock_75(& cpt_data.cpt_mutex); tmp___1 = cfs_cdebug_show((int )warn ? 1024U : 64U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpu_notify"; msgdata___0.msg_line = 976; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = (int )warn ? 1024 : 64; libcfs_debug_msg(& msgdata___0, "Lustre: can\'t support CPU plug-out well now, performance and stability could be impacted [CPU %u action: %lx]\n", cpu, action); } else { } } ldv_50824: ; return (1); } } static struct notifier_block cfs_cpu_notifier = {& cfs_cpu_notify, 0, 0}; void cfs_cpu_fini(void) { int s ; size_t tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; long tmp___4 ; { if ((unsigned long )cfs_cpt_table != (unsigned long )((struct cfs_cpt_table *)0)) { cfs_cpt_table_free(cfs_cpt_table); } else { } unregister_cpu_notifier(& cfs_cpu_notifier); if ((unsigned long )cpt_data.cpt_cpumask != (unsigned long )((cpumask_t *)0)) { tmp = cpumask_size(); s = (int )tmp; tmp___1 = ldv__builtin_expect((unsigned long )cpt_data.cpt_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___1 != 0L) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpu_fini"; msgdata.msg_line = 999; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'cpt_data.cpt_cpumask\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 999); } else { } goto ldv_50834; } else { } atomic_sub(s, & libcfs_kmemory); tmp___3 = cfs_cdebug_show(16U, 1024U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpu_fini"; msgdata___0.msg_line = 999; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___2 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'cpt_data.cpt_cpumask\': %d at %p (tot %d).\n", s, cpt_data.cpt_cpumask, tmp___2); } else { } tmp___4 = ldv__builtin_expect(s > 8192, 0L); if (tmp___4 != 0L) { vfree((void const *)cpt_data.cpt_cpumask); } else { kfree((void const *)cpt_data.cpt_cpumask); } ldv_50834: ; } else { } return; } } int cfs_cpu_init(void) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; int tmp___1 ; long tmp___2 ; size_t tmp___4 ; void *tmp___5 ; size_t tmp___6 ; void *tmp___7 ; void *tmp___8 ; size_t tmp___9 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; size_t tmp___10 ; int tmp___11 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___12 ; int tmp___13 ; size_t tmp___14 ; size_t tmp___15 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___16 ; size_t tmp___17 ; int tmp___18 ; long tmp___19 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___20 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___21 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___22 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___23 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___24 ; unsigned int tmp___25 ; int tmp___26 ; { tmp = ldv__builtin_expect((unsigned long )cfs_cpt_table != (unsigned long )((struct cfs_cpt_table *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data.msg_fn = "cfs_cpu_init"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 1005; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_cpt_table == ((void *)0)"); lbug_with_loc(& __msg_data); } else { } memset((void *)(& cpt_data), 0, 248UL); tmp___0 = preempt_count___1(); if (((unsigned long )tmp___0 & 2096896UL) != 0UL) { cpumask_size(); tmp___1 = 1; } else { tmp___1 = 0; } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; __msg_data___0.msg_fn = "cfs_cpu_init"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 1009; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cpumask_size())) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___9 = cpumask_size(); if (tmp___9 <= 8192UL) { tmp___4 = cpumask_size(); tmp___5 = kmalloc(tmp___4, 80U); tmp___8 = tmp___5; } else { tmp___6 = cpumask_size(); tmp___7 = vmalloc(tmp___6); tmp___8 = tmp___7; } cpt_data.cpt_cpumask = (cpumask_t *)tmp___8; tmp___19 = ldv__builtin_expect((unsigned long )cpt_data.cpt_cpumask == (unsigned long )((cpumask_t *)0), 0L); if (tmp___19 != 0L) { tmp___11 = cfs_cdebug_show(131072U, 1024U); if (tmp___11 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata.msg_fn = "cfs_cpu_init"; msgdata.msg_line = 1009; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; tmp___10 = cpumask_size(); libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(cpt_data.cpt_cpumask)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c", 1009, (int )tmp___10); } else { } tmp___13 = cfs_cdebug_show(131072U, 1024U); if (tmp___13 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___0.msg_fn = "cfs_cpu_init"; msgdata___0.msg_line = 1009; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___12 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___12); } else { } } else { tmp___14 = cpumask_size(); memset((void *)cpt_data.cpt_cpumask, 0, tmp___14); tmp___15 = cpumask_size(); atomic_add((int )tmp___15, & libcfs_kmemory); tmp___18 = cfs_cdebug_show(16U, 1024U); if (tmp___18 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___1.msg_fn = "cfs_cpu_init"; msgdata___1.msg_line = 1009; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___16 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___17 = cpumask_size(); libcfs_debug_msg(& msgdata___1, "alloc \'(cpt_data.cpt_cpumask)\': %d at %p (tot %d).\n", (int )tmp___17, cpt_data.cpt_cpumask, tmp___16); } else { } } if ((unsigned long )cpt_data.cpt_cpumask == (unsigned long )((cpumask_t *)0)) { tmp___20 = cfs_cdebug_show(131072U, 1024U); if (tmp___20 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___2.msg_fn = "cfs_cpu_init"; msgdata___2.msg_line = 1011; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "Failed to allocate scratch buffer\n"); } else { } return (-1); } else { } spinlock_check(& cpt_data.cpt_lock); __raw_spin_lock_init(& cpt_data.cpt_lock.__annonCompField17.rlock, "&(&cpt_data.cpt_lock)->rlock", & __key); __mutex_init(& cpt_data.cpt_mutex, "&cpt_data.cpt_mutex", & __key___0); register_cpu_notifier(& cfs_cpu_notifier); if ((int )((signed char )*cpu_pattern) != 0) { cfs_cpt_table = cfs_cpt_table_create_pattern(cpu_pattern); if ((unsigned long )cfs_cpt_table == (unsigned long )((struct cfs_cpt_table *)0)) { tmp___21 = cfs_cdebug_show(131072U, 1024U); if (tmp___21 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___3.msg_fn = "cfs_cpu_init"; msgdata___3.msg_line = 1026; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "Failed to create cptab from pattern %s\n", cpu_pattern); } else { } goto failed; } else { } } else { cfs_cpt_table = cfs_cpt_table_create(cpu_npartitions); if ((unsigned long )cfs_cpt_table == (unsigned long )((struct cfs_cpt_table *)0)) { tmp___22 = cfs_cdebug_show(131072U, 1024U); if (tmp___22 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___4.msg_fn = "cfs_cpu_init"; msgdata___4.msg_line = 1034; msgdata___4.msg_cdls = & cdls___3; msgdata___4.msg_mask = 131072; libcfs_debug_msg(& msgdata___4, "Failed to create ptable with npartitions %d\n", cpu_npartitions); } else { } goto failed; } else { } } spin_lock(& cpt_data.cpt_lock); if ((unsigned long )cfs_cpt_table->ctb_version != cpt_data.cpt_version) { spin_unlock(& cpt_data.cpt_lock); tmp___23 = cfs_cdebug_show(131072U, 1024U); if (tmp___23 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___5.msg_fn = "cfs_cpu_init"; msgdata___5.msg_line = 1042; msgdata___5.msg_cdls = & cdls___4; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "CPU hotplug/unplug during setup\n"); } else { } goto failed; } else { } spin_unlock(& cpt_data.cpt_lock); tmp___26 = cfs_cdebug_show(33554432U, 1024U); if (tmp___26 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c"; msgdata___6.msg_fn = "cfs_cpu_init"; msgdata___6.msg_line = 1048; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 33554432; tmp___24 = cfs_cpt_number(cfs_cpt_table); tmp___25 = cpumask_weight(cpu_online_mask); libcfs_debug_msg(& msgdata___6, "HW CPU cores: %d, npartitions: %d\n", tmp___25, tmp___24); } else { } return (0); failed: cfs_cpu_fini(); return (-1); } } void ldv_main_exported_6(void) { unsigned long ldvarg2 ; struct notifier_block *ldvarg0 ; void *tmp ; void *ldvarg1 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(24UL); ldvarg0 = (struct notifier_block *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg1 = tmp___0; ldv_memset((void *)(& ldvarg2), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_6 == 1) { cfs_cpu_notify(ldvarg0, ldvarg2, ldvarg1); ldv_state_variable_6 = 1; } else { } goto ldv_50866; default: ldv_stop(); } ldv_50866: ; return; } } void ldv_mutex_lock_63(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_64(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_65(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_66(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_67(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_68(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_69(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_70(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_71(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_72(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_73(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_74(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_75(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_mutex_trylock_98(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_93(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_96(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_99(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_94(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_95(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_97(struct mutex *ldv_func_arg1 ) ; extern int debug_lockdep_rcu_enabled(void) ; extern struct cred *prepare_creds(void) ; extern int commit_creds(struct cred * ) ; void cfs_cap_raise(cfs_cap_t cap ) ; void cfs_cap_lower(cfs_cap_t cap ) ; int cfs_cap_raised(cfs_cap_t cap ) ; cfs_cap_t cfs_curproc_cap_pack(void) ; void cfs_cap_raise(cfs_cap_t cap ) { struct cred *cred ; { cred = prepare_creds(); if ((unsigned long )cred != (unsigned long )((struct cred *)0)) { cred->cap_effective.cap[cap >> 5] = cred->cap_effective.cap[cap >> 5] | (__u32 )(1 << ((int )cap & 31)); commit_creds(cred); } else { } return; } } void cfs_cap_lower(cfs_cap_t cap ) { struct cred *cred ; { cred = prepare_creds(); if ((unsigned long )cred != (unsigned long )((struct cred *)0)) { cred->cap_effective.cap[cap >> 5] = cred->cap_effective.cap[cap >> 5] & (__u32 )(~ (1 << ((int )cap & 31))); commit_creds(cred); } else { } return; } } int cfs_cap_raised(cfs_cap_t cap ) { int tmp ; struct task_struct *tmp___0 ; { tmp = debug_lockdep_rcu_enabled(); tmp___0 = get_current(); return ((int )((tmp___0->cred)->cap_effective.cap[cap >> 5] & (unsigned int )(1 << ((int )cap & 31)))); } } static void cfs_kernel_cap_pack(kernel_cap_t kcap , cfs_cap_t *cap ) { { *cap = kcap.cap[0]; return; } } cfs_cap_t cfs_curproc_cap_pack(void) { cfs_cap_t cap ; int tmp ; struct task_struct *tmp___0 ; { tmp = debug_lockdep_rcu_enabled(); tmp___0 = get_current(); cfs_kernel_cap_pack((tmp___0->cred)->cap_effective, & cap); return (cap); } } static char const __kstrtab_cfs_cap_raise[14U] = { 'c', 'f', 's', '_', 'c', 'a', 'p', '_', 'r', 'a', 'i', 's', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cap_raise ; struct kernel_symbol const __ksymtab_cfs_cap_raise = {(unsigned long )(& cfs_cap_raise), (char const *)(& __kstrtab_cfs_cap_raise)}; static char const __kstrtab_cfs_cap_lower[14U] = { 'c', 'f', 's', '_', 'c', 'a', 'p', '_', 'l', 'o', 'w', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_cap_lower ; struct kernel_symbol const __ksymtab_cfs_cap_lower = {(unsigned long )(& cfs_cap_lower), (char const *)(& __kstrtab_cfs_cap_lower)}; static char const __kstrtab_cfs_cap_raised[15U] = { 'c', 'f', 's', '_', 'c', 'a', 'p', '_', 'r', 'a', 'i', 's', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_cap_raised ; struct kernel_symbol const __ksymtab_cfs_cap_raised = {(unsigned long )(& cfs_cap_raised), (char const *)(& __kstrtab_cfs_cap_raised)}; static char const __kstrtab_cfs_curproc_cap_pack[21U] = { 'c', 'f', 's', '_', 'c', 'u', 'r', 'p', 'r', 'o', 'c', '_', 'c', 'a', 'p', '_', 'p', 'a', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_curproc_cap_pack ; struct kernel_symbol const __ksymtab_cfs_curproc_cap_pack = {(unsigned long )(& cfs_curproc_cap_pack), (char const *)(& __kstrtab_cfs_curproc_cap_pack)}; void ldv_mutex_unlock_93(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_94(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_95(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_96(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_97(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_98(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_99(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern void __might_fault(char const * , int ) ; int ldv_mutex_trylock_116(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_111(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_114(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_117(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_112(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_113(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_115(struct mutex *ldv_func_arg1 ) ; extern bool capable(int ) ; struct file *libcfs_fops_group2 ; struct inode *libcfs_fops_group1 ; int ldv_state_variable_5 ; int ref_cnt ; void ldv_file_operations_5(void) ; extern unsigned long _copy_from_user(void * , void const * , unsigned int ) ; extern unsigned long _copy_to_user(void * , void const * , unsigned int ) ; extern void __copy_from_user_overflow(void) ; extern void __copy_to_user_overflow(void) ; __inline static unsigned long copy_from_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size((void const *)to, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 697); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_from_user(to, from, (unsigned int )n); } else { __copy_from_user_overflow(); } return (n); } } __inline static unsigned long copy_to_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size(from, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 732); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_to_user(to, from, (unsigned int )n); } else { __copy_to_user_overflow(); } return (n); } } __inline static int cfs_size_round(int val ) { { return ((val + 7) & -8); } } __inline static int libcfs_ioctl_packlen(struct libcfs_ioctl_data *data ) { int len ; int tmp ; int tmp___0 ; { len = 128; tmp = cfs_size_round((int )data->ioc_inllen1); len = tmp + len; tmp___0 = cfs_size_round((int )data->ioc_inllen2); len = tmp___0 + len; return (len); } } __inline static int libcfs_ioctl_is_invalid(struct libcfs_ioctl_data *data ) { struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___1 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___2 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___3 ; struct cfs_debug_limit_state cdls___4 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___4 ; struct cfs_debug_limit_state cdls___5 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___5 ; struct cfs_debug_limit_state cdls___6 ; struct libcfs_debug_msg_data msgdata___6 ; int tmp___6 ; struct cfs_debug_limit_state cdls___7 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___7 ; struct cfs_debug_limit_state cdls___8 ; struct libcfs_debug_msg_data msgdata___8 ; int tmp___8 ; int tmp___9 ; struct cfs_debug_limit_state cdls___9 ; struct libcfs_debug_msg_data msgdata___9 ; int tmp___10 ; struct cfs_debug_limit_state cdls___10 ; struct libcfs_debug_msg_data msgdata___10 ; int tmp___11 ; int tmp___12 ; { if (data->ioc_len > 1073741824U) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata.msg_fn = "libcfs_ioctl_is_invalid"; msgdata.msg_line = 156; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS ioctl: ioc_len larger than 1<<30\n"); } else { } return (1); } else { } if (data->ioc_inllen1 > 1073741824U) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___0.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___0.msg_line = 160; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "LIBCFS ioctl: ioc_inllen1 larger than 1<<30\n"); } else { } return (1); } else { } if (data->ioc_inllen2 > 1073741824U) { tmp___1 = cfs_cdebug_show(131072U, 1024U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___1.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___1.msg_line = 164; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS ioctl: ioc_inllen2 larger than 1<<30\n"); } else { } return (1); } else { } if ((unsigned long )data->ioc_inlbuf1 != (unsigned long )((char *)0) && data->ioc_inllen1 == 0U) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___2.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___2.msg_line = 168; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LIBCFS ioctl: inlbuf1 pointer but 0 length\n"); } else { } return (1); } else { } if ((unsigned long )data->ioc_inlbuf2 != (unsigned long )((char *)0) && data->ioc_inllen2 == 0U) { tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___3.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___3.msg_line = 172; msgdata___3.msg_cdls = & cdls___3; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "LIBCFS ioctl: inlbuf2 pointer but 0 length\n"); } else { } return (1); } else { } if ((unsigned long )data->ioc_pbuf1 != (unsigned long )((char *)0) && data->ioc_plen1 == 0U) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___4.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___4.msg_line = 176; msgdata___4.msg_cdls = & cdls___4; msgdata___4.msg_mask = 131072; libcfs_debug_msg(& msgdata___4, "LIBCFS ioctl: pbuf1 pointer but 0 length\n"); } else { } return (1); } else { } if ((unsigned long )data->ioc_pbuf2 != (unsigned long )((char *)0) && data->ioc_plen2 == 0U) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___5.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___5.msg_line = 180; msgdata___5.msg_cdls = & cdls___5; msgdata___5.msg_mask = 131072; libcfs_debug_msg(& msgdata___5, "LIBCFS ioctl: pbuf2 pointer but 0 length\n"); } else { } return (1); } else { } if (data->ioc_plen1 != 0U && (unsigned long )data->ioc_pbuf1 == (unsigned long )((char *)0)) { tmp___6 = cfs_cdebug_show(131072U, 1024U); if (tmp___6 != 0) { msgdata___6.msg_subsys = 1024; msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___6.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___6.msg_line = 184; msgdata___6.msg_cdls = & cdls___6; msgdata___6.msg_mask = 131072; libcfs_debug_msg(& msgdata___6, "LIBCFS ioctl: plen1 nonzero but no pbuf1 pointer\n"); } else { } return (1); } else { } if (data->ioc_plen2 != 0U && (unsigned long )data->ioc_pbuf2 == (unsigned long )((char *)0)) { tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata___7.msg_subsys = 1024; msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___7.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___7.msg_line = 188; msgdata___7.msg_cdls = & cdls___7; msgdata___7.msg_mask = 131072; libcfs_debug_msg(& msgdata___7, "LIBCFS ioctl: plen2 nonzero but no pbuf2 pointer\n"); } else { } return (1); } else { } tmp___9 = libcfs_ioctl_packlen(data); if ((unsigned int )tmp___9 != data->ioc_len) { tmp___8 = cfs_cdebug_show(131072U, 1024U); if (tmp___8 != 0) { msgdata___8.msg_subsys = 1024; msgdata___8.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___8.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___8.msg_line = 192; msgdata___8.msg_cdls = & cdls___8; msgdata___8.msg_mask = 131072; libcfs_debug_msg(& msgdata___8, "LIBCFS ioctl: packlen != ioc_len\n"); } else { } return (1); } else { } if (data->ioc_inllen1 != 0U && (int )((signed char )data->ioc_bulk[data->ioc_inllen1 - 1U]) != 0) { tmp___10 = cfs_cdebug_show(131072U, 1024U); if (tmp___10 != 0) { msgdata___9.msg_subsys = 1024; msgdata___9.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___9.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___9.msg_line = 197; msgdata___9.msg_cdls = & cdls___9; msgdata___9.msg_mask = 131072; libcfs_debug_msg(& msgdata___9, "LIBCFS ioctl: inlbuf1 not 0 terminated\n"); } else { } return (1); } else { } if (data->ioc_inllen2 != 0U) { tmp___12 = cfs_size_round((int )data->ioc_inllen1); if ((int )((signed char )data->ioc_bulk[((__u32 )tmp___12 + data->ioc_inllen2) - 1U]) != 0) { tmp___11 = cfs_cdebug_show(131072U, 1024U); if (tmp___11 != 0) { msgdata___10.msg_subsys = 1024; msgdata___10.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/linux/../../../include/linux/libcfs/libcfs_ioctl.h"; msgdata___10.msg_fn = "libcfs_ioctl_is_invalid"; msgdata___10.msg_line = 203; msgdata___10.msg_cdls = & cdls___10; msgdata___10.msg_mask = 131072; libcfs_debug_msg(& msgdata___10, "LIBCFS ioctl: inlbuf2 not 0 terminated\n"); } else { } return (1); } else { } } else { } return (0); } } int libcfs_ioctl_getdata(char *buf , char *end , void *arg ) ; int libcfs_ioctl_popdata(void *arg , void *data , int size ) ; int libcfs_ioctl_getdata(char *buf , char *end , void *arg ) { struct libcfs_ioctl_hdr *hdr ; struct libcfs_ioctl_data *data ; int orig_len ; unsigned long tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; unsigned long tmp___3 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; { hdr = (struct libcfs_ioctl_hdr *)buf; data = (struct libcfs_ioctl_data *)buf; tmp = copy_from_user((void *)buf, (void const *)arg, 8UL); if (tmp != 0UL) { return (-14); } else { } if (hdr->ioc_version != 65546U) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c"; msgdata.msg_fn = "libcfs_ioctl_getdata"; msgdata.msg_line = 56; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "PORTALS: version mismatch kernel vs application\n"); } else { } return (-22); } else { } if ((long )hdr->ioc_len >= (long )end - (long )buf) { tmp___1 = cfs_cdebug_show(131072U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c"; msgdata___0.msg_fn = "libcfs_ioctl_getdata"; msgdata___0.msg_line = 61; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "PORTALS: user buffer exceeds kernel buffer\n"); } else { } return (-22); } else { } if (hdr->ioc_len <= 127U) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c"; msgdata___1.msg_fn = "libcfs_ioctl_getdata"; msgdata___1.msg_line = 67; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "PORTALS: user buffer too small for ioctl\n"); } else { } return (-22); } else { } orig_len = (int )hdr->ioc_len; tmp___3 = copy_from_user((void *)buf, (void const *)arg, (unsigned long )hdr->ioc_len); if (tmp___3 != 0UL) { return (-14); } else { } if ((__u32 )orig_len != data->ioc_len) { return (-22); } else { } tmp___5 = libcfs_ioctl_is_invalid(data); if (tmp___5 != 0) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c"; msgdata___2.msg_fn = "libcfs_ioctl_getdata"; msgdata___2.msg_line = 78; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "PORTALS: ioctl not correctly formatted\n"); } else { } return (-22); } else { } if (data->ioc_inllen1 != 0U) { data->ioc_inlbuf1 = (char *)(& data->ioc_bulk); } else { } if (data->ioc_inllen2 != 0U) { tmp___6 = cfs_size_round((int )data->ioc_inllen1); data->ioc_inlbuf2 = (char *)(& data->ioc_bulk) + (unsigned long )tmp___6; } else { } return (0); } } int libcfs_ioctl_popdata(void *arg , void *data , int size ) { unsigned long tmp ; { tmp = copy_to_user(arg, (void const *)data, (unsigned long )size); if (tmp != 0UL) { return (-14); } else { } return (0); } } struct cfs_psdev_ops libcfs_psdev_ops ; static int libcfs_psdev_open(struct inode *inode , struct file *file ) { struct libcfs_device_userstate **pdu ; int rc ; { pdu = (struct libcfs_device_userstate **)0; rc = 0; if ((unsigned long )inode == (unsigned long )((struct inode *)0)) { return (-22); } else { } pdu = (struct libcfs_device_userstate **)(& file->private_data); if ((unsigned long )libcfs_psdev_ops.p_open != (unsigned long )((int (*)(unsigned long , void * ))0)) { rc = (*(libcfs_psdev_ops.p_open))(0UL, (void *)pdu); } else { return (-1); } return (rc); } } static int libcfs_psdev_release(struct inode *inode , struct file *file ) { struct libcfs_device_userstate *pdu ; int rc ; { rc = 0; if ((unsigned long )inode == (unsigned long )((struct inode *)0)) { return (-22); } else { } pdu = (struct libcfs_device_userstate *)file->private_data; if ((unsigned long )libcfs_psdev_ops.p_close != (unsigned long )((int (*)(unsigned long , void * ))0)) { rc = (*(libcfs_psdev_ops.p_close))(0UL, (void *)pdu); } else { rc = -1; } return (rc); } } static long libcfs_ioctl(struct file *file , unsigned int cmd , unsigned long arg ) { struct cfs_psdev_file pfile ; int rc ; bool tmp ; int tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; bool tmp___4 ; int tmp___5 ; { rc = 0; tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-13L); } else { } if ((((cmd >> 8) & 255U) != 101U || (cmd & 255U) <= 29U) || (cmd & 255U) > 80U) { tmp___1 = cfs_cdebug_show(128U, 1024U); if (tmp___1 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-module.c"; msgdata.msg_fn = "libcfs_ioctl"; msgdata.msg_line = 147; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 128; libcfs_debug_msg(& msgdata, "invalid ioctl ( type %d, nr %d, size %d )\n", (cmd >> 8) & 255U, cmd & 255U, (cmd >> 16) & 16383U); } else { } return (-22L); } else { } switch (cmd) { case 3221775646U: tmp___2 = capable(23); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return (-1L); } else { } panic("debugctl-invoked panic"); return (0L); case 3221775652U: tmp___4 = capable(21); if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { return (-1L); } else { } } pfile.off = 0UL; pfile.private_data = file->private_data; if ((unsigned long )libcfs_psdev_ops.p_ioctl != (unsigned long )((int (*)(struct cfs_psdev_file * , unsigned long , void * ))0)) { rc = (*(libcfs_psdev_ops.p_ioctl))(& pfile, (unsigned long )cmd, (void *)arg); } else { rc = -1; } return ((long )rc); } } static struct file_operations const libcfs_fops = {0, 0, 0, 0, 0, 0, 0, 0, & libcfs_ioctl, 0, 0, 0, & libcfs_psdev_open, 0, & libcfs_psdev_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; struct miscdevice libcfs_dev = {240, "lnet", & libcfs_fops, {0, 0}, 0, 0, 0, 0, (unsigned short)0}; int ldv_retval_2 ; void ldv_file_operations_5(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); libcfs_fops_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); libcfs_fops_group2 = (struct file *)tmp___0; return; } } void ldv_main_exported_5(void) { unsigned long ldvarg26 ; unsigned int ldvarg27 ; int tmp ; { ldv_memset((void *)(& ldvarg26), 0, 8UL); ldv_memset((void *)(& ldvarg27), 0, 4UL); tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_5 == 2) { libcfs_psdev_release(libcfs_fops_group1, libcfs_fops_group2); ldv_state_variable_5 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_50106; case 1: ; if (ldv_state_variable_5 == 1) { ldv_retval_2 = libcfs_psdev_open(libcfs_fops_group1, libcfs_fops_group2); if (ldv_retval_2 == 0) { ldv_state_variable_5 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_50106; case 2: ; if (ldv_state_variable_5 == 2) { libcfs_ioctl(libcfs_fops_group2, ldvarg27, ldvarg26); ldv_state_variable_5 = 2; } else { } goto ldv_50106; default: ldv_stop(); } ldv_50106: ; return; } } void ldv_mutex_unlock_111(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_112(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_113(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_114(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_115(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_116(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_117(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; bool ldv_is_err(void const *ptr ) ; void *ldv_err_ptr(long error ) ; long ldv_ptr_err(void const *ptr ) ; __inline static void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_134(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_129(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_132(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_135(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_130(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_131(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_133(struct mutex *ldv_func_arg1 ) ; extern unsigned long volatile jiffies ; extern unsigned int jiffies_to_msecs(unsigned long const ) ; extern struct crypto_tfm *crypto_alloc_base(char const * , u32 , u32 ) ; __inline static void crypto_free_tfm(struct crypto_tfm *tfm ) { { return; } } __inline static struct crypto_hash *__crypto_hash_cast(struct crypto_tfm *tfm ) { { return ((struct crypto_hash *)tfm); } } __inline static struct crypto_hash *crypto_alloc_hash(char const *alg_name , u32 type , u32 mask ) { struct crypto_tfm *tmp ; struct crypto_hash *tmp___0 ; { type = type & 4294967280U; mask = mask & 4294967280U; type = type | 8U; mask = mask | 14U; tmp = crypto_alloc_base(alg_name, type, mask); tmp___0 = __crypto_hash_cast(tmp); return (tmp___0); } } __inline static struct crypto_tfm *crypto_hash_tfm(struct crypto_hash *tfm ) { { return (& tfm->base); } } __inline static void crypto_free_hash(struct crypto_hash *tfm ) { struct crypto_tfm *tmp ; { tmp = crypto_hash_tfm(tfm); crypto_free_tfm(tmp); return; } } __inline static struct hash_tfm *crypto_hash_crt(struct crypto_hash *tfm ) { struct crypto_tfm *tmp ; { tmp = crypto_hash_tfm(tfm); return (& tmp->crt_u.hash); } } __inline static unsigned int crypto_hash_digestsize(struct crypto_hash *tfm ) { struct hash_tfm *tmp ; { tmp = crypto_hash_crt(tfm); return (tmp->digestsize); } } __inline static int crypto_hash_init(struct hash_desc *desc ) { struct hash_tfm *tmp ; int tmp___0 ; { tmp = crypto_hash_crt(desc->tfm); tmp___0 = (*(tmp->init))(desc); return (tmp___0); } } __inline static int crypto_hash_update(struct hash_desc *desc , struct scatterlist *sg , unsigned int nbytes ) { struct hash_tfm *tmp ; int tmp___0 ; { tmp = crypto_hash_crt(desc->tfm); tmp___0 = (*(tmp->update))(desc, sg, nbytes); return (tmp___0); } } __inline static int crypto_hash_final(struct hash_desc *desc , u8 *out ) { struct hash_tfm *tmp ; int tmp___0 ; { tmp = crypto_hash_crt(desc->tfm); tmp___0 = (*(tmp->final))(desc, out); return (tmp___0); } } __inline static int crypto_hash_digest(struct hash_desc *desc , struct scatterlist *sg , unsigned int nbytes , u8 *out ) { struct hash_tfm *tmp ; int tmp___0 ; { tmp = crypto_hash_crt(desc->tfm); tmp___0 = (*(tmp->digest))(desc, sg, nbytes, out); return (tmp___0); } } __inline static int crypto_hash_setkey(struct crypto_hash *hash , u8 const *key , unsigned int keylen ) { struct hash_tfm *tmp ; int tmp___0 ; { tmp = crypto_hash_crt(hash); tmp___0 = (*(tmp->setkey))(hash, key, keylen); return (tmp___0); } } __inline static void sg_assign_page(struct scatterlist *sg , struct page *page ) { unsigned long page_link ; long tmp ; long tmp___0 ; long tmp___1 ; { page_link = sg->page_link & 3UL; tmp = ldv__builtin_expect(((unsigned long )page & 3UL) != 0UL, 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/scatterlist.h"), "i" (90), "i" (12UL)); ldv_22280: ; goto ldv_22280; } else { } tmp___0 = ldv__builtin_expect(sg->sg_magic != 2271560481UL, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/scatterlist.h"), "i" (92), "i" (12UL)); ldv_22281: ; goto ldv_22281; } else { } tmp___1 = ldv__builtin_expect((long )((int )sg->page_link) & 1L, 0L); if (tmp___1 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/scatterlist.h"), "i" (93), "i" (12UL)); ldv_22282: ; goto ldv_22282; } else { } sg->page_link = page_link | (unsigned long )page; return; } } __inline static void sg_set_page(struct scatterlist *sg , struct page *page , unsigned int len , unsigned int offset ) { { sg_assign_page(sg, page); sg->offset = offset; sg->length = len; return; } } extern void sg_init_table(struct scatterlist * , unsigned int ) ; extern void sg_init_one(struct scatterlist * , void const * , unsigned int ) ; extern int __request_module(bool , char const * , ...) ; static struct cfs_crypto_hash_type hash_types[9U] = { {(char *)"null", 0U, 0U}, {(char *)"adler32", 1U, 4U}, {(char *)"crc32", 4294967295U, 4U}, {(char *)"md5", 0U, 16U}, {(char *)"sha1", 0U, 20U}, {(char *)"sha256", 0U, 32U}, {(char *)"sha384", 0U, 48U}, {(char *)"sha512", 0U, 64U}, {(char *)"crc32c", 4294967295U, 4U}}; __inline static struct cfs_crypto_hash_type const *cfs_crypto_hash_type(unsigned char hash_alg ) { struct cfs_crypto_hash_type *ht ; { if ((unsigned int )hash_alg <= 8U) { ht = (struct cfs_crypto_hash_type *)(& hash_types) + (unsigned long )hash_alg; if ((unsigned long )ht->cht_name != (unsigned long )((char *)0)) { return ((struct cfs_crypto_hash_type const *)ht); } else { } } else { } return ((struct cfs_crypto_hash_type const *)0); } } __inline static char const *cfs_crypto_hash_name(unsigned char hash_alg ) { struct cfs_crypto_hash_type const *ht ; { ht = cfs_crypto_hash_type((int )hash_alg); if ((unsigned long )ht != (unsigned long )((struct cfs_crypto_hash_type const *)0)) { return ((char const *)ht->cht_name); } else { } return ("unknown"); } } int cfs_crypto_hash_digest(unsigned char alg_id , void const *buf , unsigned int buf_len , unsigned char *key , unsigned int key_len , unsigned char *hash , unsigned int *hash_len ) ; struct cfs_crypto_hash_desc *cfs_crypto_hash_init(unsigned char alg_id , unsigned char *key , unsigned int key_len ) ; int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc *hdesc , struct page *page , unsigned int offset , unsigned int len ) ; int cfs_crypto_hash_update(struct cfs_crypto_hash_desc *hdesc , void const *buf , unsigned int buf_len ) ; int cfs_crypto_hash_final(struct cfs_crypto_hash_desc *hdesc , unsigned char *hash , unsigned int *hash_len ) ; int cfs_crypto_register(void) ; void cfs_crypto_unregister(void) ; int cfs_crypto_hash_speed(unsigned char hash_alg ) ; int cfs_crypto_adler32_register(void) ; void cfs_crypto_adler32_unregister(void) ; static int cfs_crypto_hash_speeds[9U] ; static int cfs_crypto_hash_alloc(unsigned char alg_id , struct cfs_crypto_hash_type const **type , struct hash_desc *desc , unsigned char *key , unsigned int key_len ) { int err ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; long tmp___1 ; bool tmp___2 ; struct libcfs_debug_msg_data msgdata___1 ; struct crypto_tfm *tmp___3 ; struct crypto_tfm *tmp___4 ; int tmp___5 ; int tmp___6 ; { err = 0; *type = cfs_crypto_hash_type((int )alg_id); if ((unsigned long )*type == (unsigned long )((struct cfs_crypto_hash_type const *)0)) { tmp = cfs_cdebug_show(1024U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata.msg_fn = "cfs_crypto_hash_alloc"; msgdata.msg_line = 52; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Unsupported hash algorithm id = %d, max id is %d\n", (int )alg_id, 9); } else { } return (-22); } else { } desc->tfm = crypto_alloc_hash((char const *)(*type)->cht_name, 0U, 0U); if ((unsigned long )desc->tfm == (unsigned long )((struct crypto_hash *)0)) { return (-22); } else { } tmp___2 = IS_ERR((void const *)desc->tfm); if ((int )tmp___2) { tmp___0 = cfs_cdebug_show(64U, 1U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata___0.msg_fn = "cfs_crypto_hash_alloc"; msgdata___0.msg_line = 62; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; libcfs_debug_msg(& msgdata___0, "Failed to alloc crypto hash %s\n", (*type)->cht_name); } else { } tmp___1 = PTR_ERR((void const *)desc->tfm); return ((int )tmp___1); } else { } desc->flags = 0U; if ((unsigned long )key != (unsigned long )((unsigned char *)0U)) { err = crypto_hash_setkey(desc->tfm, (u8 const *)key, key_len); } else if ((unsigned int )(*type)->cht_key != 0U) { err = crypto_hash_setkey(desc->tfm, (u8 const *)(& (*type)->cht_key), (*type)->cht_size); } else { } if (err != 0) { crypto_free_hash(desc->tfm); return (err); } else { } tmp___5 = cfs_cdebug_show(64U, 1U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata___1.msg_fn = "cfs_crypto_hash_alloc"; msgdata___1.msg_line = 90; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 64; tmp___3 = crypto_hash_tfm(desc->tfm); tmp___4 = crypto_hash_tfm(desc->tfm); libcfs_debug_msg(& msgdata___1, "Using crypto hash: %s (%s) speed %d MB/s\n", (char *)(& (tmp___4->__crt_alg)->cra_name), (char *)(& (tmp___3->__crt_alg)->cra_driver_name), cfs_crypto_hash_speeds[(int )alg_id]); } else { } tmp___6 = crypto_hash_init(desc); return (tmp___6); } } int cfs_crypto_hash_digest(unsigned char alg_id , void const *buf , unsigned int buf_len , unsigned char *key , unsigned int key_len , unsigned char *hash , unsigned int *hash_len ) { struct scatterlist sl ; struct hash_desc hdesc ; int err ; struct cfs_crypto_hash_type const *type ; { if (((unsigned long )buf == (unsigned long )((void const *)0) || buf_len == 0U) || (unsigned long )hash_len == (unsigned long )((unsigned int *)0U)) { return (-22); } else { } err = cfs_crypto_hash_alloc((int )alg_id, & type, & hdesc, key, key_len); if (err != 0) { return (err); } else { } if ((unsigned long )hash == (unsigned long )((unsigned char *)0U) || *hash_len < (unsigned int )type->cht_size) { *hash_len = type->cht_size; crypto_free_hash(hdesc.tfm); return (-28); } else { } sg_init_one(& sl, buf, buf_len); hdesc.flags = 0U; err = crypto_hash_digest(& hdesc, & sl, sl.length, hash); crypto_free_hash(hdesc.tfm); return (err); } } static char const __kstrtab_cfs_crypto_hash_digest[23U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 'd', 'i', 'g', 'e', 's', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_digest ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_digest = {(unsigned long )(& cfs_crypto_hash_digest), (char const *)(& __kstrtab_cfs_crypto_hash_digest)}; struct cfs_crypto_hash_desc *cfs_crypto_hash_init(unsigned char alg_id , unsigned char *key , unsigned int key_len ) { struct hash_desc *hdesc ; int err ; struct cfs_crypto_hash_type const *type ; void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = kmalloc(16UL, 0U); hdesc = (struct hash_desc *)tmp; if ((unsigned long )hdesc == (unsigned long )((struct hash_desc *)0)) { tmp___0 = ERR_PTR(-12L); return ((struct cfs_crypto_hash_desc *)tmp___0); } else { } err = cfs_crypto_hash_alloc((int )alg_id, & type, hdesc, key, key_len); if (err != 0) { kfree((void const *)hdesc); tmp___1 = ERR_PTR((long )err); return ((struct cfs_crypto_hash_desc *)tmp___1); } else { } return ((struct cfs_crypto_hash_desc *)hdesc); } } static char const __kstrtab_cfs_crypto_hash_init[21U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 'i', 'n', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_init ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_init = {(unsigned long )(& cfs_crypto_hash_init), (char const *)(& __kstrtab_cfs_crypto_hash_init)}; int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc *hdesc , struct page *page , unsigned int offset , unsigned int len ) { struct scatterlist sl ; int tmp ; { sg_init_table(& sl, 1U); sg_set_page(& sl, page, len, offset & 4095U); tmp = crypto_hash_update((struct hash_desc *)hdesc, & sl, sl.length); return (tmp); } } static char const __kstrtab_cfs_crypto_hash_update_page[28U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 'u', 'p', 'd', 'a', 't', 'e', '_', 'p', 'a', 'g', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_update_page ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_update_page = {(unsigned long )(& cfs_crypto_hash_update_page), (char const *)(& __kstrtab_cfs_crypto_hash_update_page)}; int cfs_crypto_hash_update(struct cfs_crypto_hash_desc *hdesc , void const *buf , unsigned int buf_len ) { struct scatterlist sl ; int tmp ; { sg_init_one(& sl, buf, buf_len); tmp = crypto_hash_update((struct hash_desc *)hdesc, & sl, sl.length); return (tmp); } } static char const __kstrtab_cfs_crypto_hash_update[23U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 'u', 'p', 'd', 'a', 't', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_update ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_update = {(unsigned long )(& cfs_crypto_hash_update), (char const *)(& __kstrtab_cfs_crypto_hash_update)}; int cfs_crypto_hash_final(struct cfs_crypto_hash_desc *hdesc , unsigned char *hash , unsigned int *hash_len ) { int err ; int size ; unsigned int tmp ; { tmp = crypto_hash_digestsize(((struct hash_desc *)hdesc)->tfm); size = (int )tmp; if ((unsigned long )hash_len == (unsigned long )((unsigned int *)0U)) { crypto_free_hash(((struct hash_desc *)hdesc)->tfm); kfree((void const *)hdesc); return (0); } else { } if ((unsigned long )hash == (unsigned long )((unsigned char *)0U) || *hash_len < (unsigned int )size) { *hash_len = (unsigned int )size; return (-28); } else { } err = crypto_hash_final((struct hash_desc *)hdesc, hash); if (err < 0) { return (err); } else { } crypto_free_hash(((struct hash_desc *)hdesc)->tfm); kfree((void const *)hdesc); return (err); } } static char const __kstrtab_cfs_crypto_hash_final[22U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 'f', 'i', 'n', 'a', 'l', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_final ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_final = {(unsigned long )(& cfs_crypto_hash_final), (char const *)(& __kstrtab_cfs_crypto_hash_final)}; static void cfs_crypto_performance_test(unsigned char alg_id , unsigned char const *buf , unsigned int buf_len ) { unsigned long start ; unsigned long end ; int bcount ; int err ; int sec ; unsigned char hash[64U] ; unsigned int hash_len ; struct libcfs_debug_msg_data msgdata ; char const *tmp ; int tmp___0 ; unsigned long tmp___1 ; unsigned int tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; char const *tmp___3 ; int tmp___4 ; { err = 0; sec = 1; hash_len = 64U; start = jiffies; end = (unsigned long )(sec * 250) + start; bcount = 0; goto ldv_50863; ldv_50862: err = cfs_crypto_hash_digest((int )alg_id, (void const *)buf, buf_len, (unsigned char *)0U, 0U, (unsigned char *)(& hash), & hash_len); if (err != 0) { goto ldv_50861; } else { } bcount = bcount + 1; ldv_50863: ; if ((long )((unsigned long )jiffies - end) < 0L) { goto ldv_50862; } else { } ldv_50861: end = jiffies; if (err != 0) { cfs_crypto_hash_speeds[(int )alg_id] = -1; tmp___0 = cfs_cdebug_show(64U, 1U); if (tmp___0 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata.msg_fn = "cfs_crypto_performance_test"; msgdata.msg_line = 225; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp = cfs_crypto_hash_name((int )alg_id); libcfs_debug_msg(& msgdata, "Crypto hash algorithm %s, err = %d\n", tmp, err); } else { } } else { tmp___2 = jiffies_to_msecs(end - start); tmp___1 = (unsigned long )(((((unsigned int )bcount * buf_len) / tmp___2) * 1000U) / 1048576U); cfs_crypto_hash_speeds[(int )alg_id] = (int )tmp___1; } tmp___4 = cfs_cdebug_show(64U, 1U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata___0.msg_fn = "cfs_crypto_performance_test"; msgdata___0.msg_line = 233; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 64; tmp___3 = cfs_crypto_hash_name((int )alg_id); libcfs_debug_msg(& msgdata___0, "Crypto hash algorithm %s speed = %d MB/s\n", tmp___3, cfs_crypto_hash_speeds[(int )alg_id]); } else { } return; } } int cfs_crypto_hash_speed(unsigned char hash_alg ) { { if ((unsigned int )hash_alg <= 8U) { return (cfs_crypto_hash_speeds[(int )hash_alg]); } else { return (-1); } } } static char const __kstrtab_cfs_crypto_hash_speed[22U] = { 'c', 'f', 's', '_', 'c', 'r', 'y', 'p', 't', 'o', '_', 'h', 'a', 's', 'h', '_', 's', 'p', 'e', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_crypto_hash_speed ; struct kernel_symbol const __ksymtab_cfs_crypto_hash_speed = {(unsigned long )(& cfs_crypto_hash_speed), (char const *)(& __kstrtab_cfs_crypto_hash_speed)}; static int cfs_crypto_test_hashes(void) { unsigned char i ; unsigned char *data ; unsigned int j ; unsigned int data_len ; void *tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; { data_len = 131072U; tmp = kmalloc((size_t )data_len, 0U); data = (unsigned char *)tmp; if ((unsigned long )data == (unsigned long )((unsigned char *)0U)) { tmp___0 = cfs_cdebug_show(131072U, 1U); if (tmp___0 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c"; msgdata.msg_fn = "cfs_crypto_test_hashes"; msgdata.msg_line = 259; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Failed to allocate mem\n"); } else { } return (-12); } else { } j = 0U; goto ldv_50889; ldv_50888: *(data + (unsigned long )j) = (unsigned char )j; j = j + 1U; ldv_50889: ; if (j < data_len) { goto ldv_50888; } else { } i = 0U; goto ldv_50892; ldv_50891: cfs_crypto_performance_test((int )i, (unsigned char const *)data, data_len); i = (unsigned char )((int )i + 1); ldv_50892: ; if ((unsigned int )i <= 8U) { goto ldv_50891; } else { } kfree((void const *)data); return (0); } } static int adler32 ; int cfs_crypto_register(void) { { __request_module(1, "crc32c"); adler32 = cfs_crypto_adler32_register(); cfs_crypto_test_hashes(); return (0); } } void cfs_crypto_unregister(void) { { if (adler32 == 0) { cfs_crypto_adler32_unregister(); } else { } return; } } __inline static void *ERR_PTR(long error ) { void *tmp ; { tmp = ldv_err_ptr(error); return (tmp); } } __inline static long PTR_ERR(void const *ptr ) { long tmp ; { tmp = ldv_ptr_err(ptr); return (tmp); } } __inline static bool IS_ERR(void const *ptr ) { bool tmp ; { tmp = ldv_is_err(ptr); return (tmp); } } void ldv_mutex_unlock_129(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_130(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_131(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_132(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_133(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_134(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_135(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } extern struct module __this_module ; int ldv_mutex_trylock_150(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_148(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_151(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_147(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_149(struct mutex *ldv_func_arg1 ) ; struct shash_desc *alg_group0 ; int ldv_state_variable_4 ; void ldv_initialize_shash_alg_4(void) ; __inline static uLong zlib_adler32(uLong adler , Byte const *buf , uInt len ) { unsigned long s1 ; unsigned long s2 ; int k ; Byte const *tmp ; { s1 = adler & 65535UL; s2 = (adler >> 16) & 65535UL; if ((unsigned long )buf == (unsigned long )((Byte const *)0U)) { return (1UL); } else { } goto ldv_20111; ldv_20110: k = (int )(5552U < len ? 5552U : len); len = len - (uInt )k; goto ldv_20106; ldv_20105: s1 = (unsigned long )*buf + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 1UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 2UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 3UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 4UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 5UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 6UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 7UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 8UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 9UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 10UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 11UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 12UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 13UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 14UL) + s1; s2 = s2 + s1; s1 = (unsigned long )*(buf + 15UL) + s1; s2 = s2 + s1; buf = buf + 16UL; k = k + -16; ldv_20106: ; if (k > 15) { goto ldv_20105; } else { } if (k != 0) { ldv_20108: tmp = buf; buf = buf + 1; s1 = (unsigned long )*tmp + s1; s2 = s2 + s1; k = k - 1; if (k != 0) { goto ldv_20108; } else { } } else { } s1 = s1 % 65521UL; s2 = s2 % 65521UL; ldv_20111: ; if (len != 0U) { goto ldv_20110; } else { } return ((s2 << 16) | s1); } } __inline static void crypto_tfm_set_flags(struct crypto_tfm *tfm , u32 flags ) { { tfm->crt_flags = tfm->crt_flags | flags; return; } } __inline static void *crypto_tfm_ctx(struct crypto_tfm *tfm ) { { return ((void *)(& tfm->__crt_ctx)); } } __inline static struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm ) { { return (& tfm->base); } } __inline static void crypto_shash_set_flags(struct crypto_shash *tfm , u32 flags ) { struct crypto_tfm *tmp ; { tmp = crypto_shash_tfm(tfm); crypto_tfm_set_flags(tmp, flags); return; } } __inline static void *shash_desc_ctx(struct shash_desc *desc ) { { return ((void *)(& desc->__ctx)); } } extern int crypto_register_shash(struct shash_alg * ) ; extern int crypto_unregister_shash(struct shash_alg * ) ; __inline static void *crypto_shash_ctx(struct crypto_shash *tfm ) { void *tmp ; { tmp = crypto_tfm_ctx(& tfm->base); return (tmp); } } static u32 __adler32(u32 cksum , unsigned char const *p , size_t len ) { uLong tmp ; { tmp = zlib_adler32((uLong )cksum, p, (uInt )len); return ((u32 )tmp); } } static int adler32_cra_init(struct crypto_tfm *tfm ) { u32 *key ; void *tmp ; { tmp = crypto_tfm_ctx(tfm); key = (u32 *)tmp; *key = 1U; return (0); } } static int adler32_setkey(struct crypto_shash *hash , u8 const *key , unsigned int keylen ) { u32 *mctx ; void *tmp ; { tmp = crypto_shash_ctx(hash); mctx = (u32 *)tmp; if (keylen != 4U) { crypto_shash_set_flags(hash, 2097152U); return (-22); } else { } *mctx = *((u32 *)key); return (0); } } static int adler32_init(struct shash_desc *desc ) { u32 *mctx ; void *tmp ; u32 *cksump ; void *tmp___0 ; { tmp = crypto_shash_ctx(desc->tfm); mctx = (u32 *)tmp; tmp___0 = shash_desc_ctx(desc); cksump = (u32 *)tmp___0; *cksump = *mctx; return (0); } } static int adler32_update(struct shash_desc *desc , u8 const *data , unsigned int len ) { u32 *cksump ; void *tmp ; { tmp = shash_desc_ctx(desc); cksump = (u32 *)tmp; *cksump = __adler32(*cksump, data, (size_t )len); return (0); } } static int __adler32_finup(u32 *cksump , u8 const *data , unsigned int len , u8 *out ) { { *((u32 *)out) = __adler32(*cksump, data, (size_t )len); return (0); } } static int adler32_finup(struct shash_desc *desc , u8 const *data , unsigned int len , u8 *out ) { void *tmp ; int tmp___0 ; { tmp = shash_desc_ctx(desc); tmp___0 = __adler32_finup((u32 *)tmp, data, len, out); return (tmp___0); } } static int adler32_final(struct shash_desc *desc , u8 *out ) { u32 *cksump ; void *tmp ; { tmp = shash_desc_ctx(desc); cksump = (u32 *)tmp; *((u32 *)out) = *cksump; return (0); } } static int adler32_digest(struct shash_desc *desc , u8 const *data , unsigned int len , u8 *out ) { void *tmp ; int tmp___0 ; { tmp = crypto_shash_ctx(desc->tfm); tmp___0 = __adler32_finup((u32 *)tmp, data, len, out); return (tmp___0); } } static struct shash_alg alg = {& adler32_init, & adler32_update, & adler32_final, & adler32_finup, & adler32_digest, 0, 0, & adler32_setkey, 4U, 4U, 0U, {{0, 0}, {0, 0}, 0U, 1U, 4U, 0U, 100, {0}, {'a', 'd', 'l', 'e', 'r', '3', '2', '\000'}, {'a', 'd', 'l', 'e', 'r', '3', '2', '-', 'z', 'l', 'i', 'b', '\000'}, 0, {{0, 0, 0, 0, 0, 0, 0U, 0U, 0U}}, & adler32_cra_init, 0, 0, & __this_module}}; int cfs_crypto_adler32_register(void) { int tmp ; { tmp = crypto_register_shash(& alg); return (tmp); } } void cfs_crypto_adler32_unregister(void) { { crypto_unregister_shash(& alg); return; } } extern int ldv_release_4(void) ; int ldv_retval_0 ; extern int ldv_setup_4(void) ; void ldv_initialize_shash_alg_4(void) { void *tmp ; { tmp = ldv_init_zalloc(16UL); alg_group0 = (struct shash_desc *)tmp; return; } } void ldv_main_exported_4(void) { unsigned int ldvarg19 ; unsigned int ldvarg22 ; u8 *ldvarg13 ; void *tmp ; struct crypto_tfm *ldvarg17 ; void *tmp___0 ; u8 *ldvarg14 ; void *tmp___1 ; u8 *ldvarg25 ; void *tmp___2 ; u8 *ldvarg21 ; void *tmp___3 ; unsigned int ldvarg15 ; u8 *ldvarg16 ; void *tmp___4 ; u8 *ldvarg23 ; void *tmp___5 ; u8 *ldvarg20 ; void *tmp___6 ; struct crypto_shash *ldvarg18 ; void *tmp___7 ; unsigned int ldvarg24 ; int tmp___8 ; { tmp = ldv_init_zalloc(1UL); ldvarg13 = (u8 *)tmp; tmp___0 = ldv_init_zalloc(80UL); ldvarg17 = (struct crypto_tfm *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg14 = (u8 *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg25 = (u8 *)tmp___2; tmp___3 = ldv_init_zalloc(1UL); ldvarg21 = (u8 *)tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg16 = (u8 *)tmp___4; tmp___5 = ldv_init_zalloc(1UL); ldvarg23 = (u8 *)tmp___5; tmp___6 = ldv_init_zalloc(1UL); ldvarg20 = (u8 *)tmp___6; tmp___7 = ldv_init_zalloc(88UL); ldvarg18 = (struct crypto_shash *)tmp___7; ldv_memset((void *)(& ldvarg19), 0, 4UL); ldv_memset((void *)(& ldvarg22), 0, 4UL); ldv_memset((void *)(& ldvarg15), 0, 4UL); ldv_memset((void *)(& ldvarg24), 0, 4UL); tmp___8 = __VERIFIER_nondet_int(); switch (tmp___8) { case 0: ; if (ldv_state_variable_4 == 2) { ldv_retval_0 = adler32_init(alg_group0); if (ldv_retval_0 == 0) { ldv_state_variable_4 = 3; } else { } } else { } goto ldv_29672; case 1: ; if (ldv_state_variable_4 == 1) { adler32_update(alg_group0, (u8 const *)ldvarg25, ldvarg24); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_update(alg_group0, (u8 const *)ldvarg25, ldvarg24); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_update(alg_group0, (u8 const *)ldvarg25, ldvarg24); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 2: ; if (ldv_state_variable_4 == 1) { adler32_digest(alg_group0, (u8 const *)ldvarg23, ldvarg22, ldvarg21); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_digest(alg_group0, (u8 const *)ldvarg23, ldvarg22, ldvarg21); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_digest(alg_group0, (u8 const *)ldvarg23, ldvarg22, ldvarg21); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 3: ; if (ldv_state_variable_4 == 1) { adler32_setkey(ldvarg18, (u8 const *)ldvarg20, ldvarg19); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_setkey(ldvarg18, (u8 const *)ldvarg20, ldvarg19); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_setkey(ldvarg18, (u8 const *)ldvarg20, ldvarg19); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 4: ; if (ldv_state_variable_4 == 1) { adler32_cra_init(ldvarg17); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_cra_init(ldvarg17); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_cra_init(ldvarg17); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 5: ; if (ldv_state_variable_4 == 1) { adler32_finup(alg_group0, (u8 const *)ldvarg16, ldvarg15, ldvarg14); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_finup(alg_group0, (u8 const *)ldvarg16, ldvarg15, ldvarg14); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_finup(alg_group0, (u8 const *)ldvarg16, ldvarg15, ldvarg14); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 6: ; if (ldv_state_variable_4 == 1) { adler32_final(alg_group0, ldvarg13); ldv_state_variable_4 = 1; } else { } if (ldv_state_variable_4 == 3) { adler32_final(alg_group0, ldvarg13); ldv_state_variable_4 = 3; } else { } if (ldv_state_variable_4 == 2) { adler32_final(alg_group0, ldvarg13); ldv_state_variable_4 = 2; } else { } goto ldv_29672; case 7: ; if (ldv_state_variable_4 == 1) { ldv_setup_4(); ldv_state_variable_4 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_29672; case 8: ; if (ldv_state_variable_4 == 3) { ldv_release_4(); ldv_state_variable_4 = 1; ref_cnt = ref_cnt - 1; } else { } if (ldv_state_variable_4 == 2) { ldv_release_4(); ldv_state_variable_4 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_29672; default: ldv_stop(); } ldv_29672: ; return; } } void ldv_mutex_lock_147(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_148(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_149(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_150(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_151(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_166(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_161(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_164(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_167(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_162(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_163(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_165(struct mutex *ldv_func_arg1 ) ; extern void *__kmalloc_node(size_t , gfp_t , int ) ; __inline static void *kmalloc_node(size_t size , gfp_t flags , int node ) { void *tmp___1 ; { tmp___1 = __kmalloc_node(size, flags, node); return (tmp___1); } } void *ldv_zalloc(size_t size ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) { void *tmp ; { tmp = kmalloc(size, flags | 32768U); return (tmp); } } __inline static void *kzalloc_node(size_t size , gfp_t flags , int node ) { void *tmp ; { tmp = kmalloc_node(size, flags | 32768U, node); return (tmp); } } extern void *vmalloc_node(unsigned long , int ) ; extern void *__vmalloc(unsigned long , gfp_t , pgprot_t ) ; void *libcfs_kvzalloc(size_t size , gfp_t flags ) ; void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab , int cpt , size_t size , gfp_t flags ) ; void *libcfs_kvzalloc(size_t size , gfp_t flags ) { void *ret ; pgprot_t __constr_expr_0 ; { ret = kzalloc(size, flags | 512U); if ((unsigned long )ret == (unsigned long )((void *)0)) { __constr_expr_0.pgprot = 0x8000000000000163UL; ret = __vmalloc(size, flags | 32768U, __constr_expr_0); } else { } return (ret); } } static char const __kstrtab_libcfs_kvzalloc[16U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'v', 'z', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kvzalloc ; struct kernel_symbol const __ksymtab_libcfs_kvzalloc = {(unsigned long )(& libcfs_kvzalloc), (char const *)(& __kstrtab_libcfs_kvzalloc)}; void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab , int cpt , size_t size , gfp_t flags ) { void *ret ; int tmp ; int __ret_warn_on ; long tmp___0 ; int tmp___1 ; { tmp = cfs_cpt_spread_node(cptab, cpt); ret = kzalloc_node(size, flags | 512U, tmp); if ((unsigned long )ret == (unsigned long )((void *)0)) { __ret_warn_on = (flags & 160U) == 0U; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_null("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/linux/linux-mem.c", 53); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); tmp___1 = cfs_cpt_spread_node(cptab, cpt); ret = vmalloc_node(size, tmp___1); } else { } return (ret); } } static char const __kstrtab_libcfs_kvzalloc_cpt[20U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'v', 'z', 'a', 'l', 'l', 'o', 'c', '_', 'c', 'p', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kvzalloc_cpt ; struct kernel_symbol const __ksymtab_libcfs_kvzalloc_cpt = {(unsigned long )(& libcfs_kvzalloc_cpt), (char const *)(& __kstrtab_libcfs_kvzalloc_cpt)}; void ldv_mutex_unlock_161(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_162(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_163(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_164(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_165(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_166(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_167(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } extern size_t strlen(char const * ) ; extern char *strncpy(char * , char const * , __kernel_size_t ) ; extern int strncmp(char const * , char const * , __kernel_size_t ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_184(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_179(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_182(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_185(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_180(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_181(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_183(struct mutex *ldv_func_arg1 ) ; extern int default_wake_function(wait_queue_t * , unsigned int , int , void * ) ; extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; __inline static void init_waitqueue_entry(wait_queue_t *q , struct task_struct *p ) { { q->flags = 0U; q->private = (void *)p; q->func = & default_wake_function; return; } } extern void add_wait_queue(wait_queue_head_t * , wait_queue_t * ) ; extern void remove_wait_queue(wait_queue_head_t * , wait_queue_t * ) ; extern void __wake_up(wait_queue_head_t * , unsigned int , int , void * ) ; extern unsigned long get_seconds(void) ; extern int wake_up_process(struct task_struct * ) ; extern unsigned char const _ctype[] ; extern struct task_struct *kthread_create_on_node(int (*)(void * ) , void * , int , char const * , ...) ; __inline static long cfs_time_seconds(int seconds ) { { return ((long )seconds * 250L); } } unsigned int libcfs_stack ; unsigned int libcfs_console_ratelimit ; unsigned int libcfs_watchdog_ratelimit ; unsigned int libcfs_console_max_delay ; unsigned int libcfs_console_min_delay ; unsigned int libcfs_console_backoff ; unsigned int libcfs_debug_binary ; char libcfs_debug_file_path_arr[4096U] ; int libcfs_debug_mask2str(char *str , int size , int mask , int is_subsys ) ; int libcfs_debug_str2mask(int *mask , char const *str , int is_subsys ) ; unsigned int libcfs_catastrophe ; int libcfs_debug_init(unsigned long bufsize ) ; int libcfs_debug_cleanup(void) ; int libcfs_debug_clear_buffer(void) ; int libcfs_debug_mark_buffer(char const *text ) ; void libcfs_debug_set_level(unsigned int debug_level ) ; int cfs_str2mask(char const *str , char const *(*bit2str)(int ) , int *oldmask , int minmask , int allmask ) ; int cfs_tracefile_dump_all_pages(char *filename ) ; void cfs_trace_flush_pages(void) ; int cfs_tracefile_init(int max_pages ) ; void cfs_tracefile_exit(void) ; void libcfs_debug_dumplog_internal(void *arg ) ; int libcfs_panic_in_progress ; static char debug_file_name[1024U] ; unsigned int libcfs_subsystem_debug = 4294967295U; static char const __kstrtab_libcfs_subsystem_debug[23U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 'u', 'b', 's', 'y', 's', 't', 'e', 'm', '_', 'd', 'e', 'b', 'u', 'g', '\000'}; struct kernel_symbol const __ksymtab_libcfs_subsystem_debug ; struct kernel_symbol const __ksymtab_libcfs_subsystem_debug = {(unsigned long )(& libcfs_subsystem_debug), (char const *)(& __kstrtab_libcfs_subsystem_debug)}; unsigned int libcfs_debug = 51250560U; static char const __kstrtab_libcfs_debug[13U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug ; struct kernel_symbol const __ksymtab_libcfs_debug = {(unsigned long )(& libcfs_debug), (char const *)(& __kstrtab_libcfs_debug)}; static unsigned int libcfs_debug_mb ; static char const __kstrtab_libcfs_debug_mb[16U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 'm', 'b', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_mb ; struct kernel_symbol const __ksymtab_libcfs_debug_mb = {(unsigned long )(& libcfs_debug_mb), (char const *)(& __kstrtab_libcfs_debug_mb)}; unsigned int libcfs_printk = 33948672U; static char const __kstrtab_libcfs_printk[14U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'p', 'r', 'i', 'n', 't', 'k', '\000'}; struct kernel_symbol const __ksymtab_libcfs_printk ; struct kernel_symbol const __ksymtab_libcfs_printk = {(unsigned long )(& libcfs_printk), (char const *)(& __kstrtab_libcfs_printk)}; unsigned int libcfs_console_ratelimit = 1U; static char const __kstrtab_libcfs_console_ratelimit[25U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'c', 'o', 'n', 's', 'o', 'l', 'e', '_', 'r', 'a', 't', 'e', 'l', 'i', 'm', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_console_ratelimit ; struct kernel_symbol const __ksymtab_libcfs_console_ratelimit = {(unsigned long )(& libcfs_console_ratelimit), (char const *)(& __kstrtab_libcfs_console_ratelimit)}; static char const __kstrtab_libcfs_console_max_delay[25U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'c', 'o', 'n', 's', 'o', 'l', 'e', '_', 'm', 'a', 'x', '_', 'd', 'e', 'l', 'a', 'y', '\000'}; struct kernel_symbol const __ksymtab_libcfs_console_max_delay ; struct kernel_symbol const __ksymtab_libcfs_console_max_delay = {(unsigned long )(& libcfs_console_max_delay), (char const *)(& __kstrtab_libcfs_console_max_delay)}; static char const __kstrtab_libcfs_console_min_delay[25U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'c', 'o', 'n', 's', 'o', 'l', 'e', '_', 'm', 'i', 'n', '_', 'd', 'e', 'l', 'a', 'y', '\000'}; struct kernel_symbol const __ksymtab_libcfs_console_min_delay ; struct kernel_symbol const __ksymtab_libcfs_console_min_delay = {(unsigned long )(& libcfs_console_min_delay), (char const *)(& __kstrtab_libcfs_console_min_delay)}; unsigned int libcfs_console_backoff = 2U; static char const __kstrtab_libcfs_console_backoff[23U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'c', 'o', 'n', 's', 'o', 'l', 'e', '_', 'b', 'a', 'c', 'k', 'o', 'f', 'f', '\000'}; struct kernel_symbol const __ksymtab_libcfs_console_backoff ; struct kernel_symbol const __ksymtab_libcfs_console_backoff = {(unsigned long )(& libcfs_console_backoff), (char const *)(& __kstrtab_libcfs_console_backoff)}; unsigned int libcfs_debug_binary = 1U; static char const __kstrtab_libcfs_debug_binary[20U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 'b', 'i', 'n', 'a', 'r', 'y', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_binary ; struct kernel_symbol const __ksymtab_libcfs_debug_binary = {(unsigned long )(& libcfs_debug_binary), (char const *)(& __kstrtab_libcfs_debug_binary)}; unsigned int libcfs_stack = 24576U; static char const __kstrtab_libcfs_stack[13U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 't', 'a', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_libcfs_stack ; struct kernel_symbol const __ksymtab_libcfs_stack = {(unsigned long )(& libcfs_stack), (char const *)(& __kstrtab_libcfs_stack)}; static unsigned int portal_enter_debugger ; static char const __kstrtab_portal_enter_debugger[22U] = { 'p', 'o', 'r', 't', 'a', 'l', '_', 'e', 'n', 't', 'e', 'r', '_', 'd', 'e', 'b', 'u', 'g', 'g', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_portal_enter_debugger ; struct kernel_symbol const __ksymtab_portal_enter_debugger = {(unsigned long )(& portal_enter_debugger), (char const *)(& __kstrtab_portal_enter_debugger)}; static char const __kstrtab_libcfs_catastrophe[19U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'c', 'a', 't', 'a', 's', 't', 'r', 'o', 'p', 'h', 'e', '\000'}; struct kernel_symbol const __ksymtab_libcfs_catastrophe ; struct kernel_symbol const __ksymtab_libcfs_catastrophe = {(unsigned long )(& libcfs_catastrophe), (char const *)(& __kstrtab_libcfs_catastrophe)}; unsigned int libcfs_watchdog_ratelimit = 300U; static char const __kstrtab_libcfs_watchdog_ratelimit[26U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'w', 'a', 't', 'c', 'h', 'd', 'o', 'g', '_', 'r', 'a', 't', 'e', 'l', 'i', 'm', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_watchdog_ratelimit ; struct kernel_symbol const __ksymtab_libcfs_watchdog_ratelimit = {(unsigned long )(& libcfs_watchdog_ratelimit), (char const *)(& __kstrtab_libcfs_watchdog_ratelimit)}; unsigned int libcfs_panic_on_lbug = 1U; static char const __kstrtab_libcfs_panic_on_lbug[21U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'p', 'a', 'n', 'i', 'c', '_', 'o', 'n', '_', 'l', 'b', 'u', 'g', '\000'}; struct kernel_symbol const __ksymtab_libcfs_panic_on_lbug ; struct kernel_symbol const __ksymtab_libcfs_panic_on_lbug = {(unsigned long )(& libcfs_panic_on_lbug), (char const *)(& __kstrtab_libcfs_panic_on_lbug)}; atomic_t libcfs_kmemory = {0}; static char const __kstrtab_libcfs_kmemory[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'm', 'e', 'm', 'o', 'r', 'y', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kmemory ; struct kernel_symbol const __ksymtab_libcfs_kmemory = {(unsigned long )(& libcfs_kmemory), (char const *)(& __kstrtab_libcfs_kmemory)}; static wait_queue_head_t debug_ctlwq ; char libcfs_debug_file_path_arr[4096U] = { '/', 't', 'm', 'p', '/', 'l', 'u', 's', 't', 'r', 'e', '-', 'l', 'o', 'g', '\000'}; static char *libcfs_debug_file_path ; static char const *libcfs_debug_subsys2str(int subsys ) { { switch (1 << subsys) { default: ; return ((char const *)0); case 1: ; return ("undefined"); case 2: ; return ("mdc"); case 4: ; return ("mds"); case 8: ; return ("osc"); case 16: ; return ("ost"); case 32: ; return ("class"); case 64: ; return ("log"); case 128: ; return ("llite"); case 256: ; return ("rpc"); case 1024: ; return ("lnet"); case 2048: ; return ("lnd"); case 4096: ; return ("pinger"); case 8192: ; return ("filter"); case 32768: ; return ("echo"); case 65536: ; return ("ldlm"); case 131072: ; return ("lov"); case 262144: ; return ("lquota"); case 524288: ; return ("osd"); case 8388608: ; return ("lmv"); case 33554432: ; return ("sec"); case 67108864: ; return ("gss"); case 268435456: ; return ("mgc"); case 536870912: ; return ("mgs"); case 1073741824: ; return ("fid"); case (-0x7FFFFFFF-1): ; return ("fld"); } } } static char const *libcfs_debug_dbg2str(int debug ) { { switch (1 << debug) { default: ; return ((char const *)0); case 1: ; return ("trace"); case 2: ; return ("inode"); case 4: ; return ("super"); case 8: ; return ("ext2"); case 16: ; return ("malloc"); case 32: ; return ("cache"); case 64: ; return ("info"); case 128: ; return ("ioctl"); case 256: ; return ("neterror"); case 512: ; return ("net"); case 1024: ; return ("warning"); case 2048: ; return ("buffs"); case 4096: ; return ("other"); case 8192: ; return ("dentry"); case 16384: ; return ("nettrace"); case 32768: ; return ("page"); case 65536: ; return ("dlmtrace"); case 131072: ; return ("error"); case 262144: ; return ("emerg"); case 524288: ; return ("ha"); case 1048576: ; return ("rpctrace"); case 2097152: ; return ("vfstrace"); case 4194304: ; return ("reada"); case 8388608: ; return ("mmap"); case 16777216: ; return ("config"); case 33554432: ; return ("console"); case 67108864: ; return ("quota"); case 134217728: ; return ("sec"); case 268435456: ; return ("lfsck"); } } } int libcfs_debug_mask2str(char *str , int size , int mask , int is_subsys ) { char const *(*fn)(int ) ; int len ; char const *token ; int i ; { fn = is_subsys != 0 ? & libcfs_debug_subsys2str : & libcfs_debug_dbg2str; len = 0; if (mask == 0) { if (size > 0) { *str = 48; } else { } len = 1; } else { i = 0; goto ldv_50502; ldv_50501: ; if (((mask >> i) & 1) == 0) { goto ldv_50497; } else { } token = (*fn)(i); if ((unsigned long )token == (unsigned long )((char const *)0)) { goto ldv_50497; } else { } if (len > 0) { if (len < size) { *(str + (unsigned long )len) = 32; } else { } len = len + 1; } else { } goto ldv_50499; ldv_50498: ; if (len < size) { *(str + (unsigned long )len) = *token; } else { } token = token + 1; len = len + 1; ldv_50499: ; if ((int )((signed char )*token) != 0) { goto ldv_50498; } else { } ldv_50497: i = i + 1; ldv_50502: ; if (i <= 31) { goto ldv_50501; } else { } } if (len < size) { *(str + (unsigned long )len) = 0; } else { *(str + ((unsigned long )size + 0xffffffffffffffffUL)) = 0; } return (len); } } int libcfs_debug_str2mask(int *mask , char const *str , int is_subsys ) { char const *(*fn)(int ) ; int m ; int matched ; int n ; int t ; size_t tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; int tmp___1 ; { fn = is_subsys != 0 ? & libcfs_debug_subsys2str : & libcfs_debug_dbg2str; m = 0; tmp = strlen(str); n = (int )tmp; goto ldv_50517; ldv_50516: ; if (((int )_ctype[(int )((unsigned char )*(str + ((unsigned long )n + 0xffffffffffffffffUL)))] & 32) == 0) { goto ldv_50515; } else { } n = n - 1; ldv_50517: ; if (n > 0) { goto ldv_50516; } else { } ldv_50515: matched = n; t = sscanf(str, "%i%n", & m, & matched); if (t > 0 && matched == n) { if (m != 0 && m != -1) { tmp___0 = cfs_cdebug_show(1024U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/debug.c"; msgdata.msg_fn = "libcfs_debug_str2mask"; msgdata.msg_line = 321; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "You are trying to use a numerical value for the mask - this will be deprecated in a future release.\n"); } else { } } else { } *mask = m; return (0); } else { } tmp___1 = cfs_str2mask(str, fn, mask, is_subsys != 0 ? 0 : 33948672, -1); return (tmp___1); } } void libcfs_debug_dumplog_internal(void *arg ) { void *journal_info ; struct task_struct *tmp ; struct task_struct *tmp___0 ; unsigned long tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; { tmp = get_current(); journal_info = tmp->journal_info; tmp___0 = get_current(); tmp___0->journal_info = (void *)0; tmp___2 = strncmp((char const *)(& libcfs_debug_file_path_arr), "NONE", 4UL); if (tmp___2 != 0) { tmp___1 = get_seconds(); snprintf((char *)(& debug_file_name), 1023UL, "%s.%ld.%ld", (char *)(& libcfs_debug_file_path_arr), tmp___1, (long )arg); printk("\tLustreError: dumping log to %s\n", (char *)(& debug_file_name)); cfs_tracefile_dump_all_pages((char *)(& debug_file_name)); libcfs_run_debug_log_upcall((char *)(& debug_file_name)); } else { } tmp___3 = get_current(); tmp___3->journal_info = journal_info; return; } } static int libcfs_debug_dumplog_thread(void *arg ) { { libcfs_debug_dumplog_internal(arg); __wake_up(& debug_ctlwq, 3U, 1, (void *)0); return (0); } } void libcfs_debug_dumplog(void) { wait_queue_t wait ; struct task_struct *dumper ; struct task_struct *tmp ; struct task_struct *tmp___0 ; long volatile __ret ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; struct task_struct *__k ; struct task_struct *tmp___5 ; struct task_struct *tmp___6 ; bool tmp___7 ; int tmp___8 ; long tmp___9 ; bool tmp___10 ; struct task_struct *tmp___11 ; long volatile __ret___0 ; struct task_struct *tmp___12 ; struct task_struct *tmp___13 ; struct task_struct *tmp___14 ; struct task_struct *tmp___15 ; { tmp = get_current(); init_waitqueue_entry(& wait, tmp); tmp___0 = get_current(); tmp___0->task_state_change = 0UL; __ret = 1L; switch (8UL) { case 1UL: tmp___1 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_50535; case 2UL: tmp___2 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_50535; case 4UL: tmp___3 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_50535; case 8UL: tmp___4 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___4->state): : "memory", "cc"); goto ldv_50535; default: __xchg_wrong_size(); } ldv_50535: add_wait_queue(& debug_ctlwq, & wait); tmp___5 = get_current(); tmp___6 = kthread_create_on_node(& libcfs_debug_dumplog_thread, (void *)((long )tmp___5->pid), -1, "libcfs_debug_dumper"); __k = tmp___6; tmp___7 = IS_ERR((void const *)__k); if (tmp___7) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { wake_up_process(__k); } else { } dumper = __k; tmp___10 = IS_ERR((void const *)dumper); if ((int )tmp___10) { tmp___9 = PTR_ERR((void const *)dumper); printk("\vLustreError: cannot start log dump thread: %ld\n", tmp___9); } else { schedule(); } remove_wait_queue(& debug_ctlwq, & wait); tmp___11 = get_current(); tmp___11->task_state_change = 0UL; __ret___0 = 0L; switch (8UL) { case 1UL: tmp___12 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret___0), "+m" (tmp___12->state): : "memory", "cc"); goto ldv_50545; case 2UL: tmp___13 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret___0), "+m" (tmp___13->state): : "memory", "cc"); goto ldv_50545; case 4UL: tmp___14 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret___0), "+m" (tmp___14->state): : "memory", "cc"); goto ldv_50545; case 8UL: tmp___15 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret___0), "+m" (tmp___15->state): : "memory", "cc"); goto ldv_50545; default: __xchg_wrong_size(); } ldv_50545: ; return; } } static char const __kstrtab_libcfs_debug_dumplog[21U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 'd', 'u', 'm', 'p', 'l', 'o', 'g', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_dumplog ; struct kernel_symbol const __ksymtab_libcfs_debug_dumplog = {(unsigned long )(& libcfs_debug_dumplog), (char const *)(& __kstrtab_libcfs_debug_dumplog)}; int libcfs_debug_init(unsigned long bufsize ) { int rc ; unsigned int max ; struct lock_class_key __key ; long tmp ; long tmp___0 ; unsigned int tmp___1 ; int tmp___2 ; unsigned int tmp___3 ; { rc = 0; max = libcfs_debug_mb; __init_waitqueue_head(& debug_ctlwq, "&debug_ctlwq", & __key); if ((libcfs_console_max_delay == 0U || libcfs_console_min_delay == 0U) || libcfs_console_min_delay >= libcfs_console_max_delay) { tmp = cfs_time_seconds(600); libcfs_console_max_delay = (unsigned int )tmp; tmp___0 = cfs_time_seconds(1); libcfs_console_min_delay = (unsigned int )((tmp___0 + 1L) / 2L); } else { } if ((unsigned long )libcfs_debug_file_path != (unsigned long )((char *)0)) { strncpy((char *)(& libcfs_debug_file_path_arr), (char const *)libcfs_debug_file_path, 4095UL); libcfs_debug_file_path_arr[4095] = 0; } else { } tmp___2 = cfs_trace_max_debug_mb(); if ((unsigned int )tmp___2 < max) { max = 1280U; } else { tmp___3 = cpumask_weight(cpu_possible_mask); if (tmp___3 > max) { max = 1280U; } else { tmp___1 = cpumask_weight(cpu_possible_mask); avoid_zero(tmp___1); max = max / tmp___1; max = max << 8; } } rc = cfs_tracefile_init((int )max); if (rc == 0) { libcfs_register_panic_notifier(); } else { } return (rc); } } int libcfs_debug_cleanup(void) { { libcfs_unregister_panic_notifier(); cfs_tracefile_exit(); return (0); } } int libcfs_debug_clear_buffer(void) { { cfs_trace_flush_pages(); return (0); } } int libcfs_debug_mark_buffer(char const *text ) { struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___1 ; { tmp = cfs_cdebug_show(1U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/debug.c"; msgdata.msg_fn = "libcfs_debug_mark_buffer"; msgdata.msg_line = 443; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1; libcfs_debug_msg(& msgdata, "***************************************************\n"); } else { } tmp___0 = cfs_cdebug_show(33555456U, 1U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/debug.c"; msgdata___0.msg_fn = "libcfs_debug_mark_buffer"; msgdata___0.msg_line = 444; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 33555456; libcfs_debug_msg(& msgdata___0, "DEBUG MARKER: %s\n", text); } else { } tmp___1 = cfs_cdebug_show(1U, 1U); if (tmp___1 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/debug.c"; msgdata___1.msg_fn = "libcfs_debug_mark_buffer"; msgdata___1.msg_line = 446; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 1; libcfs_debug_msg(& msgdata___1, "***************************************************\n"); } else { } return (0); } } void libcfs_debug_set_level(unsigned int debug_level ) { { printk("\fLustre: Setting portals debug level to %08x\n", debug_level); libcfs_debug = debug_level; return; } } static char const __kstrtab_libcfs_debug_set_level[23U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 's', 'e', 't', '_', 'l', 'e', 'v', 'e', 'l', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_set_level ; struct kernel_symbol const __ksymtab_libcfs_debug_set_level = {(unsigned long )(& libcfs_debug_set_level), (char const *)(& __kstrtab_libcfs_debug_set_level)}; void ldv_mutex_unlock_179(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_180(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_181(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_182(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_183(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_184(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_185(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static int test_and_set_bit(long nr , unsigned long volatile *addr ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %2, %0; setc %1": "+m" (*addr), "=qm" (c): "Ir" (nr): "memory"); return ((int )((signed char )c) != 0); } } extern void __xadd_wrong_size(void) ; __inline static void atomic_set(atomic_t *v , int i ) { { v->counter = i; return; } } __inline static int atomic_add_return(int i , atomic_t *v ) { int __ret ; { __ret = i; switch (4UL) { case 1UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddb %b0, %1\n": "+q" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5596; case 2UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddw %w0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5596; case 4UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddl %0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5596; case 8UL: __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; xaddq %q0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5596; default: __xadd_wrong_size(); } ldv_5596: ; return (__ret + i); } } int ldv_mutex_trylock_202(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_197(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_200(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_203(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_198(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_199(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_201(struct mutex *ldv_func_arg1 ) ; extern long schedule_timeout(long ) ; unsigned int cfs_rand(void) ; unsigned long cfs_fail_loc ; unsigned int cfs_fail_val ; wait_queue_head_t cfs_race_waitq ; int cfs_race_state ; int __cfs_fail_check_set(__u32 id , __u32 value , int set ) ; int __cfs_fail_timeout_set(__u32 id , __u32 value , int ms , int set ) ; unsigned long cfs_fail_loc = 0UL; static char const __kstrtab_cfs_fail_loc[13U] = { 'c', 'f', 's', '_', 'f', 'a', 'i', 'l', '_', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_fail_loc ; struct kernel_symbol const __ksymtab_cfs_fail_loc = {(unsigned long )(& cfs_fail_loc), (char const *)(& __kstrtab_cfs_fail_loc)}; unsigned int cfs_fail_val = 0U; static char const __kstrtab_cfs_fail_val[13U] = { 'c', 'f', 's', '_', 'f', 'a', 'i', 'l', '_', 'v', 'a', 'l', '\000'}; struct kernel_symbol const __ksymtab_cfs_fail_val ; struct kernel_symbol const __ksymtab_cfs_fail_val = {(unsigned long )(& cfs_fail_val), (char const *)(& __kstrtab_cfs_fail_val)}; wait_queue_head_t cfs_race_waitq = {{{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "cfs_race_waitq.lock", 0, 0UL}}}}, {& cfs_race_waitq.task_list, & cfs_race_waitq.task_list}}; static char const __kstrtab_cfs_race_waitq[15U] = { 'c', 'f', 's', '_', 'r', 'a', 'c', 'e', '_', 'w', 'a', 'i', 't', 'q', '\000'}; struct kernel_symbol const __ksymtab_cfs_race_waitq ; struct kernel_symbol const __ksymtab_cfs_race_waitq = {(unsigned long )(& cfs_race_waitq), (char const *)(& __kstrtab_cfs_race_waitq)}; static char const __kstrtab_cfs_race_state[15U] = { 'c', 'f', 's', '_', 'r', 'a', 'c', 'e', '_', 's', 't', 'a', 't', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_race_state ; struct kernel_symbol const __ksymtab_cfs_race_state = {(unsigned long )(& cfs_race_state), (char const *)(& __kstrtab_cfs_race_state)}; int __cfs_fail_check_set(__u32 id , __u32 value , int set ) { atomic_t cfs_fail_count ; struct libcfs_debug_msg_data __msg_data ; long tmp ; unsigned int tmp___0 ; int tmp___1 ; int count ; int tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___4 ; { cfs_fail_count.counter = 0; tmp = ldv__builtin_expect((int )id < 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/fail.c"; __msg_data.msg_fn = "__cfs_fail_check_set"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 54; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!(id & (1 << 31))"); lbug_with_loc(& __msg_data); } else { } if ((cfs_fail_loc & 0xffffffffc0000000UL) == 0xffffffffc0000000UL) { atomic_set(& cfs_fail_count, 0); return (0); } else { } if ((cfs_fail_loc & 134217728UL) != 0UL) { if (cfs_fail_val <= 1U) { return (0); } else { tmp___0 = cfs_rand(); if (tmp___0 % cfs_fail_val != 0U) { return (0); } else { } } } else { } if ((cfs_fail_loc & 536870912UL) != 0UL) { tmp___1 = atomic_add_return(1, & cfs_fail_count); if ((unsigned int )tmp___1 <= cfs_fail_val) { return (0); } else { } } else { } if (set == 3) { if (cfs_fail_val != 4294967295U && cfs_fail_val != value) { return (0); } else { } } else { } if ((cfs_fail_loc & 268435456UL) != 0UL && ((cfs_fail_loc & 0xffffffff80000000UL) == 0UL || cfs_fail_val <= 1U)) { tmp___2 = atomic_add_return(1, & cfs_fail_count); count = tmp___2; if ((unsigned int )count >= cfs_fail_val) { set_bit(31L, (unsigned long volatile *)(& cfs_fail_loc)); atomic_set(& cfs_fail_count, 0); if ((unsigned int )count > cfs_fail_val) { return (0); } else { } } else { } } else { } if ((set == 1 || set == 2) && (int )value < 0) { set_bit(31L, (unsigned long volatile *)(& cfs_fail_loc)); } else { } tmp___3 = test_and_set_bit(30L, (unsigned long volatile *)(& cfs_fail_loc)); if (tmp___3 != 0) { if ((cfs_fail_loc & 0xffffffff80000000UL) != 0UL) { return (0); } else { } } else { } switch (set) { case 0: ; case 3: ; goto ldv_50088; case 1: cfs_fail_loc = ((unsigned long )value & 1073741823UL) | cfs_fail_loc; goto ldv_50088; case 2: cfs_fail_loc = (unsigned long )value; goto ldv_50088; default: tmp___4 = ldv__builtin_expect(1L, 0L); if (tmp___4 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/fail.c"; __msg_data___0.msg_fn = "__cfs_fail_check_set"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 116; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: called with bad set %u\n", (char *)"0", set); lbug_with_loc(& __msg_data___0); } else { } goto ldv_50088; } ldv_50088: ; return (1); } } static char const __kstrtab___cfs_fail_check_set[21U] = { '_', '_', 'c', 'f', 's', '_', 'f', 'a', 'i', 'l', '_', 'c', 'h', 'e', 'c', 'k', '_', 's', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab___cfs_fail_check_set ; struct kernel_symbol const __ksymtab___cfs_fail_check_set = {(unsigned long )(& __cfs_fail_check_set), (char const *)(& __kstrtab___cfs_fail_check_set)}; int __cfs_fail_timeout_set(__u32 id , __u32 value , int ms , int set ) { int ret ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct task_struct *tmp___0 ; long volatile __ret ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; struct task_struct *tmp___4 ; long tmp___5 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; { ret = 0; ret = __cfs_fail_check_set(id, value, set); if (ret != 0) { tmp = cfs_cdebug_show(131072U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/fail.c"; msgdata.msg_fn = "__cfs_fail_timeout_set"; msgdata.msg_line = 131; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "cfs_fail_timeout id %x sleeping for %dms\n", id, ms); } else { } tmp___0 = get_current(); tmp___0->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___1 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_50114; case 2UL: tmp___2 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_50114; case 4UL: tmp___3 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_50114; case 8UL: tmp___4 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___4->state): : "memory", "cc"); goto ldv_50114; default: __xchg_wrong_size(); } ldv_50114: tmp___5 = cfs_time_seconds(ms); schedule_timeout(tmp___5 / 1000L); tmp___6 = cfs_cdebug_show(131072U, 1U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/fail.c"; msgdata___0.msg_fn = "__cfs_fail_timeout_set"; msgdata___0.msg_line = 134; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "cfs_fail_timeout id %x awake\n", id); } else { } } else { } return (ret); } } static char const __kstrtab___cfs_fail_timeout_set[23U] = { '_', '_', 'c', 'f', 's', '_', 'f', 'a', 'i', 'l', '_', 't', 'i', 'm', 'e', 'o', 'u', 't', '_', 's', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab___cfs_fail_timeout_set ; struct kernel_symbol const __ksymtab___cfs_fail_timeout_set = {(unsigned long )(& __cfs_fail_timeout_set), (char const *)(& __kstrtab___cfs_fail_timeout_set)}; void ldv_mutex_unlock_197(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_198(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_199(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_200(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_201(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_202(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_203(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } __inline static void list_add_tail(struct list_head *new , struct list_head *head ) { { __list_add(new, head->prev, head); return; } } extern void list_del(struct list_head * ) ; __inline static int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } extern int strcmp(char const * , char const * ) ; int ldv_mutex_trylock_220(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_215(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_218(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_221(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_216(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_217(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_219(struct mutex *ldv_func_arg1 ) ; int cfs_gettok(struct cfs_lstr *next , char delim , struct cfs_lstr *res ) ; int cfs_str2num_check(char *str , int nob , unsigned int *num , unsigned int min , unsigned int max ) ; int cfs_expr_list_match(__u32 value , struct cfs_expr_list *expr_list ) ; void cfs_expr_list_free_list(struct list_head *list ) ; int cfs_ip_addr_parse(char *str , int len , struct list_head *list ) ; int cfs_ip_addr_match(__u32 addr , struct list_head *list ) ; __inline static __u32 LNET_NIDADDR(lnet_nid_t nid ) { { return ((__u32 )nid); } } __inline static __u32 LNET_NIDNET(lnet_nid_t nid ) { { return ((__u32 )(nid >> 32)); } } __inline static lnet_nid_t LNET_MKNID(__u32 net , __u32 addr ) { { return (((unsigned long long )net << 32) | (unsigned long long )addr); } } __inline static __u32 LNET_NETNUM(__u32 net ) { { return (net & 65535U); } } __inline static __u32 LNET_NETTYP(__u32 net ) { { return (net >> 16); } } __inline static __u32 LNET_MKNET(__u32 type , __u32 num ) { { return ((type << 16) | num); } } int libcfs_isknown_lnd(int type ) ; char *libcfs_lnd2modname(int lnd ) ; char *libcfs_lnd2str(int lnd ) ; int libcfs_str2lnd(char const *str ) ; char *libcfs_net2str(__u32 net ) ; char *libcfs_nid2str(lnet_nid_t nid ) ; __u32 libcfs_str2net(char const *str ) ; lnet_nid_t libcfs_str2nid(char const *str ) ; int libcfs_str2anynid(lnet_nid_t *nidp , char const *str ) ; char *libcfs_id2str(lnet_process_id_t id ) ; void cfs_free_nidlist(struct list_head *list ) ; int cfs_parse_nidlist(char *str , int len , struct list_head *nidlist ) ; int cfs_match_nid(lnet_nid_t nid , struct list_head *nidlist ) ; static char libcfs_nidstrings[1024U][32U] ; static int libcfs_nidstring_idx ; static spinlock_t libcfs_nidstring_lock ; void libcfs_init_nidstrings(void) { struct lock_class_key __key ; { spinlock_check(& libcfs_nidstring_lock); __raw_spin_lock_init(& libcfs_nidstring_lock.__annonCompField17.rlock, "&(&libcfs_nidstring_lock)->rlock", & __key); return; } } static char *libcfs_next_nidstring(void) { char *str ; unsigned long flags ; raw_spinlock_t *tmp ; int tmp___0 ; { tmp = spinlock_check(& libcfs_nidstring_lock); flags = _raw_spin_lock_irqsave(tmp); tmp___0 = libcfs_nidstring_idx; libcfs_nidstring_idx = libcfs_nidstring_idx + 1; str = (char *)(& libcfs_nidstrings) + (unsigned long )tmp___0; if (libcfs_nidstring_idx == 1024) { libcfs_nidstring_idx = 0; } else { } spin_unlock_irqrestore(& libcfs_nidstring_lock, flags); return (str); } } static int libcfs_lo_str2addr(char const *str , int nob , __u32 *addr ) { { *addr = 0U; return (1); } } static void libcfs_ip_addr2str(__u32 addr , char *str ) { { snprintf(str, 32UL, "%u.%u.%u.%u", addr >> 24, (addr >> 16) & 255U, (addr >> 8) & 255U, addr & 255U); return; } } static int libcfs_ip_str2addr(char const *str , int nob , __u32 *addr ) { unsigned int a ; unsigned int b ; unsigned int c ; unsigned int d ; int n ; int tmp ; { n = nob; tmp = sscanf(str, "%u.%u.%u.%u%n", & a, & b, & c, & d, & n); if (((((tmp > 3 && n == nob) && (a & 4294967040U) == 0U) && (b & 4294967040U) == 0U) && (c & 4294967040U) == 0U) && (d & 4294967040U) == 0U) { *addr = (((a << 24) | (b << 16)) | (c << 8)) | d; return (1); } else { } return (0); } } static void libcfs_decnum_addr2str(__u32 addr , char *str ) { { snprintf(str, 32UL, "%u", addr); return; } } static void libcfs_hexnum_addr2str(__u32 addr , char *str ) { { snprintf(str, 32UL, "0x%x", addr); return; } } static int libcfs_num_str2addr(char const *str , int nob , __u32 *addr ) { int n ; int tmp ; int tmp___0 ; int tmp___1 ; { n = nob; tmp = sscanf(str, "0x%x%n", addr, & n); if (tmp > 0 && n == nob) { return (1); } else { } n = nob; tmp___0 = sscanf(str, "0X%x%n", addr, & n); if (tmp___0 > 0 && n == nob) { return (1); } else { } n = nob; tmp___1 = sscanf(str, "%u%n", addr, & n); if (tmp___1 > 0 && n == nob) { return (1); } else { } return (0); } } static int libcfs_num_parse(char *str , int len , struct list_head *list ) { struct cfs_expr_list *el ; int rc ; { rc = cfs_expr_list_parse(str, len, 0U, 4294967295U, & el); if (rc == 0) { list_add_tail(& el->el_link, list); } else { } return (rc); } } static int libcfs_num_match(__u32 addr , struct list_head *numaddr ) { struct cfs_expr_list *el ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct list_head const *__mptr ; int tmp___1 ; { tmp = list_empty((struct list_head const *)numaddr); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; __msg_data.msg_fn = "libcfs_num_match"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 178; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(numaddr)"); lbug_with_loc(& __msg_data); } else { } __mptr = (struct list_head const *)numaddr->next; el = (struct cfs_expr_list *)__mptr; tmp___1 = cfs_expr_list_match(addr, el); return (tmp___1); } } static struct netstrfns libcfs_netstrfns[14U] = { {9, (char *)"lo", (char *)"klolnd", & libcfs_decnum_addr2str, & libcfs_lo_str2addr, & libcfs_num_parse, & libcfs_num_match}, {2, (char *)"tcp", (char *)"ksocklnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {5, (char *)"o2ib", (char *)"ko2iblnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {6, (char *)"cib", (char *)"kciblnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {7, (char *)"openib", (char *)"kopeniblnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {8, (char *)"iib", (char *)"kiiblnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {11, (char *)"vib", (char *)"kviblnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {10, (char *)"ra", (char *)"kralnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {1, (char *)"elan", (char *)"kqswlnd", & libcfs_decnum_addr2str, & libcfs_num_str2addr, & libcfs_num_parse, & libcfs_num_match}, {3, (char *)"gm", (char *)"kgmlnd", & libcfs_hexnum_addr2str, & libcfs_num_str2addr, & libcfs_num_parse, & libcfs_num_match}, {12, (char *)"mx", (char *)"kmxlnd", & libcfs_ip_addr2str, & libcfs_ip_str2addr, & cfs_ip_addr_parse, & cfs_ip_addr_match}, {4, (char *)"ptl", (char *)"kptllnd", & libcfs_decnum_addr2str, & libcfs_num_str2addr, & libcfs_num_parse, & libcfs_num_match}, {13, (char *)"gni", (char *)"kgnilnd", & libcfs_decnum_addr2str, & libcfs_num_str2addr, & libcfs_num_parse, & libcfs_num_match}, {-1, 0, 0, 0, 0, 0, 0}}; static int const libcfs_nnetstrfns = 14; static struct netstrfns *libcfs_lnd2netstrfns(int lnd ) { int i ; { if (lnd >= 0) { i = 0; goto ldv_50382; ldv_50381: ; if (libcfs_netstrfns[i].nf_type == lnd) { return ((struct netstrfns *)(& libcfs_netstrfns) + (unsigned long )i); } else { } i = i + 1; ldv_50382: ; if (i < (int )libcfs_nnetstrfns) { goto ldv_50381; } else { } } else { } return ((struct netstrfns *)0); } } static struct netstrfns *libcfs_namenum2netstrfns(char const *name ) { struct netstrfns *nf ; int i ; size_t tmp ; int tmp___0 ; { i = 0; goto ldv_50390; ldv_50389: nf = (struct netstrfns *)(& libcfs_netstrfns) + (unsigned long )i; if (nf->nf_type >= 0) { tmp = strlen((char const *)nf->nf_name); tmp___0 = strncmp(name, (char const *)nf->nf_name, tmp); if (tmp___0 == 0) { return (nf); } else { } } else { } i = i + 1; ldv_50390: ; if (i < (int )libcfs_nnetstrfns) { goto ldv_50389; } else { } return ((struct netstrfns *)0); } } static struct netstrfns *libcfs_name2netstrfns(char const *name ) { int i ; int tmp ; { i = 0; goto ldv_50397; ldv_50396: ; if (libcfs_netstrfns[i].nf_type >= 0) { tmp = strcmp((char const *)libcfs_netstrfns[i].nf_name, name); if (tmp == 0) { return ((struct netstrfns *)(& libcfs_netstrfns) + (unsigned long )i); } else { } } else { } i = i + 1; ldv_50397: ; if (i < (int )libcfs_nnetstrfns) { goto ldv_50396; } else { } return ((struct netstrfns *)0); } } int libcfs_isknown_lnd(int type ) { struct netstrfns *tmp ; { tmp = libcfs_lnd2netstrfns(type); return ((unsigned long )tmp != (unsigned long )((struct netstrfns *)0)); } } static char const __kstrtab_libcfs_isknown_lnd[19U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'i', 's', 'k', 'n', 'o', 'w', 'n', '_', 'l', 'n', 'd', '\000'}; struct kernel_symbol const __ksymtab_libcfs_isknown_lnd ; struct kernel_symbol const __ksymtab_libcfs_isknown_lnd = {(unsigned long )(& libcfs_isknown_lnd), (char const *)(& __kstrtab_libcfs_isknown_lnd)}; char *libcfs_lnd2modname(int lnd ) { struct netstrfns *nf ; struct netstrfns *tmp ; { tmp = libcfs_lnd2netstrfns(lnd); nf = tmp; return ((unsigned long )nf != (unsigned long )((struct netstrfns *)0) ? nf->nf_modname : (char *)0); } } static char const __kstrtab_libcfs_lnd2modname[19U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'l', 'n', 'd', '2', 'm', 'o', 'd', 'n', 'a', 'm', 'e', '\000'}; struct kernel_symbol const __ksymtab_libcfs_lnd2modname ; struct kernel_symbol const __ksymtab_libcfs_lnd2modname = {(unsigned long )(& libcfs_lnd2modname), (char const *)(& __kstrtab_libcfs_lnd2modname)}; char *libcfs_lnd2str(int lnd ) { char *str ; struct netstrfns *nf ; struct netstrfns *tmp ; { tmp = libcfs_lnd2netstrfns(lnd); nf = tmp; if ((unsigned long )nf != (unsigned long )((struct netstrfns *)0)) { return (nf->nf_name); } else { } str = libcfs_next_nidstring(); snprintf(str, 32UL, "?%d?", lnd); return (str); } } static char const __kstrtab_libcfs_lnd2str[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'l', 'n', 'd', '2', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_libcfs_lnd2str ; struct kernel_symbol const __ksymtab_libcfs_lnd2str = {(unsigned long )(& libcfs_lnd2str), (char const *)(& __kstrtab_libcfs_lnd2str)}; int libcfs_str2lnd(char const *str ) { struct netstrfns *nf ; struct netstrfns *tmp ; { tmp = libcfs_name2netstrfns(str); nf = tmp; if ((unsigned long )nf != (unsigned long )((struct netstrfns *)0)) { return (nf->nf_type); } else { } return (-1); } } static char const __kstrtab_libcfs_str2lnd[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 't', 'r', '2', 'l', 'n', 'd', '\000'}; struct kernel_symbol const __ksymtab_libcfs_str2lnd ; struct kernel_symbol const __ksymtab_libcfs_str2lnd = {(unsigned long )(& libcfs_str2lnd), (char const *)(& __kstrtab_libcfs_str2lnd)}; char *libcfs_net2str(__u32 net ) { int lnd ; __u32 tmp ; int num ; __u32 tmp___0 ; struct netstrfns *nf ; struct netstrfns *tmp___1 ; char *str ; char *tmp___2 ; { tmp = LNET_NETTYP(net); lnd = (int )tmp; tmp___0 = LNET_NETNUM(net); num = (int )tmp___0; tmp___1 = libcfs_lnd2netstrfns(lnd); nf = tmp___1; tmp___2 = libcfs_next_nidstring(); str = tmp___2; if ((unsigned long )nf == (unsigned long )((struct netstrfns *)0)) { snprintf(str, 32UL, "<%d:%d>", lnd, num); } else if (num == 0) { snprintf(str, 32UL, "%s", nf->nf_name); } else { snprintf(str, 32UL, "%s%d", nf->nf_name, num); } return (str); } } static char const __kstrtab_libcfs_net2str[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'n', 'e', 't', '2', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_libcfs_net2str ; struct kernel_symbol const __ksymtab_libcfs_net2str = {(unsigned long )(& libcfs_net2str), (char const *)(& __kstrtab_libcfs_net2str)}; char *libcfs_nid2str(lnet_nid_t nid ) { __u32 addr ; __u32 tmp ; __u32 net ; __u32 tmp___0 ; int lnd ; __u32 tmp___1 ; int nnum ; __u32 tmp___2 ; struct netstrfns *nf ; char *str ; int nob ; size_t tmp___3 ; { tmp = LNET_NIDADDR(nid); addr = tmp; tmp___0 = LNET_NIDNET(nid); net = tmp___0; tmp___1 = LNET_NETTYP(net); lnd = (int )tmp___1; tmp___2 = LNET_NETNUM(net); nnum = (int )tmp___2; if (nid == 0xffffffffffffffffULL) { return ((char *)""); } else { } nf = libcfs_lnd2netstrfns(lnd); str = libcfs_next_nidstring(); if ((unsigned long )nf == (unsigned long )((struct netstrfns *)0)) { snprintf(str, 32UL, "%x@<%d:%d>", addr, lnd, nnum); } else { (*(nf->nf_addr2str))(addr, str); tmp___3 = strlen((char const *)str); nob = (int )tmp___3; if (nnum == 0) { snprintf(str + (unsigned long )nob, (size_t )(32 - nob), "@%s", nf->nf_name); } else { snprintf(str + (unsigned long )nob, (size_t )(32 - nob), "@%s%d", nf->nf_name, nnum); } } return (str); } } static char const __kstrtab_libcfs_nid2str[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'n', 'i', 'd', '2', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_libcfs_nid2str ; struct kernel_symbol const __ksymtab_libcfs_nid2str = {(unsigned long )(& libcfs_nid2str), (char const *)(& __kstrtab_libcfs_nid2str)}; static struct netstrfns *libcfs_str2net_internal(char const *str , __u32 *net ) { struct netstrfns *nf ; int nob ; unsigned int netnum ; int i ; size_t tmp ; int tmp___0 ; size_t tmp___1 ; size_t tmp___2 ; int tmp___3 ; size_t tmp___4 ; size_t tmp___5 ; { nf = nf; i = 0; goto ldv_50484; ldv_50483: nf = (struct netstrfns *)(& libcfs_netstrfns) + (unsigned long )i; if (nf->nf_type >= 0) { tmp = strlen((char const *)nf->nf_name); tmp___0 = strncmp(str, (char const *)nf->nf_name, tmp); if (tmp___0 == 0) { goto ldv_50482; } else { } } else { } i = i + 1; ldv_50484: ; if (i < (int )libcfs_nnetstrfns) { goto ldv_50483; } else { } ldv_50482: ; if (i == (int )libcfs_nnetstrfns) { return ((struct netstrfns *)0); } else { } tmp___1 = strlen((char const *)nf->nf_name); nob = (int )tmp___1; tmp___5 = strlen(str); if (tmp___5 == (size_t )((unsigned int )nob)) { netnum = 0U; } else { if (nf->nf_type == 9) { return ((struct netstrfns *)0); } else { } str = str + (unsigned long )nob; tmp___2 = strlen(str); i = (int )tmp___2; tmp___3 = sscanf(str, "%u%n", & netnum, & i); if (tmp___3 <= 0) { return ((struct netstrfns *)0); } else { tmp___4 = strlen(str); if ((int )tmp___4 != i) { return ((struct netstrfns *)0); } else { } } } *net = LNET_MKNET((__u32 )nf->nf_type, netnum); return (nf); } } __u32 libcfs_str2net(char const *str ) { __u32 net ; struct netstrfns *tmp ; __u32 tmp___0 ; { tmp = libcfs_str2net_internal(str, & net); if ((unsigned long )tmp != (unsigned long )((struct netstrfns *)0)) { return (net); } else { } tmp___0 = LNET_NIDNET(0xffffffffffffffffULL); return (tmp___0); } } static char const __kstrtab_libcfs_str2net[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 't', 'r', '2', 'n', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_str2net ; struct kernel_symbol const __ksymtab_libcfs_str2net = {(unsigned long )(& libcfs_str2net), (char const *)(& __kstrtab_libcfs_str2net)}; lnet_nid_t libcfs_str2nid(char const *str ) { char const *sep ; char *tmp ; struct netstrfns *nf ; __u32 net ; __u32 addr ; size_t tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; int tmp___2 ; lnet_nid_t tmp___3 ; { tmp = strchr(str, 64); sep = (char const *)tmp; if ((unsigned long )sep != (unsigned long )((char const *)0)) { nf = libcfs_str2net_internal(sep + 1UL, & net); if ((unsigned long )nf == (unsigned long )((struct netstrfns *)0)) { return (0xffffffffffffffffULL); } else { } } else { tmp___0 = strlen(str); sep = str + tmp___0; net = LNET_MKNET(2U, 0U); nf = libcfs_lnd2netstrfns(2); tmp___1 = ldv__builtin_expect((unsigned long )nf == (unsigned long )((struct netstrfns *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; __msg_data.msg_fn = "libcfs_str2nid"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 502; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"nf != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } } tmp___2 = (*(nf->nf_str2addr))(str, (int )((unsigned int )((long )sep) - (unsigned int )((long )str)), & addr); if (tmp___2 == 0) { return (0xffffffffffffffffULL); } else { } tmp___3 = LNET_MKNID(net, addr); return (tmp___3); } } static char const __kstrtab_libcfs_str2nid[15U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 't', 'r', '2', 'n', 'i', 'd', '\000'}; struct kernel_symbol const __ksymtab_libcfs_str2nid ; struct kernel_symbol const __ksymtab_libcfs_str2nid = {(unsigned long )(& libcfs_str2nid), (char const *)(& __kstrtab_libcfs_str2nid)}; char *libcfs_id2str(lnet_process_id_t id ) { char *str ; char *tmp ; char *tmp___0 ; char *tmp___1 ; { tmp = libcfs_next_nidstring(); str = tmp; if (id.pid == 4294967295U) { tmp___0 = libcfs_nid2str(id.nid); snprintf(str, 32UL, "LNET_PID_ANY-%s", tmp___0); return (str); } else { } tmp___1 = libcfs_nid2str(id.nid); snprintf(str, 32UL, "%s%u-%s", (int )id.pid < 0 ? (char *)"U" : (char *)"", id.pid & 2147483647U, tmp___1); return (str); } } static char const __kstrtab_libcfs_id2str[14U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'i', 'd', '2', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_libcfs_id2str ; struct kernel_symbol const __ksymtab_libcfs_id2str = {(unsigned long )(& libcfs_id2str), (char const *)(& __kstrtab_libcfs_id2str)}; int libcfs_str2anynid(lnet_nid_t *nidp , char const *str ) { int tmp ; { tmp = strcmp(str, "*"); if (tmp == 0) { *nidp = 0xffffffffffffffffULL; return (1); } else { } *nidp = libcfs_str2nid(str); return (*nidp != 0xffffffffffffffffULL); } } static char const __kstrtab_libcfs_str2anynid[18U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 's', 't', 'r', '2', 'a', 'n', 'y', 'n', 'i', 'd', '\000'}; struct kernel_symbol const __ksymtab_libcfs_str2anynid ; struct kernel_symbol const __ksymtab_libcfs_str2anynid = {(unsigned long )(& libcfs_str2anynid), (char const *)(& __kstrtab_libcfs_str2anynid)}; static int parse_addrange(struct cfs_lstr const *src , struct nidrange *nidrange ) { struct addrrange *addrrange ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; int tmp___8 ; { if ((int )src->ls_len == 1 && (int )((signed char )*(src->ls_str)) == 42) { nidrange->nr_all = 1; return (1); } else { } tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; __msg_data.msg_fn = "parse_addrange"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 628; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(struct addrrange))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(32UL, 80U); addrrange = (struct addrrange *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )addrrange == (unsigned long )((struct addrrange *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata.msg_fn = "parse_addrange"; msgdata.msg_line = 628; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(addrrange)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c", 628, 32); } else { } tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___0.msg_fn = "parse_addrange"; msgdata___0.msg_line = 628; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)addrrange, 0, 32UL); atomic_add(32, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1024U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___1.msg_fn = "parse_addrange"; msgdata___1.msg_line = 628; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(addrrange)\': %d at %p (tot %d).\n", 32, addrrange, tmp___5); } else { } } if ((unsigned long )addrrange == (unsigned long )((struct addrrange *)0)) { return (0); } else { } list_add_tail(& addrrange->ar_link, & nidrange->nr_addrranges); INIT_LIST_HEAD(& addrrange->ar_numaddr_ranges); tmp___8 = (*((nidrange->nr_netstrfns)->nf_parse_addrlist))(src->ls_str, src->ls_len, & addrrange->ar_numaddr_ranges); return (tmp___8); } } static struct nidrange *add_nidrange(struct cfs_lstr const *src , struct list_head *nidlist ) { struct netstrfns *nf ; struct nidrange *nr ; int endlen ; unsigned int netnum ; size_t tmp ; size_t tmp___0 ; int tmp___1 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data __msg_data ; int tmp___2 ; long tmp___3 ; void *tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; { if ((int )src->ls_len > 31) { return ((struct nidrange *)0); } else { } nf = libcfs_namenum2netstrfns((char const *)src->ls_str); if ((unsigned long )nf == (unsigned long )((struct netstrfns *)0)) { return ((struct nidrange *)0); } else { } tmp = strlen((char const *)nf->nf_name); endlen = (int )((unsigned int )src->ls_len - (unsigned int )tmp); if (endlen == 0) { netnum = 0U; } else { tmp___0 = strlen((char const *)nf->nf_name); tmp___1 = cfs_str2num_check(src->ls_str + tmp___0, endlen, & netnum, 0U, 4294967295U); if (tmp___1 == 0) { return ((struct nidrange *)0); } else { } } __mptr = (struct list_head const *)nidlist->next; nr = (struct nidrange *)__mptr; goto ldv_50570; ldv_50569: ; if ((unsigned long )nr->nr_netstrfns != (unsigned long )nf) { goto ldv_50568; } else { } if ((unsigned int )nr->nr_netnum != netnum) { goto ldv_50568; } else { } return (nr); ldv_50568: __mptr___0 = (struct list_head const *)nr->nr_link.next; nr = (struct nidrange *)__mptr___0; ldv_50570: ; if ((unsigned long )(& nr->nr_link) != (unsigned long )nidlist) { goto ldv_50569; } else { } tmp___2 = preempt_count(); tmp___3 = ldv__builtin_expect((long )(((unsigned long )tmp___2 & 2096896UL) != 0UL && 1), 0L); if (tmp___3 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; __msg_data.msg_fn = "add_nidrange"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 685; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(struct nidrange))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___4 = kmalloc(56UL, 80U); nr = (struct nidrange *)tmp___4; tmp___10 = ldv__builtin_expect((unsigned long )nr == (unsigned long )((struct nidrange *)0), 0L); if (tmp___10 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata.msg_fn = "add_nidrange"; msgdata.msg_line = 685; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(nr)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c", 685, 56); } else { } tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___0.msg_fn = "add_nidrange"; msgdata___0.msg_line = 685; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___6); } else { } } else { memset((void *)nr, 0, 56UL); atomic_add(56, & libcfs_kmemory); tmp___9 = cfs_cdebug_show(16U, 1024U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___1.msg_fn = "add_nidrange"; msgdata___1.msg_line = 685; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___8 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(nr)\': %d at %p (tot %d).\n", 56, nr, tmp___8); } else { } } if ((unsigned long )nr == (unsigned long )((struct nidrange *)0)) { return ((struct nidrange *)0); } else { } list_add_tail(& nr->nr_link, nidlist); INIT_LIST_HEAD(& nr->nr_addrranges); nr->nr_netstrfns = nf; nr->nr_all = 0; nr->nr_netnum = (int )netnum; return (nr); } } static int parse_nidrange(struct cfs_lstr *src , struct list_head *nidlist ) { struct cfs_lstr addrrange ; struct cfs_lstr net ; struct cfs_lstr tmp ; struct nidrange *nr ; int tmp___0 ; int tmp___1 ; int tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; { tmp = *src; tmp___0 = cfs_gettok(src, 64, & addrrange); if (tmp___0 == 0) { goto failed; } else { } tmp___1 = cfs_gettok(src, 64, & net); if (tmp___1 == 0 || (unsigned long )src->ls_str != (unsigned long )((char *)0)) { goto failed; } else { } nr = add_nidrange((struct cfs_lstr const *)(& net), nidlist); if ((unsigned long )nr == (unsigned long )((struct nidrange *)0)) { goto failed; } else { } tmp___2 = parse_addrange((struct cfs_lstr const *)(& addrrange), nr); if (tmp___2 != 0) { goto failed; } else { } return (1); failed: tmp___3 = cfs_cdebug_show(1024U, 1024U); if (tmp___3 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata.msg_fn = "parse_nidrange"; msgdata.msg_line = 727; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "can\'t parse nidrange: \"%.*s\"\n", tmp.ls_len, tmp.ls_str); } else { } return (0); } } static void free_addrranges(struct list_head *list ) { struct addrrange *ar ; struct list_head const *__mptr ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int tmp___4 ; { goto ldv_50604; ldv_50603: __mptr = (struct list_head const *)list->next; ar = (struct addrrange *)__mptr; cfs_expr_list_free_list(& ar->ar_numaddr_ranges); list_del(& ar->ar_link); s = 32; tmp___0 = ldv__builtin_expect((unsigned long )ar == (unsigned long )((struct addrrange *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata.msg_fn = "free_addrranges"; msgdata.msg_line = 749; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'ar\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c", 749); } else { } goto ldv_50601; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___0.msg_fn = "free_addrranges"; msgdata___0.msg_line = 749; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'ar\': %d at %p (tot %d).\n", s, ar, tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)ar); } else { kfree((void const *)ar); } ldv_50601: ; ldv_50604: tmp___4 = list_empty((struct list_head const *)list); if (tmp___4 == 0) { goto ldv_50603; } else { } return; } } void cfs_free_nidlist(struct list_head *list ) { struct list_head *pos ; struct list_head *next ; struct nidrange *nr ; struct list_head const *__mptr ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; { pos = list->next; next = pos->next; goto ldv_50621; ldv_50620: __mptr = (struct list_head const *)pos; nr = (struct nidrange *)__mptr; free_addrranges(& nr->nr_addrranges); list_del(pos); s = 56; tmp___0 = ldv__builtin_expect((unsigned long )nr == (unsigned long )((struct nidrange *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata.msg_fn = "cfs_free_nidlist"; msgdata.msg_line = 771; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'nr\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c", 771); } else { } goto ldv_50618; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/nidstrings.c"; msgdata___0.msg_fn = "cfs_free_nidlist"; msgdata___0.msg_line = 771; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'nr\': %d at %p (tot %d).\n", s, nr, tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)nr); } else { kfree((void const *)nr); } ldv_50618: pos = next; next = pos->next; ldv_50621: ; if ((unsigned long )pos != (unsigned long )list) { goto ldv_50620; } else { } return; } } static char const __kstrtab_cfs_free_nidlist[17U] = { 'c', 'f', 's', '_', 'f', 'r', 'e', 'e', '_', 'n', 'i', 'd', 'l', 'i', 's', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_free_nidlist ; struct kernel_symbol const __ksymtab_cfs_free_nidlist = {(unsigned long )(& cfs_free_nidlist), (char const *)(& __kstrtab_cfs_free_nidlist)}; int cfs_parse_nidlist(char *str , int len , struct list_head *nidlist ) { struct cfs_lstr src ; struct cfs_lstr res ; int rc ; { src.ls_str = str; src.ls_len = len; INIT_LIST_HEAD(nidlist); goto ldv_50639; ldv_50638: rc = cfs_gettok(& src, 32, & res); if (rc == 0) { cfs_free_nidlist(nidlist); return (0); } else { } rc = parse_nidrange(& res, nidlist); if (rc == 0) { cfs_free_nidlist(nidlist); return (0); } else { } ldv_50639: ; if ((unsigned long )src.ls_str != (unsigned long )((char *)0)) { goto ldv_50638; } else { } return (1); } } static char const __kstrtab_cfs_parse_nidlist[18U] = { 'c', 'f', 's', '_', 'p', 'a', 'r', 's', 'e', '_', 'n', 'i', 'd', 'l', 'i', 's', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_parse_nidlist ; struct kernel_symbol const __ksymtab_cfs_parse_nidlist = {(unsigned long )(& cfs_parse_nidlist), (char const *)(& __kstrtab_cfs_parse_nidlist)}; int cfs_match_nid(lnet_nid_t nid , struct list_head *nidlist ) { struct nidrange *nr ; struct addrrange *ar ; struct list_head const *__mptr ; __u32 tmp ; __u32 tmp___0 ; __u32 tmp___1 ; __u32 tmp___2 ; struct list_head const *__mptr___0 ; __u32 tmp___3 ; int tmp___4 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; { __mptr = (struct list_head const *)nidlist->next; nr = (struct nidrange *)__mptr; goto ldv_50669; ldv_50668: tmp = LNET_NIDNET(nid); tmp___0 = LNET_NETTYP(tmp); if ((__u32 )(nr->nr_netstrfns)->nf_type != tmp___0) { goto ldv_50660; } else { } tmp___1 = LNET_NIDNET(nid); tmp___2 = LNET_NETNUM(tmp___1); if ((__u32 )nr->nr_netnum != tmp___2) { goto ldv_50660; } else { } if (nr->nr_all != 0) { return (1); } else { } __mptr___0 = (struct list_head const *)nr->nr_addrranges.next; ar = (struct addrrange *)__mptr___0; goto ldv_50666; ldv_50665: tmp___3 = LNET_NIDADDR(nid); tmp___4 = (*((nr->nr_netstrfns)->nf_match_addr))(tmp___3, & ar->ar_numaddr_ranges); if (tmp___4 != 0) { return (1); } else { } __mptr___1 = (struct list_head const *)ar->ar_link.next; ar = (struct addrrange *)__mptr___1; ldv_50666: ; if ((unsigned long )(& ar->ar_link) != (unsigned long )(& nr->nr_addrranges)) { goto ldv_50665; } else { } ldv_50660: __mptr___2 = (struct list_head const *)nr->nr_link.next; nr = (struct nidrange *)__mptr___2; ldv_50669: ; if ((unsigned long )(& nr->nr_link) != (unsigned long )nidlist) { goto ldv_50668; } else { } return (0); } } static char const __kstrtab_cfs_match_nid[14U] = { 'c', 'f', 's', '_', 'm', 'a', 't', 'c', 'h', '_', 'n', 'i', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_match_nid ; struct kernel_symbol const __ksymtab_cfs_match_nid = {(unsigned long )(& cfs_match_nid), (char const *)(& __kstrtab_cfs_match_nid)}; void ldv_mutex_unlock_215(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_216(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_217(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_218(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_219(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_220(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_221(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern void __list_del_entry(struct list_head * ) ; __inline static void list_del_init(struct list_head *entry ) { { __list_del_entry(entry); INIT_LIST_HEAD(entry); return; } } int ldv_mutex_trylock_236(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_234(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_237(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_238(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_233(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_235(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_239(struct mutex *ldv_func_arg1 ) ; extern int proc_dostring(struct ctl_table * , int , void * , size_t * , loff_t * ) ; extern int proc_dointvec(struct ctl_table * , int , void * , size_t * , loff_t * ) ; extern int proc_dointvec_minmax(struct ctl_table * , int , void * , size_t * , loff_t * ) ; extern int proc_doulongvec_minmax(struct ctl_table * , int , void * , size_t * , loff_t * ) ; extern struct ctl_table_header *register_sysctl_table(struct ctl_table * ) ; extern void unregister_sysctl_table(struct ctl_table_header * ) ; extern struct page *alloc_pages_current(gfp_t , unsigned int ) ; __inline static struct page *alloc_pages(gfp_t gfp_mask , unsigned int order ) { struct page *tmp ; { tmp = alloc_pages_current(gfp_mask, order); return (tmp); } } extern void __free_pages(struct page * , unsigned int ) ; struct file *libcfs_fops_group2 ; int ldv_state_variable_6 ; int ldv_state_variable_0 ; struct inode *libcfs_fops_group1 ; int ldv_state_variable_5 ; int ldv_state_variable_3 ; struct timer_list *ldv_timer_list_2 ; int ldv_state_variable_2 ; struct shash_desc *alg_group0 ; int ref_cnt ; int ldv_state_variable_1 ; int ldv_state_variable_7 ; struct timer_list *ldv_timer_list_1 ; int ldv_state_variable_4 ; extern void *__symbol_get(char const * ) ; extern void __symbol_put(char const * ) ; extern bool try_module_get(struct module * ) ; extern void module_put(struct module * ) ; __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 64L) << 12) + 0xffff880000000000UL)); } } extern int misc_register(struct miscdevice * ) ; int ldv_misc_register_240(struct miscdevice *misc ) ; extern int misc_deregister(struct miscdevice * ) ; int ldv_misc_deregister_241(struct miscdevice *misc ) ; int ldv_misc_deregister_242(struct miscdevice *misc ) ; __inline static time_t cfs_duration_sec(long d ) { { return (d / 250L); } } int cfs_trace_copyin_string(char *knl_buffer , int knl_buffer_nob , char const *usr_buffer , int usr_buffer_nob ) ; int cfs_trace_copyout_string(char *usr_buffer , int usr_buffer_nob , char const *knl_buffer , char *append ) ; int libcfs_register_ioctl(struct libcfs_ioctl_handler *hand ) ; int libcfs_deregister_ioctl(struct libcfs_ioctl_handler *hand ) ; void cfs_wi_sched_destroy(struct cfs_wi_sched *sched ) ; int cfs_wi_sched_create(char *name , struct cfs_cpt_table *cptab , int cpt , int nthrs , struct cfs_wi_sched **sched_pp ) ; int cfs_wi_startup(void) ; void cfs_wi_shutdown(void) ; char cfs_tracefile[1024U] ; int cfs_trace_allocate_string_buffer(char **str , int nob ) ; void cfs_trace_free_string_buffer(char *str , int nob ) ; int cfs_trace_dump_debug_buffer_usrstr(void *usr_str , int usr_str_nob ) ; int cfs_trace_daemon_command_usrstr(void *usr_str , int usr_str_nob ) ; int cfs_trace_set_debug_mb_usrstr(void *usr_str , int usr_str_nob ) ; int cfs_trace_get_debug_mb(void) ; struct cfs_wi_sched *cfs_sched_rehash ; static int insert_proc(void) ; static void remove_proc(void) ; static struct ctl_table_header *lnet_table_header ; static void kportal_memhog_free(struct libcfs_device_userstate *ldu ) { struct page **level0p ; struct page **level1p ; struct page **level2p ; int count1 ; int count2 ; void *tmp ; void *tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { level0p = & ldu->ldu_memhog_root_page; if ((unsigned long )*level0p != (unsigned long )((struct page *)0)) { tmp = lowmem_page_address((struct page const *)*level0p); level1p = (struct page **)tmp; count1 = 0; goto ldv_51451; ldv_51450: tmp___0 = lowmem_page_address((struct page const *)*level1p); level2p = (struct page **)tmp___0; count2 = 0; goto ldv_51448; ldv_51447: __free_pages(*level2p, 0U); ldu->ldu_memhog_pages = ldu->ldu_memhog_pages - 1; level2p = level2p + 1; count2 = count2 + 1; ldv_51448: ; if ((unsigned int )count2 <= 511U && (unsigned long )*level2p != (unsigned long )((struct page *)0)) { goto ldv_51447; } else { } __free_pages(*level1p, 0U); ldu->ldu_memhog_pages = ldu->ldu_memhog_pages - 1; level1p = level1p + 1; count1 = count1 + 1; ldv_51451: ; if ((unsigned int )count1 <= 511U && (unsigned long )*level1p != (unsigned long )((struct page *)0)) { goto ldv_51450; } else { } __free_pages(*level0p, 0U); ldu->ldu_memhog_pages = ldu->ldu_memhog_pages - 1; *level0p = (struct page *)0; } else { } tmp___1 = ldv__builtin_expect(ldu->ldu_memhog_pages != 0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data.msg_fn = "kportal_memhog_free"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 149; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ldu->ldu_memhog_pages == 0"); lbug_with_loc(& __msg_data); } else { } return; } } static int kportal_memhog_alloc(struct libcfs_device_userstate *ldu , int npages , gfp_t flags ) { struct page **level0p ; struct page **level1p ; struct page **level2p ; int count1 ; int count2 ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; void *tmp___1 ; int tmp___2 ; void *tmp___3 ; int tmp___4 ; { tmp = ldv__builtin_expect(ldu->ldu_memhog_pages != 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data.msg_fn = "kportal_memhog_alloc"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 161; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"ldu->ldu_memhog_pages == 0"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )ldu->ldu_memhog_root_page != (unsigned long )((struct page *)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data___0.msg_fn = "kportal_memhog_alloc"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 162; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ldu->ldu_memhog_root_page == ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } if (npages < 0) { return (-22); } else { } if (npages == 0) { return (0); } else { } level0p = & ldu->ldu_memhog_root_page; *level0p = alloc_pages(flags, 0U); if ((unsigned long )*level0p == (unsigned long )((struct page *)0)) { return (-12); } else { } ldu->ldu_memhog_pages = ldu->ldu_memhog_pages + 1; tmp___1 = lowmem_page_address((struct page const *)*level0p); level1p = (struct page **)tmp___1; count1 = 0; memset((void *)level1p, 0, 4096UL); goto ldv_51472; ldv_51471: tmp___2 = cfs_signal_pending(); if (tmp___2 != 0) { return (-4); } else { } *level1p = alloc_pages(flags, 0U); if ((unsigned long )*level1p == (unsigned long )((struct page *)0)) { return (-12); } else { } ldu->ldu_memhog_pages = ldu->ldu_memhog_pages + 1; tmp___3 = lowmem_page_address((struct page const *)*level1p); level2p = (struct page **)tmp___3; count2 = 0; memset((void *)level2p, 0, 4096UL); goto ldv_51469; ldv_51468: tmp___4 = cfs_signal_pending(); if (tmp___4 != 0) { return (-4); } else { } *level2p = alloc_pages(flags, 0U); if ((unsigned long )*level2p == (unsigned long )((struct page *)0)) { return (-12); } else { } ldu->ldu_memhog_pages = ldu->ldu_memhog_pages + 1; level2p = level2p + 1; count2 = count2 + 1; ldv_51469: ; if (ldu->ldu_memhog_pages < npages && (unsigned int )count2 <= 511U) { goto ldv_51468; } else { } level1p = level1p + 1; count1 = count1 + 1; ldv_51472: ; if (ldu->ldu_memhog_pages < npages && (unsigned int )count1 <= 511U) { goto ldv_51471; } else { } return (0); } } static int libcfs_psdev_open___0(unsigned long flags , void *args ) { struct libcfs_device_userstate *ldu ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; { try_module_get(& __this_module); tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data.msg_fn = "libcfs_psdev_open"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 224; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*ldu))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(16UL, 80U); ldu = (struct libcfs_device_userstate *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )ldu == (unsigned long )((struct libcfs_device_userstate *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "libcfs_psdev_open"; msgdata.msg_line = 224; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(ldu)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 224, 16); } else { } tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "libcfs_psdev_open"; msgdata___0.msg_line = 224; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)ldu, 0, 16UL); atomic_add(16, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1024U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___1.msg_fn = "libcfs_psdev_open"; msgdata___1.msg_line = 224; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(ldu)\': %d at %p (tot %d).\n", 16, ldu, tmp___5); } else { } } if ((unsigned long )ldu != (unsigned long )((struct libcfs_device_userstate *)0)) { ldu->ldu_memhog_pages = 0; ldu->ldu_memhog_root_page = (struct page *)0; } else { } *((struct libcfs_device_userstate **)args) = ldu; return (0); } } static int libcfs_psdev_release___0(unsigned long flags , void *args ) { struct libcfs_device_userstate *ldu ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; { ldu = (struct libcfs_device_userstate *)args; if ((unsigned long )ldu != (unsigned long )((struct libcfs_device_userstate *)0)) { kportal_memhog_free(ldu); s = 16; tmp___0 = ldv__builtin_expect((unsigned long )ldu == (unsigned long )((struct libcfs_device_userstate *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "libcfs_psdev_release"; msgdata.msg_line = 242; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'ldu\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 242); } else { } goto ldv_51495; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "libcfs_psdev_release"; msgdata___0.msg_line = 242; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'ldu\': %d at %p (tot %d).\n", s, ldu, tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)ldu); } else { kfree((void const *)ldu); } ldv_51495: ; } else { } module_put(& __this_module); return (0); } } static struct rw_semaphore ioctl_list_sem = {0L, {& ioctl_list_sem.wait_list, & ioctl_list_sem.wait_list}, {{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "ioctl_list_sem.wait_lock", 0, 0UL}}, {{0}}, (struct task_struct *)0, {0, {0, 0}, "ioctl_list_sem", 0, 0UL}}; static struct list_head ioctl_list = {& ioctl_list, & ioctl_list}; int libcfs_register_ioctl(struct libcfs_ioctl_handler *hand ) { int rc ; int tmp ; { rc = 0; down_write(& ioctl_list_sem); tmp = list_empty((struct list_head const *)(& hand->item)); if (tmp == 0) { rc = -16; } else { list_add_tail(& hand->item, & ioctl_list); } up_write(& ioctl_list_sem); return (rc); } } static char const __kstrtab_libcfs_register_ioctl[22U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', '_', 'i', 'o', 'c', 't', 'l', '\000'}; struct kernel_symbol const __ksymtab_libcfs_register_ioctl ; struct kernel_symbol const __ksymtab_libcfs_register_ioctl = {(unsigned long )(& libcfs_register_ioctl), (char const *)(& __kstrtab_libcfs_register_ioctl)}; int libcfs_deregister_ioctl(struct libcfs_ioctl_handler *hand ) { int rc ; int tmp ; { rc = 0; down_write(& ioctl_list_sem); tmp = list_empty((struct list_head const *)(& hand->item)); if (tmp != 0) { rc = -2; } else { list_del_init(& hand->item); } up_write(& ioctl_list_sem); return (rc); } } static char const __kstrtab_libcfs_deregister_ioctl[24U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', '_', 'i', 'o', 'c', 't', 'l', '\000'}; struct kernel_symbol const __ksymtab_libcfs_deregister_ioctl ; struct kernel_symbol const __ksymtab_libcfs_deregister_ioctl = {(unsigned long )(& libcfs_deregister_ioctl), (char const *)(& __kstrtab_libcfs_deregister_ioctl)}; static int libcfs_ioctl_int(struct cfs_psdev_file *pfile , unsigned long cmd , void *arg , struct libcfs_ioctl_data *data ) { int err ; void (*ping)(struct libcfs_ioctl_data * ) ; struct libcfs_debug_msg_data msgdata ; char *tmp ; char *tmp___0 ; int tmp___1 ; void *tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; struct libcfs_ioctl_handler *hand ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { err = -22; switch (cmd) { case 0xffffffffc008651fUL: libcfs_debug_clear_buffer(); return (0); case 0xffffffffc0086520UL: ; if ((unsigned long )data->ioc_inlbuf1 == (unsigned long )((char *)0) || (int )((signed char )*(data->ioc_inlbuf1 + (unsigned long )(data->ioc_inllen1 - 1U))) != 0) { return (-22); } else { } libcfs_debug_mark_buffer((char const *)data->ioc_inlbuf1); return (0); case 0xffffffffc0086524UL: ; if ((unsigned long )pfile->private_data == (unsigned long )((void *)0)) { err = -22; } else { kportal_memhog_free((struct libcfs_device_userstate *)pfile->private_data); err = kportal_memhog_alloc((struct libcfs_device_userstate *)pfile->private_data, (int )data->ioc_count, data->ioc_flags); if (err != 0) { kportal_memhog_free((struct libcfs_device_userstate *)pfile->private_data); } else { } } goto ldv_51532; case 0xffffffffc0086525UL: tmp___1 = cfs_cdebug_show(128U, 1024U); if (tmp___1 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "libcfs_ioctl_int"; msgdata.msg_line = 321; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 128; tmp = libcfs_nid2str(data->ioc_nid); tmp___0 = libcfs_nid2str(data->ioc_nid); libcfs_debug_msg(& msgdata, "doing %d pings to nid %s (%s)\n", data->ioc_count, tmp___0, tmp); } else { } tmp___2 = __symbol_get("kping_client"); ping = (void (*)(struct libcfs_ioctl_data * ))tmp___2; if ((unsigned long )ping == (unsigned long )((void (*)(struct libcfs_ioctl_data * ))0)) { tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "libcfs_ioctl_int"; msgdata___0.msg_line = 324; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "symbol_get failed\n"); } else { } } else { (*ping)(data); __symbol_put("kping_client"); } return (0); default: err = -22; down_read(& ioctl_list_sem); __mptr = (struct list_head const *)ioctl_list.next; hand = (struct libcfs_ioctl_handler *)__mptr; goto ldv_51551; ldv_51550: err = (*(hand->handle_ioctl))((unsigned int )cmd, data); if (err != -22) { if (err == 0) { err = libcfs_ioctl_popdata(arg, (void *)data, 128); } else { } goto ldv_51549; } else { } __mptr___0 = (struct list_head const *)hand->item.next; hand = (struct libcfs_ioctl_handler *)__mptr___0; ldv_51551: ; if ((unsigned long )(& hand->item) != (unsigned long )(& ioctl_list)) { goto ldv_51550; } else { } ldv_51549: up_read(& ioctl_list_sem); goto ldv_51532; } ldv_51532: ; return (err); } } static int libcfs_ioctl___0(struct cfs_psdev_file *pfile , unsigned long cmd , void *arg ) { char *buf ; struct libcfs_ioctl_data *data ; int err ; struct libcfs_debug_msg_data __msg_data ; long tmp ; void *tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___2 ; int tmp___3 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; int tmp___5 ; long tmp___6 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___7 ; int tmp___8 ; int s ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___9 ; long tmp___10 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___11 ; int tmp___12 ; long tmp___13 ; { err = 0; preempt_count(); tmp = ldv__builtin_expect(0L, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data.msg_fn = "libcfs_ioctl"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 359; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((1024)) <= (2 << 12) && (((((( gfp_t)0x40u) | (( gfp_t)0x80u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = kmalloc(1024UL, 192U); buf = (char *)tmp___0; tmp___6 = ldv__builtin_expect((unsigned long )buf == (unsigned long )((char *)0), 0L); if (tmp___6 != 0L) { tmp___1 = cfs_cdebug_show(131072U, 1024U); if (tmp___1 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "libcfs_ioctl"; msgdata.msg_line = 359; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(buf)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 359, 1024); } else { } tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "libcfs_ioctl"; msgdata___0.msg_line = 359; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___2 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___2); } else { } } else { memset((void *)buf, 0, 1024UL); atomic_add(1024, & libcfs_kmemory); tmp___5 = cfs_cdebug_show(16U, 1024U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___1.msg_fn = "libcfs_ioctl"; msgdata___1.msg_line = 359; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___4 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(buf)\': %d at %p (tot %d).\n", 1024, buf, tmp___4); } else { } } if ((unsigned long )buf == (unsigned long )((char *)0)) { return (-12); } else { } tmp___8 = libcfs_ioctl_getdata(buf, buf + 800UL, arg); if (tmp___8 != 0) { tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___2.msg_fn = "libcfs_ioctl"; msgdata___2.msg_line = 365; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "PORTALS ioctl: data error\n"); } else { } err = -22; goto out; } else { } data = (struct libcfs_ioctl_data *)buf; err = libcfs_ioctl_int(pfile, cmd, arg, data); out: s = 1024; tmp___10 = ldv__builtin_expect((unsigned long )buf == (unsigned long )((char *)0), 0L); if (tmp___10 != 0L) { tmp___9 = cfs_cdebug_show(131072U, 1024U); if (tmp___9 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___3.msg_fn = "libcfs_ioctl"; msgdata___3.msg_line = 374; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "LIBCFS: free NULL \'buf\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 374); } else { } goto ldv_51573; } else { } atomic_sub(s, & libcfs_kmemory); tmp___12 = cfs_cdebug_show(16U, 1024U); if (tmp___12 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___4.msg_fn = "libcfs_ioctl"; msgdata___4.msg_line = 374; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___11 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___4, "kfreed \'buf\': %d at %p (tot %d).\n", s, buf, tmp___11); } else { } tmp___13 = ldv__builtin_expect(s > 8192, 0L); if (tmp___13 != 0L) { vfree((void const *)buf); } else { kfree((void const *)buf); } ldv_51573: ; return (err); } } struct cfs_psdev_ops libcfs_psdev_ops = {& libcfs_psdev_open___0, & libcfs_psdev_release___0, (int (*)(struct cfs_psdev_file * , char * , unsigned long ))0, (int (*)(struct cfs_psdev_file * , char * , unsigned long ))0, & libcfs_ioctl___0}; static int init_libcfs_module(void) { int rc ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___0 ; int _min1 ; int tmp___1 ; int _min2 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; struct cfs_debug_limit_state cdls___3 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___5 ; { libcfs_arch_init(); libcfs_init_nidstrings(); rc = libcfs_debug_init(5242880UL); if (rc < 0) { printk("\vLustreError: libcfs_debug_init: %d\n", rc); return (rc); } else { } rc = cfs_cpu_init(); if (rc != 0) { goto cleanup_debug; } else { } rc = ldv_misc_register_240(& libcfs_dev); if (rc != 0) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "init_libcfs_module"; msgdata.msg_line = 406; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "misc_register: error %d\n", rc); } else { } goto cleanup_cpu; } else { } rc = cfs_wi_startup(); if (rc != 0) { tmp___0 = cfs_cdebug_show(131072U, 1024U); if (tmp___0 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "init_libcfs_module"; msgdata___0.msg_line = 412; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "initialize workitem: error %d\n", rc); } else { } goto cleanup_deregister; } else { } tmp___1 = cfs_cpt_weight(cfs_cpt_table, -1); _min1 = tmp___1; _min2 = 4; rc = _min1 < _min2 ? _min1 : _min2; rc = cfs_wi_sched_create((char *)"cfs_rh", cfs_cpt_table, -1, rc, & cfs_sched_rehash); if (rc != 0) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___1.msg_fn = "init_libcfs_module"; msgdata___1.msg_line = 421; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "Startup workitem scheduler: error: %d\n", rc); } else { } goto cleanup_deregister; } else { } rc = cfs_crypto_register(); if (rc != 0) { tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___2.msg_fn = "init_libcfs_module"; msgdata___2.msg_line = 427; msgdata___2.msg_cdls = & cdls___2; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "cfs_crypto_register: error %d\n", rc); } else { } goto cleanup_wi; } else { } rc = insert_proc(); if (rc != 0) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___3.msg_fn = "init_libcfs_module"; msgdata___3.msg_line = 434; msgdata___3.msg_cdls = & cdls___3; msgdata___3.msg_mask = 131072; libcfs_debug_msg(& msgdata___3, "insert_proc: error %d\n", rc); } else { } goto cleanup_crypto; } else { } tmp___5 = cfs_cdebug_show(4096U, 1024U); if (tmp___5 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___4.msg_fn = "init_libcfs_module"; msgdata___4.msg_line = 438; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 4096; libcfs_debug_msg(& msgdata___4, "portals setup OK\n"); } else { } return (0); cleanup_crypto: cfs_crypto_unregister(); cleanup_wi: cfs_wi_shutdown(); cleanup_deregister: ldv_misc_deregister_241(& libcfs_dev); cleanup_cpu: cfs_cpu_fini(); cleanup_debug: libcfs_debug_cleanup(); return (rc); } } static void exit_libcfs_module(void) { int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; { remove_proc(); tmp___0 = cfs_cdebug_show(16U, 1024U); if (tmp___0 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "exit_libcfs_module"; msgdata.msg_line = 460; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 16; tmp = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata, "before Portals cleanup: kmem %d\n", tmp); } else { } if ((unsigned long )cfs_sched_rehash != (unsigned long )((struct cfs_wi_sched *)0)) { cfs_wi_sched_destroy(cfs_sched_rehash); cfs_sched_rehash = (struct cfs_wi_sched *)0; } else { } cfs_crypto_unregister(); cfs_wi_shutdown(); rc = ldv_misc_deregister_242(& libcfs_dev); if (rc != 0) { tmp___1 = cfs_cdebug_show(131072U, 1024U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "exit_libcfs_module"; msgdata___0.msg_line = 472; msgdata___0.msg_cdls = & cdls; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "misc_deregister error %d\n", rc); } else { } } else { } cfs_cpu_fini(); tmp___4 = atomic_read((atomic_t const *)(& libcfs_kmemory)); if (tmp___4 != 0) { tmp___3 = cfs_cdebug_show(131072U, 1024U); if (tmp___3 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___1.msg_fn = "exit_libcfs_module"; msgdata___1.msg_line = 478; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; tmp___2 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "Portals memory leaked: %d bytes\n", tmp___2); } else { } } else { } rc = libcfs_debug_cleanup(); if (rc != 0) { printk("\vLustreError: libcfs_debug_cleanup: %d\n", rc); } else { } libcfs_arch_cleanup(); return; } } static int proc_call_handler(void *data , int write , loff_t *ppos , void *buffer , size_t *lenp , int (*handler)(void * , int , loff_t , void * , int ) ) { int rc ; int tmp ; { tmp = (*handler)(data, write, *ppos, buffer, (int )*lenp); rc = tmp; if (rc < 0) { return (rc); } else { } if (write != 0) { *ppos = (loff_t )((unsigned long long )*ppos + (unsigned long long )*lenp); } else { *lenp = (size_t )rc; *ppos = *ppos + (loff_t )rc; } return (0); } } static int __proc_dobitmasks(void *data , int write , loff_t pos , void *buffer , int nob ) { int tmpstrlen ; char *tmpstr ; int rc ; unsigned int *mask ; int is_subsys ; int is_printk ; size_t tmp ; { tmpstrlen = 512; mask = (unsigned int *)data; is_subsys = (unsigned long )mask == (unsigned long )(& libcfs_subsystem_debug); is_printk = (unsigned long )mask == (unsigned long )(& libcfs_printk); rc = cfs_trace_allocate_string_buffer(& tmpstr, tmpstrlen); if (rc < 0) { return (rc); } else { } if (write == 0) { libcfs_debug_mask2str(tmpstr, tmpstrlen, (int )*mask, is_subsys); tmp = strlen((char const *)tmpstr); rc = (int )tmp; if ((loff_t )rc <= pos) { rc = 0; } else { rc = cfs_trace_copyout_string((char *)buffer, nob, (char const *)tmpstr + (unsigned long )pos, (char *)"\n"); } } else { rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, (char const *)buffer, nob); if (rc < 0) { cfs_trace_free_string_buffer(tmpstr, tmpstrlen); return (rc); } else { } rc = libcfs_debug_str2mask((int *)mask, (char const *)tmpstr, is_subsys); if (is_printk != 0) { *mask = *mask | 262144U; } else { } } cfs_trace_free_string_buffer(tmpstr, tmpstrlen); return (rc); } } static int proc_dobitmasks(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int tmp ; { tmp = proc_call_handler(table->data, write, ppos, buffer, lenp, & __proc_dobitmasks); return (tmp); } } static int min_watchdog_ratelimit ; static int max_watchdog_ratelimit = 86400; static int __proc_dump_kernel(void *data , int write , loff_t pos , void *buffer , int nob ) { int tmp ; { if (write == 0) { return (0); } else { } tmp = cfs_trace_dump_debug_buffer_usrstr(buffer, nob); return (tmp); } } static int proc_dump_kernel(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int tmp ; { tmp = proc_call_handler(table->data, write, ppos, buffer, lenp, & __proc_dump_kernel); return (tmp); } } static int __proc_daemon_file(void *data , int write , loff_t pos , void *buffer , int nob ) { int len ; size_t tmp ; int tmp___0 ; int tmp___1 ; { if (write == 0) { tmp = strlen((char const *)(& cfs_tracefile)); len = (int )tmp; if ((loff_t )len <= pos) { return (0); } else { } tmp___0 = cfs_trace_copyout_string((char *)buffer, nob, (char const *)(& cfs_tracefile) + (unsigned long )pos, (char *)"\n"); return (tmp___0); } else { } tmp___1 = cfs_trace_daemon_command_usrstr(buffer, nob); return (tmp___1); } } static int proc_daemon_file(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int tmp ; { tmp = proc_call_handler(table->data, write, ppos, buffer, lenp, & __proc_daemon_file); return (tmp); } } static int __proc_debug_mb(void *data , int write , loff_t pos , void *buffer , int nob ) { char tmpstr[32U] ; int len ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { if (write == 0) { tmp = cfs_trace_get_debug_mb(); tmp___0 = snprintf((char *)(& tmpstr), 32UL, "%d", tmp); len = tmp___0; if ((loff_t )len <= pos) { return (0); } else { } tmp___1 = cfs_trace_copyout_string((char *)buffer, nob, (char const *)(& tmpstr) + (unsigned long )pos, (char *)"\n"); return (tmp___1); } else { } tmp___2 = cfs_trace_set_debug_mb_usrstr(buffer, nob); return (tmp___2); } } static int proc_debug_mb(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int tmp ; { tmp = proc_call_handler(table->data, write, ppos, buffer, lenp, & __proc_debug_mb); return (tmp); } } static int proc_console_max_delay_cs(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int rc ; int max_delay_cs ; struct ctl_table dummy ; long d ; time_t tmp ; long tmp___0 ; { dummy = *table; dummy.data = (void *)(& max_delay_cs); dummy.proc_handler = & proc_dointvec; if (write == 0) { tmp = cfs_duration_sec((long )(libcfs_console_max_delay * 100U)); max_delay_cs = (int )tmp; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); return (rc); } else { } max_delay_cs = 0; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); if (rc < 0) { return (rc); } else { } if (max_delay_cs <= 0) { return (-22); } else { } tmp___0 = cfs_time_seconds(max_delay_cs); d = tmp___0 / 100L; if (d == 0L || (long )libcfs_console_min_delay > d) { return (-22); } else { } libcfs_console_max_delay = (unsigned int )d; return (rc); } } static int proc_console_min_delay_cs(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int rc ; int min_delay_cs ; struct ctl_table dummy ; long d ; time_t tmp ; long tmp___0 ; { dummy = *table; dummy.data = (void *)(& min_delay_cs); dummy.proc_handler = & proc_dointvec; if (write == 0) { tmp = cfs_duration_sec((long )(libcfs_console_min_delay * 100U)); min_delay_cs = (int )tmp; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); return (rc); } else { } min_delay_cs = 0; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); if (rc < 0) { return (rc); } else { } if (min_delay_cs <= 0) { return (-22); } else { } tmp___0 = cfs_time_seconds(min_delay_cs); d = tmp___0 / 100L; if (d == 0L || (long )libcfs_console_max_delay < d) { return (-22); } else { } libcfs_console_min_delay = (unsigned int )d; return (rc); } } static int proc_console_backoff(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int rc ; int backoff ; struct ctl_table dummy ; { dummy = *table; dummy.data = (void *)(& backoff); dummy.proc_handler = & proc_dointvec; if (write == 0) { backoff = (int )libcfs_console_backoff; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); return (rc); } else { } backoff = 0; rc = proc_dointvec(& dummy, write, buffer, lenp, ppos); if (rc < 0) { return (rc); } else { } if (backoff <= 0) { return (-22); } else { } libcfs_console_backoff = (unsigned int )backoff; return (rc); } } static int libcfs_force_lbug(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { struct libcfs_debug_msg_data msgdata ; { if (write != 0) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "libcfs_force_lbug"; msgdata.msg_subsys = 1024; msgdata.msg_line = 720; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); } else { } return (0); } } static int proc_fail_loc(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int rc ; long old_fail_loc ; { old_fail_loc = (long )cfs_fail_loc; rc = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); if ((unsigned long )old_fail_loc != cfs_fail_loc) { __wake_up(& cfs_race_waitq, 3U, 1, (void *)0); } else { } return (rc); } } static int __proc_cpt_table(void *data , int write , loff_t pos , void *buffer , int nob ) { char *buf ; int len ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; int s ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___11 ; long tmp___12 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___13 ; int tmp___14 ; long tmp___15 ; int s___0 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___16 ; long tmp___17 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___18 ; int tmp___19 ; long tmp___20 ; { buf = (char *)0; len = 4096; rc = 0; if (write != 0) { return (-1); } else { } tmp = ldv__builtin_expect((unsigned long )cfs_cpt_table == (unsigned long )((struct cfs_cpt_table *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data.msg_fn = "__proc_cpt_table"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 747; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_cpt_table != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } ldv_51767: tmp___0 = preempt_count(); tmp___1 = ldv__builtin_expect((long )(((unsigned long )tmp___0 & 2096896UL) != 0UL && 1), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; __msg_data___0.msg_fn = "__proc_cpt_table"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 750; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((len)) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } if (len <= 8192) { tmp___2 = kmalloc((size_t )len, 80U); tmp___4 = tmp___2; } else { tmp___3 = vmalloc((unsigned long )len); tmp___4 = tmp___3; } buf = (char *)tmp___4; tmp___10 = ldv__builtin_expect((unsigned long )buf == (unsigned long )((char *)0), 0L); if (tmp___10 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata.msg_fn = "__proc_cpt_table"; msgdata.msg_line = 750; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(buf)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 750, len); } else { } tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___0.msg_fn = "__proc_cpt_table"; msgdata___0.msg_line = 750; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___6); } else { } } else { memset((void *)buf, 0, (size_t )len); atomic_add(len, & libcfs_kmemory); tmp___9 = cfs_cdebug_show(16U, 1024U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___1.msg_fn = "__proc_cpt_table"; msgdata___1.msg_line = 750; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___8 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(buf)\': %d at %p (tot %d).\n", len, buf, tmp___8); } else { } } if ((unsigned long )buf == (unsigned long )((char *)0)) { return (-12); } else { } rc = cfs_cpt_table_print(cfs_cpt_table, buf, len); if (rc >= 0) { goto ldv_51759; } else { } if (rc == -27) { s = len; tmp___12 = ldv__builtin_expect((unsigned long )buf == (unsigned long )((char *)0), 0L); if (tmp___12 != 0L) { tmp___11 = cfs_cdebug_show(131072U, 1024U); if (tmp___11 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___2.msg_fn = "__proc_cpt_table"; msgdata___2.msg_line = 759; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LIBCFS: free NULL \'buf\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 759); } else { } goto ldv_51763; } else { } atomic_sub(s, & libcfs_kmemory); tmp___14 = cfs_cdebug_show(16U, 1024U); if (tmp___14 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___3.msg_fn = "__proc_cpt_table"; msgdata___3.msg_line = 759; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 16; tmp___13 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "kfreed \'buf\': %d at %p (tot %d).\n", s, buf, tmp___13); } else { } tmp___15 = ldv__builtin_expect(s > 8192, 0L); if (tmp___15 != 0L) { vfree((void const *)buf); } else { kfree((void const *)buf); } ldv_51763: len = len << 1; goto ldv_51765; } else { } goto out; ldv_51765: ; goto ldv_51767; ldv_51759: ; if ((loff_t )rc <= pos) { rc = 0; goto out; } else { } rc = cfs_trace_copyout_string((char *)buffer, nob, (char const *)buf + (unsigned long )pos, (char *)0); out: ; if ((unsigned long )buf != (unsigned long )((char *)0)) { s___0 = len; tmp___17 = ldv__builtin_expect((unsigned long )buf == (unsigned long )((char *)0), 0L); if (tmp___17 != 0L) { tmp___16 = cfs_cdebug_show(131072U, 1024U); if (tmp___16 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___4.msg_fn = "__proc_cpt_table"; msgdata___4.msg_line = 774; msgdata___4.msg_cdls = & cdls___2; msgdata___4.msg_mask = 131072; libcfs_debug_msg(& msgdata___4, "LIBCFS: free NULL \'buf\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c", 774); } else { } goto ldv_51771; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___19 = cfs_cdebug_show(16U, 1024U); if (tmp___19 != 0) { msgdata___5.msg_subsys = 1024; msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/module.c"; msgdata___5.msg_fn = "__proc_cpt_table"; msgdata___5.msg_line = 774; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 16; tmp___18 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___5, "kfreed \'buf\': %d at %p (tot %d).\n", s___0, buf, tmp___18); } else { } tmp___20 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___20 != 0L) { vfree((void const *)buf); } else { kfree((void const *)buf); } ldv_51771: ; } else { } return (rc); } } static int proc_cpt_table(struct ctl_table *table , int write , void *buffer , size_t *lenp , loff_t *ppos ) { int tmp ; { tmp = proc_call_handler(table->data, write, ppos, buffer, lenp, & __proc_cpt_table); return (tmp); } } static struct ctl_table lnet_table[22U] = { {"debug", (void *)(& libcfs_debug), 4, 420U, 0, & proc_dobitmasks, 0, 0, 0}, {"subsystem_debug", (void *)(& libcfs_subsystem_debug), 4, 420U, 0, & proc_dobitmasks, 0, 0, 0}, {"printk", (void *)(& libcfs_printk), 4, 420U, 0, & proc_dobitmasks, 0, 0, 0}, {"console_ratelimit", (void *)(& libcfs_console_ratelimit), 4, 420U, 0, & proc_dointvec, 0, 0, 0}, {"console_max_delay_centisecs", 0, 4, 420U, 0, & proc_console_max_delay_cs, 0, 0, 0}, {"console_min_delay_centisecs", 0, 4, 420U, 0, & proc_console_min_delay_cs, 0, 0, 0}, {"console_backoff", 0, 4, 420U, 0, & proc_console_backoff, 0, 0, 0}, {"debug_path", (void *)(& libcfs_debug_file_path_arr), 4096, 420U, 0, & proc_dostring, 0, 0, 0}, {"cpu_partition_table", 0, 128, 292U, 0, & proc_cpt_table, 0, 0, 0}, {"upcall", (void *)(& lnet_upcall), 1024, 420U, 0, & proc_dostring, 0, 0, 0}, {"debug_log_upcall", (void *)(& lnet_debug_log_upcall), 1024, 420U, 0, & proc_dostring, 0, 0, 0}, {"lnet_memused", (void *)(& libcfs_kmemory.counter), 4, 292U, 0, & proc_dointvec, 0, 0, 0}, {"catastrophe", (void *)(& libcfs_catastrophe), 4, 292U, 0, & proc_dointvec, 0, 0, 0}, {"panic_on_lbug", (void *)(& libcfs_panic_on_lbug), 4, 420U, 0, & proc_dointvec, 0, 0, 0}, {"dump_kernel", 0, 256, 128U, 0, & proc_dump_kernel, 0, 0, 0}, {"daemon_file", 0, 256, 420U, 0, & proc_daemon_file, 0, 0, 0}, {"debug_mb", 0, 0, 420U, 0, & proc_debug_mb, 0, 0, 0}, {"watchdog_ratelimit", (void *)(& libcfs_watchdog_ratelimit), 4, 420U, 0, & proc_dointvec_minmax, 0, (void *)(& min_watchdog_ratelimit), (void *)(& max_watchdog_ratelimit)}, {"force_lbug", (void *)0, 0, 128U, 0, & libcfs_force_lbug, 0, 0, 0}, {"fail_loc", (void *)(& cfs_fail_loc), 8, 420U, 0, & proc_fail_loc, 0, 0, 0}, {"fail_val", (void *)(& cfs_fail_val), 4, 420U, 0, & proc_dointvec, 0, 0, 0}}; static struct ctl_table top_table[2U] = { {"lnet", (void *)0, 0, 365U, (struct ctl_table *)(& lnet_table), 0, 0, 0, 0}}; static int insert_proc(void) { { if ((unsigned long )lnet_table_header == (unsigned long )((struct ctl_table_header *)0)) { lnet_table_header = register_sysctl_table((struct ctl_table *)(& top_table)); } else { } return (0); } } static void remove_proc(void) { { if ((unsigned long )lnet_table_header != (unsigned long )((struct ctl_table_header *)0)) { unregister_sysctl_table(lnet_table_header); } else { } lnet_table_header = (struct ctl_table_header *)0; return; } } int ldv_retval_1 ; extern void ldv_initialize(void) ; void ldv_check_final_state(void) ; int main(void) { void *ldvarg8 ; void *tmp ; struct cfs_psdev_file *ldvarg7 ; void *tmp___0 ; void *ldvarg4 ; void *tmp___1 ; unsigned long ldvarg3 ; unsigned long ldvarg9 ; unsigned long ldvarg5 ; void *ldvarg6 ; void *tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; { tmp = ldv_init_zalloc(1UL); ldvarg8 = tmp; tmp___0 = ldv_init_zalloc(32UL); ldvarg7 = (struct cfs_psdev_file *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg4 = tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg6 = tmp___2; ldv_initialize(); ldv_memset((void *)(& ldvarg3), 0, 8UL); ldv_memset((void *)(& ldvarg9), 0, 8UL); ldv_memset((void *)(& ldvarg5), 0, 8UL); ldv_state_variable_6 = 0; ldv_state_variable_3 = 0; ldv_state_variable_7 = 0; ldv_state_variable_2 = 1; ldv_state_variable_1 = 1; ldv_state_variable_4 = 0; ref_cnt = 0; ldv_state_variable_0 = 1; ldv_state_variable_5 = 0; ldv_51848: tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_6 != 0) { ldv_main_exported_6(); } else { } goto ldv_51829; case 1: ; if (ldv_state_variable_3 != 0) { tmp___4 = __VERIFIER_nondet_int(); switch (tmp___4) { case 0: ; if (ldv_state_variable_3 == 1) { libcfs_ioctl___0(ldvarg7, ldvarg9, ldvarg8); ldv_state_variable_3 = 1; } else { } goto ldv_51832; case 1: ; if (ldv_state_variable_3 == 1) { libcfs_psdev_open___0(ldvarg5, ldvarg6); ldv_state_variable_3 = 1; } else { } goto ldv_51832; case 2: ; if (ldv_state_variable_3 == 1) { libcfs_psdev_release___0(ldvarg3, ldvarg4); ldv_state_variable_3 = 1; } else { } goto ldv_51832; default: ldv_stop(); } ldv_51832: ; } else { } goto ldv_51829; case 2: ; if (ldv_state_variable_7 != 0) { ldv_main_exported_7(); } else { } goto ldv_51829; case 3: ; goto ldv_51829; case 4: ; goto ldv_51829; case 5: ; if (ldv_state_variable_4 != 0) { ldv_main_exported_4(); } else { } goto ldv_51829; case 6: ; if (ldv_state_variable_0 != 0) { tmp___5 = __VERIFIER_nondet_int(); switch (tmp___5) { case 0: ; if (ldv_state_variable_0 == 3 && ref_cnt == 0) { exit_libcfs_module(); ldv_state_variable_0 = 2; goto ldv_final; } else { } goto ldv_51843; case 1: ; if (ldv_state_variable_0 == 1) { ldv_retval_1 = init_libcfs_module(); if (ldv_retval_1 == 0) { ldv_state_variable_0 = 3; ldv_state_variable_7 = 1; ldv_state_variable_3 = 1; ldv_state_variable_4 = 1; ldv_initialize_shash_alg_4(); ldv_state_variable_6 = 1; } else { } if (ldv_retval_1 != 0) { ldv_state_variable_0 = 2; goto ldv_final; } else { } } else { } goto ldv_51843; default: ldv_stop(); } ldv_51843: ; } else { } goto ldv_51829; case 7: ; if (ldv_state_variable_5 != 0) { ldv_main_exported_5(); } else { } goto ldv_51829; default: ldv_stop(); } ldv_51829: ; goto ldv_51848; ldv_final: ldv_check_final_state(); return 0; } } void ldv_mutex_lock_233(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_234(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_235(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_236(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_237(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_238(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_239(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_misc_register_240(struct miscdevice *misc ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; { tmp = misc_register(misc); ldv_func_res = tmp; ldv_state_variable_5 = 1; ldv_file_operations_5(); return (ldv_func_res); } } int ldv_misc_deregister_241(struct miscdevice *misc ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; { tmp = misc_deregister(misc); ldv_func_res = tmp; ldv_state_variable_5 = 0; return (ldv_func_res); } } int ldv_misc_deregister_242(struct miscdevice *misc ) { ldv_func_ret_type___2 ldv_func_res ; int tmp ; { tmp = misc_deregister(misc); ldv_func_res = tmp; ldv_state_variable_5 = 0; return (ldv_func_res); } } void ldv__builtin_va_end(__builtin_va_list * ) ; void __builtin_va_copy(__builtin_va_list , __builtin_va_list ) ; __inline static long ldv__builtin_expect(long exp , long c ) ; void ldv__builtin_va_start(__builtin_va_list * ) ; __inline static int constant_test_bit(long nr , unsigned long const volatile *addr ) { { return ((int )((unsigned long )*(addr + (unsigned long )(nr >> 6)) >> ((int )nr & 63)) & 1); } } extern int __printk_ratelimit(char const * ) ; extern void __might_sleep(char const * , int , int ) ; extern unsigned long simple_strtoul(char const * , char ** , unsigned int ) ; extern int vsnprintf(char * , size_t , char const * , va_list * ) ; __inline static void list_move_tail(struct list_head *list , struct list_head *head ) { { __list_del_entry(list); list_add_tail(list, head); return; } } __inline static void __list_splice(struct list_head const *list , struct list_head *prev , struct list_head *next ) { struct list_head *first ; struct list_head *last ; { first = list->next; last = list->prev; first->prev = prev; prev->next = first; last->next = next; next->prev = last; return; } } __inline static void list_splice_init(struct list_head *list , struct list_head *head ) { int tmp ; { tmp = list_empty((struct list_head const *)list); if (tmp == 0) { __list_splice((struct list_head const *)list, head, head->next); INIT_LIST_HEAD(list); } else { } return; } } extern char *strcpy(char * , char const * ) ; extern char *strrchr(char const * , int ) ; extern __kernel_size_t strnlen(char const * , __kernel_size_t ) ; __inline static char const *kbasename(char const *path ) { char const *tail ; char *tmp ; { tmp = strrchr(path, 47); tail = (char const *)tmp; return ((unsigned long )tail != (unsigned long )((char const *)0) ? tail + 1UL : path); } } __inline static unsigned int cpumask_check___0(unsigned int cpu ) { bool __warned ; int __ret_warn_once ; int __ret_warn_on ; long tmp ; long tmp___0 ; long tmp___1 ; { __ret_warn_once = (unsigned int )nr_cpu_ids <= cpu; tmp___1 = ldv__builtin_expect(__ret_warn_once != 0, 0L); if (tmp___1 != 0L) { __ret_warn_on = ! __warned; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp != 0L) { warn_slowpath_null("include/linux/cpumask.h", 117); } else { } tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { __warned = 1; } else { } } else { } ldv__builtin_expect(__ret_warn_once != 0, 0L); return (cpu); } } __inline static unsigned int cpumask_next___0(int n , struct cpumask const *srcp ) { unsigned long tmp ; { if (n != -1) { cpumask_check___0((unsigned int )n); } else { } tmp = find_next_bit((unsigned long const *)(& srcp->bits), (unsigned long )nr_cpu_ids, (unsigned long )(n + 1)); return ((unsigned int )tmp); } } __inline static int cpumask_test_cpu___0(int cpu , struct cpumask const *cpumask ) { unsigned int tmp ; int tmp___0 ; { tmp = cpumask_check___0((unsigned int )cpu); tmp___0 = variable_test_bit((long )tmp, (unsigned long const volatile *)(& cpumask->bits)); return (tmp___0); } } __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; extern struct tss_struct cpu_tss ; __inline static unsigned long current_top_of_stack(void) { u64 pfo_ret__ ; { switch (8UL) { case 1UL: __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5374; case 2UL: __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5374; case 4UL: __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5374; case 8UL: __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& cpu_tss.x86_tss.sp0)); goto ldv_5374; default: __bad_percpu_size(); } ldv_5374: ; return ((unsigned long )pfo_ret__); } } __inline static void atomic_inc(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; incl %0": "+m" (v->counter)); return; } } __inline static void atomic_dec(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; decl %0": "+m" (v->counter)); return; } } int ldv_mutex_trylock_262(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_257(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_260(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_263(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_265(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_267(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_258(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_259(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_261(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_264(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_266(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_cfs_trace_thread_mutex(struct mutex *lock ) ; void ldv_mutex_unlock_cfs_trace_thread_mutex(struct mutex *lock ) ; __inline static struct thread_info *current_thread_info(void) { unsigned long tmp ; { tmp = current_top_of_stack(); return ((struct thread_info *)(tmp - 32768UL)); } } __inline static int preempt_count___4(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6554; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6554; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6554; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6554; default: __bad_percpu_size(); } ldv_6554: ; return (pfo_ret__ & 2147483647); } } __inline static void __preempt_count_add(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6611; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6611; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6611; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (val)); } goto ldv_6611; default: __bad_percpu_size(); } ldv_6611: ; return; } } __inline static void __preempt_count_sub(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6623; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6623; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6623; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6623; default: __bad_percpu_size(); } ldv_6623: ; return; } } __inline static void init_completion(struct completion *x ) { struct lock_class_key __key ; { x->done = 0U; __init_waitqueue_head(& x->wait, "&x->wait", & __key); return; } } extern void wait_for_completion(struct completion * ) ; extern void complete(struct completion * ) ; __inline static loff_t i_size_read(struct inode const *inode ) { { return ((loff_t )inode->i_size); } } extern ssize_t vfs_write(struct file * , char const * , size_t , loff_t * ) ; __inline static struct inode *file_inode(struct file const *f ) { { return ((struct inode *)f->f_inode); } } extern struct file *filp_open(char const * , int , umode_t ) ; extern int filp_close(struct file * , fl_owner_t ) ; extern int vfs_fsync(struct file * , int ) ; __inline static int PageTail(struct page const *page ) { int tmp ; { tmp = constant_test_bit(15L, (unsigned long const volatile *)(& page->flags)); return (tmp); } } __inline static struct page *compound_head_by_tail(struct page *tail ) { struct page *head ; int tmp ; long tmp___0 ; { head = tail->__annonCompField46.first_page; __asm__ volatile ("": : : "memory"); tmp = PageTail((struct page const *)tail); tmp___0 = ldv__builtin_expect(tmp != 0, 1L); if (tmp___0 != 0L) { return (head); } else { } return (tail); } } __inline static struct page *compound_head(struct page *page ) { struct page *tmp ; int tmp___0 ; long tmp___1 ; { tmp___0 = PageTail((struct page const *)page); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); if (tmp___1 != 0L) { tmp = compound_head_by_tail(page); return (tmp); } else { } return (page); } } __inline static int page_count(struct page *page ) { struct page *tmp ; int tmp___0 ; { tmp = compound_head(page); tmp___0 = atomic_read((atomic_t const *)(& tmp->__annonCompField42.__annonCompField41.__annonCompField40._count)); return (tmp___0); } } __inline static void *kmap(struct page *page ) { void *tmp ; { __might_sleep("include/linux/highmem.h", 58, 0); tmp = lowmem_page_address((struct page const *)page); return (tmp); } } __inline static void kunmap(struct page *page ) { { return; } } __inline static unsigned long cfs_time_current(void) { { return ((unsigned long )jiffies); } } int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata , char const *format1 , va_list *args , char const *format2 , ...) ; __inline static int cfs_time_after(unsigned long t1 , unsigned long t2 ) { { return ((long )(t2 - t1) < 0L); } } char cfs_tracefile[1024U] ; long long cfs_tracefile_size ; void cfs_trace_debug_print(void) ; int cfs_trace_start_thread(void) ; void cfs_trace_stop_thread(void) ; int cfs_trace_daemon_command(char *str ) ; int cfs_trace_set_debug_mb(int mb ) ; union cfs_trace_data_union (*cfs_trace_data[8U])[8192U] ; __inline static char *cfs_trace_get_console_buffer(void) { unsigned int i ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; unsigned int j ; cfs_trace_buf_type_t tmp ; { __preempt_count_add(1); __asm__ volatile ("": : : "memory"); __vpp_verify = (void const *)0; switch (4UL) { case 1UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50203; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50203; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50203; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50203; default: __bad_percpu_size(); } ldv_50203: pscr_ret__ = pfo_ret__; goto ldv_50209; case 2UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50213; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50213; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50213; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50213; default: __bad_percpu_size(); } ldv_50213: pscr_ret__ = pfo_ret_____0; goto ldv_50209; case 4UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50222; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50222; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50222; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50222; default: __bad_percpu_size(); } ldv_50222: pscr_ret__ = pfo_ret_____1; goto ldv_50209; case 8UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50231; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50231; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50231; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50231; default: __bad_percpu_size(); } ldv_50231: pscr_ret__ = pfo_ret_____2; goto ldv_50209; default: __bad_size_call_parameter(); goto ldv_50209; } ldv_50209: i = (unsigned int )pscr_ret__; tmp = cfs_trace_buf_idx_get(); j = tmp; return (cfs_trace_console_buffers[i][j]); } } __inline static void cfs_trace_put_console_buffer(char *buffer ) { { __asm__ volatile ("": : : "memory"); __preempt_count_sub(1); return; } } __inline static struct cfs_trace_cpu_data *cfs_trace_get_tcd(void) { struct cfs_trace_cpu_data *tcd ; cfs_trace_buf_type_t tmp ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { tmp = cfs_trace_buf_idx_get(); __preempt_count_add(1); __asm__ volatile ("": : : "memory"); __vpp_verify = (void const *)0; switch (4UL) { case 1UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50253; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50253; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50253; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50253; default: __bad_percpu_size(); } ldv_50253: pscr_ret__ = pfo_ret__; goto ldv_50259; case 2UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50263; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50263; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50263; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50263; default: __bad_percpu_size(); } ldv_50263: pscr_ret__ = pfo_ret_____0; goto ldv_50259; case 4UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50272; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50272; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50272; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50272; default: __bad_percpu_size(); } ldv_50272: pscr_ret__ = pfo_ret_____1; goto ldv_50259; case 8UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50281; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50281; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50281; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50281; default: __bad_percpu_size(); } ldv_50281: pscr_ret__ = pfo_ret_____2; goto ldv_50259; default: __bad_size_call_parameter(); goto ldv_50259; } ldv_50259: tcd = & (*(cfs_trace_data[(unsigned int )tmp]))[pscr_ret__].tcd; cfs_trace_lock_tcd(tcd, 0); return (tcd); } } __inline static void cfs_trace_put_tcd(struct cfs_trace_cpu_data *tcd ) { { cfs_trace_unlock_tcd(tcd, 0); __asm__ volatile ("": : : "memory"); __preempt_count_sub(1); return; } } int cfs_trace_refill_stock(struct cfs_trace_cpu_data *tcd , gfp_t gfp , struct list_head *stock ) ; long long cfs_tracefile_size = 524288000LL; static struct tracefiled_ctl trace_tctl ; static struct mutex cfs_trace_thread_mutex = {{1}, {{{{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "cfs_trace_thread_mutex.wait_lock", 0, 0UL}}}}, {& cfs_trace_thread_mutex.wait_list, & cfs_trace_thread_mutex.wait_list}, 0, (void *)(& cfs_trace_thread_mutex), {0, {0, 0}, "cfs_trace_thread_mutex", 0, 0UL}}; static int thread_running ; static atomic_t cfs_tage_allocated = {0}; static void put_pages_on_tcd_daemon_list(struct page_collection *pc , struct cfs_trace_cpu_data *tcd ) ; __inline static struct cfs_trace_page *cfs_tage_from_list(struct list_head *list ) { struct list_head const *__mptr ; { __mptr = (struct list_head const *)list; return ((struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL); } } static struct cfs_trace_page *cfs_tage_alloc(gfp_t gfp ) { struct page *page ; struct cfs_trace_page *tage ; int tmp ; struct task_struct *tmp___0 ; void *tmp___1 ; { tmp = preempt_count___4(); if (((unsigned long )tmp & 2096896UL) == 0UL) { tmp___0 = get_current(); if ((tmp___0->flags & 2048U) != 0U) { return ((struct cfs_trace_page *)0); } else { } } else { } gfp = gfp | 512U; page = alloc_pages(gfp, 0U); if ((unsigned long )page == (unsigned long )((struct page *)0)) { return ((struct cfs_trace_page *)0); } else { } tmp___1 = kmalloc(32UL, gfp); tage = (struct cfs_trace_page *)tmp___1; if ((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0)) { __free_pages(page, 0U); return ((struct cfs_trace_page *)0); } else { } tage->page = page; atomic_inc(& cfs_tage_allocated); return (tage); } } static void cfs_tage_free(struct cfs_trace_page *tage ) { struct libcfs_debug_msg_data msgdata ; long tmp ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_tage_free"; msgdata.msg_subsys = 1024; msgdata.msg_line = 100; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___0 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___0 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "cfs_tage_free"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 101; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } __free_pages(tage->page, 0U); kfree((void const *)tage); atomic_dec(& cfs_tage_allocated); return; } } static void cfs_tage_to_tail(struct cfs_trace_page *tage , struct list_head *queue ) { struct libcfs_debug_msg_data msgdata ; long tmp ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_tage_to_tail"; msgdata.msg_subsys = 1024; msgdata.msg_line = 111; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___0 = ldv__builtin_expect((unsigned long )queue == (unsigned long )((struct list_head *)0), 0L); if (tmp___0 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "cfs_tage_to_tail"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 112; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(queue != NULL) failed", & msgdata___0); } else { } list_move_tail(& tage->linkage, queue); return; } } int cfs_trace_refill_stock(struct cfs_trace_cpu_data *tcd , gfp_t gfp , struct list_head *stock ) { int i ; struct cfs_trace_page *tage ; { i = 0; goto ldv_50346; ldv_50345: tage = cfs_tage_alloc(gfp); if ((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0)) { goto ldv_50344; } else { } list_add_tail(& tage->linkage, stock); i = i + 1; ldv_50346: ; if ((unsigned long )i + tcd->tcd_cur_stock_pages <= 1279UL) { goto ldv_50345; } else { } ldv_50344: ; return (i); } } static struct cfs_trace_page *cfs_trace_get_tage_try(struct cfs_trace_cpu_data *tcd , unsigned long len ) { struct cfs_trace_page *tage ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct task_struct *tmp___1 ; int tmp___2 ; int tmp___3 ; long tmp___4 ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct tracefiled_ctl *tctl ; { if (tcd->tcd_cur_pages != 0UL) { tmp = list_empty((struct list_head const *)(& tcd->tcd_pages)); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_trace_get_tage_try"; msgdata.msg_subsys = 1024; msgdata.msg_line = 145; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(!list_empty(&tcd->tcd_pages)) failed", & msgdata); } else { } tage = cfs_tage_from_list(tcd->tcd_pages.prev); if ((unsigned long )tage->used + len <= 4096UL) { return (tage); } else { } } else { } if (tcd->tcd_cur_pages < tcd->tcd_max_pages) { if (tcd->tcd_cur_stock_pages != 0UL) { tage = cfs_tage_from_list(tcd->tcd_stock_pages.prev); tcd->tcd_cur_stock_pages = tcd->tcd_cur_stock_pages - 1UL; list_del_init(& tage->linkage); } else { tage = cfs_tage_alloc(32U); tmp___4 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___4 != 0L) { tmp___1 = get_current(); if ((tmp___1->flags & 2048U) == 0U) { goto _L; } else { tmp___2 = preempt_count___4(); if (((unsigned long )tmp___2 & 2096896UL) != 0UL) { _L: /* CIL Label */ tmp___3 = __printk_ratelimit("cfs_trace_get_tage_try"); if (tmp___3 != 0) { printk("\fcannot allocate a tage (%ld)\n", tcd->tcd_cur_pages); } else { } } else { } } return ((struct cfs_trace_page *)0); } else { } } tage->used = 0U; __vpp_verify = (void const *)0; switch (4UL) { case 1UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; default: __bad_percpu_size(); } ldv_50359: pscr_ret__ = pfo_ret__; goto ldv_50365; case 2UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; default: __bad_percpu_size(); } ldv_50369: pscr_ret__ = pfo_ret_____0; goto ldv_50365; case 4UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; default: __bad_percpu_size(); } ldv_50378: pscr_ret__ = pfo_ret_____1; goto ldv_50365; case 8UL: ; switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; default: __bad_percpu_size(); } ldv_50387: pscr_ret__ = pfo_ret_____2; goto ldv_50365; default: __bad_size_call_parameter(); goto ldv_50365; } ldv_50365: tage->cpu = (unsigned short )pscr_ret__; tage->type = tcd->tcd_type; list_add_tail(& tage->linkage, & tcd->tcd_pages); tcd->tcd_cur_pages = tcd->tcd_cur_pages + 1UL; if (tcd->tcd_cur_pages > 8UL && thread_running != 0) { tctl = & trace_tctl; __wake_up(& tctl->tctl_waitq, 3U, 1, (void *)0); } else { } return (tage); } else { } return ((struct cfs_trace_page *)0); } } static void cfs_tcd_shrink(struct cfs_trace_cpu_data *tcd ) { int pgcount ; struct page_collection pc ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; int tmp___0 ; struct lock_class_key __key ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; int tmp___1 ; struct list_head const *__mptr___1 ; { pgcount = (int )(tcd->tcd_cur_pages / 10UL); tmp___0 = __printk_ratelimit("cfs_tcd_shrink"); if (tmp___0 != 0) { printk("\fdebug daemon buffer overflowed; discarding 10%% of pages (%d of %ld)\n", pgcount + 1, tcd->tcd_cur_pages); } else { } INIT_LIST_HEAD(& pc.pc_pages); spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); __mptr = (struct list_head const *)tcd->tcd_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50413; ldv_50412: tmp___1 = pgcount; pgcount = pgcount - 1; if (tmp___1 == 0) { goto ldv_50411; } else { } list_move_tail(& tage->linkage, & pc.pc_pages); tcd->tcd_cur_pages = tcd->tcd_cur_pages - 1UL; tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50413: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& tcd->tcd_pages)) { goto ldv_50412; } else { } ldv_50411: put_pages_on_tcd_daemon_list(& pc, tcd); return; } } static struct cfs_trace_page *cfs_trace_get_tage(struct cfs_trace_cpu_data *tcd , unsigned long len ) { struct cfs_trace_page *tage ; { if (len > 4096UL) { printk("\vcowardly refusing to write %lu bytes in a page\n", len); return ((struct cfs_trace_page *)0); } else { } tage = cfs_trace_get_tage_try(tcd, len); if ((unsigned long )tage != (unsigned long )((struct cfs_trace_page *)0)) { return (tage); } else { } if (thread_running != 0) { cfs_tcd_shrink(tcd); } else { } if (tcd->tcd_cur_pages != 0UL) { tage = cfs_tage_from_list(tcd->tcd_pages.next); tage->used = 0U; cfs_tage_to_tail(tage, & tcd->tcd_pages); } else { } return (tage); } } int libcfs_debug_msg(struct libcfs_debug_msg_data *msgdata , char const *format , ...) { va_list args ; int rc ; { ldv__builtin_va_start((va_list *)(& args)); rc = libcfs_debug_vmsg2(msgdata, format, (va_list *)(& args), (char const *)0); ldv__builtin_va_end((va_list *)(& args)); return (rc); } } static char const __kstrtab_libcfs_debug_msg[17U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 'm', 's', 'g', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_msg ; struct kernel_symbol const __ksymtab_libcfs_debug_msg = {(unsigned long )(& libcfs_debug_msg), (char const *)(& __kstrtab_libcfs_debug_msg)}; int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata , char const *format1 , va_list *args , char const *format2 , ...) { struct cfs_trace_cpu_data *tcd ; struct ptldebug_header header ; struct cfs_trace_page *tage ; char *string_buf ; char *debug_buf ; int known_size ; int needed ; int max_nob ; va_list ap ; int depth ; int i ; int remain ; int mask ; char const *file ; char const *tmp ; struct cfs_debug_limit_state *cdls ; size_t tmp___0 ; size_t tmp___1 ; void *tmp___2 ; int tmp___3 ; void *tmp___4 ; char *tmp___5 ; int tmp___6 ; size_t tmp___7 ; size_t tmp___8 ; size_t tmp___9 ; size_t tmp___10 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___11 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___12 ; unsigned long tmp___13 ; int tmp___14 ; long tmp___15 ; unsigned long tmp___16 ; int tmp___17 ; unsigned long tmp___18 ; int tmp___19 ; { tcd = (struct cfs_trace_cpu_data *)0; header.ph_len = 0U; header.ph_flags = 0U; header.ph_subsys = 0U; header.ph_mask = 0U; header.ph_cpu_id = (unsigned short)0; header.ph_type = (unsigned short)0; header.ph_sec = 0U; header.ph_usec = 0ULL; header.ph_stack = 0U; header.ph_pid = 0U; header.ph_extern_pid = 0U; header.ph_line_num = 0U; string_buf = (char *)0; needed = 85; mask = msgdata->msg_mask; tmp = kbasename(msgdata->msg_file); file = tmp; cdls = msgdata->msg_cdls; tcd = cfs_trace_get_tcd(); cfs_set_ptldebug_header(& header, msgdata, 0UL); if ((unsigned long )tcd == (unsigned long )((struct cfs_trace_cpu_data *)0)) { goto console; } else { } if (tcd->tcd_cur_pages == 0UL) { header.ph_flags = header.ph_flags | 1U; } else { } if ((unsigned int )tcd->tcd_shutting_down != 0U) { cfs_trace_put_tcd(tcd); tcd = (struct cfs_trace_cpu_data *)0; goto console; } else { } depth = 0; tmp___0 = strlen(file); known_size = (int )(((unsigned int )tmp___0 + (unsigned int )depth) + 1U); if ((unsigned long )msgdata->msg_fn != (unsigned long )((char const *)0)) { tmp___1 = strlen(msgdata->msg_fn); known_size = (int )(((unsigned int )tmp___1 + (unsigned int )known_size) + 1U); } else { } if (libcfs_debug_binary != 0U) { known_size = (int )((unsigned int )known_size + 48U); } else { } i = 0; goto ldv_50457; ldv_50456: tage = cfs_trace_get_tage(tcd, (unsigned long )((needed + known_size) + 1)); if ((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0)) { if ((unsigned int )(needed + known_size) > 4096U) { mask = mask | 131072; } else { } cfs_trace_put_tcd(tcd); tcd = (struct cfs_trace_cpu_data *)0; goto console; } else { } tmp___2 = lowmem_page_address((struct page const *)tage->page); string_buf = (char *)tmp___2 + ((unsigned long )tage->used + (unsigned long )known_size); max_nob = (int )((- tage->used - (unsigned int )known_size) + 4096U); if (max_nob <= 0) { printk("\bnegative max_nob: %d\n", max_nob); mask = mask | 131072; cfs_trace_put_tcd(tcd); tcd = (struct cfs_trace_cpu_data *)0; goto console; } else { } needed = 0; if ((unsigned long )format1 != (unsigned long )((char const *)0)) { __builtin_va_copy((va_list *)(& ap), args); needed = vsnprintf(string_buf, (size_t )max_nob, format1, (va_list *)(& ap)); ldv__builtin_va_end((va_list *)(& ap)); } else { } if ((unsigned long )format2 != (unsigned long )((char const *)0)) { remain = max_nob - needed; if (remain < 0) { remain = 0; } else { } ldv__builtin_va_start((va_list *)(& ap)); tmp___3 = vsnprintf(string_buf + (unsigned long )needed, (size_t )remain, format2, (va_list *)(& ap)); needed = tmp___3 + needed; ldv__builtin_va_end((va_list *)(& ap)); } else { } if (needed < max_nob) { goto ldv_50455; } else { } i = i + 1; ldv_50457: ; if (i <= 1) { goto ldv_50456; } else { } ldv_50455: ; if ((int )((signed char )*(string_buf + ((unsigned long )needed + 0xffffffffffffffffUL))) != 10) { printk("\016format at %s:%d:%s doesn\'t end in newline\n", file, msgdata->msg_line, msgdata->msg_fn); } else { } header.ph_len = (__u32 )(known_size + needed); tmp___4 = lowmem_page_address((struct page const *)tage->page); debug_buf = (char *)tmp___4 + (unsigned long )tage->used; if (libcfs_debug_binary != 0U) { memcpy((void *)debug_buf, (void const *)(& header), 48UL); tage->used = tage->used + 48U; debug_buf = debug_buf + 48UL; } else { } goto ldv_50459; ldv_50458: tmp___5 = debug_buf; debug_buf = debug_buf + 1; *tmp___5 = 46; tage->used = tage->used + 1U; ldv_50459: tmp___6 = depth; depth = depth - 1; if (tmp___6 > 0) { goto ldv_50458; } else { } strcpy(debug_buf, file); tmp___7 = strlen(file); tage->used = (tage->used + (unsigned int )tmp___7) + 1U; tmp___8 = strlen(file); debug_buf = debug_buf + (tmp___8 + 1UL); if ((unsigned long )msgdata->msg_fn != (unsigned long )((char const *)0)) { strcpy(debug_buf, msgdata->msg_fn); tmp___9 = strlen(msgdata->msg_fn); tage->used = (tage->used + (unsigned int )tmp___9) + 1U; tmp___10 = strlen(msgdata->msg_fn); debug_buf = debug_buf + (tmp___10 + 1UL); } else { } tmp___11 = ldv__builtin_expect((unsigned long )debug_buf != (unsigned long )string_buf, 0L); if (tmp___11 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "libcfs_debug_vmsg2"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 386; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(debug_buf == string_buf) failed", & msgdata___0); } else { } tage->used = tage->used + (unsigned int )needed; tmp___12 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___12 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "libcfs_debug_vmsg2"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 389; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } console: ; if (((unsigned int )mask & libcfs_printk) == 0U) { if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { cfs_trace_put_tcd(tcd); } else { } return (1); } else { } if ((unsigned long )cdls != (unsigned long )((struct cfs_debug_limit_state *)0)) { if (libcfs_console_ratelimit != 0U && cdls->cdls_next != 0UL) { tmp___13 = cfs_time_current(); tmp___14 = cfs_time_after(tmp___13, cdls->cdls_next); if (tmp___14 == 0) { cdls->cdls_count = cdls->cdls_count + 1; if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { cfs_trace_put_tcd(tcd); } else { } return (1); } else { } } else { } tmp___15 = cfs_time_seconds(10); tmp___16 = cfs_time_current(); tmp___17 = cfs_time_after(tmp___16, (cdls->cdls_next + (unsigned long )libcfs_console_max_delay) + (unsigned long )tmp___15); if (tmp___17 != 0) { cdls->cdls_delay = cdls->cdls_delay / (libcfs_console_backoff * 4U); } else { cdls->cdls_delay = cdls->cdls_delay * libcfs_console_backoff; } if (cdls->cdls_delay < libcfs_console_min_delay) { cdls->cdls_delay = libcfs_console_min_delay; } else if (cdls->cdls_delay > libcfs_console_max_delay) { cdls->cdls_delay = libcfs_console_max_delay; } else { } tmp___18 = cfs_time_current(); cdls->cdls_next = (tmp___18 + (unsigned long )cdls->cdls_delay) | 1UL; } else { } if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { cfs_print_to_console(& header, mask, (char const *)string_buf, needed, file, msgdata->msg_fn); cfs_trace_put_tcd(tcd); } else { string_buf = cfs_trace_get_console_buffer(); needed = 0; if ((unsigned long )format1 != (unsigned long )((char const *)0)) { __builtin_va_copy((va_list *)(& ap), args); needed = vsnprintf(string_buf, 1024UL, format1, (va_list *)(& ap)); ldv__builtin_va_end((va_list *)(& ap)); } else { } if ((unsigned long )format2 != (unsigned long )((char const *)0)) { remain = 1024 - needed; if (remain > 0) { ldv__builtin_va_start((va_list *)(& ap)); tmp___19 = vsnprintf(string_buf + (unsigned long )needed, (size_t )remain, format2, (va_list *)(& ap)); needed = tmp___19 + needed; ldv__builtin_va_end((va_list *)(& ap)); } else { } } else { } cfs_print_to_console(& header, mask, (char const *)string_buf, needed, file, msgdata->msg_fn); cfs_trace_put_console_buffer(string_buf); } if ((unsigned long )cdls != (unsigned long )((struct cfs_debug_limit_state *)0) && cdls->cdls_count != 0) { string_buf = cfs_trace_get_console_buffer(); needed = snprintf(string_buf, 1024UL, "Skipped %d previous similar message%s\n", cdls->cdls_count, cdls->cdls_count > 1 ? (char *)"s" : (char *)""); cfs_print_to_console(& header, mask, (char const *)string_buf, needed, file, msgdata->msg_fn); cfs_trace_put_console_buffer(string_buf); cdls->cdls_count = 0; } else { } return (0); } } static char const __kstrtab_libcfs_debug_vmsg2[19U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'd', 'e', 'b', 'u', 'g', '_', 'v', 'm', 's', 'g', '2', '\000'}; struct kernel_symbol const __ksymtab_libcfs_debug_vmsg2 ; struct kernel_symbol const __ksymtab_libcfs_debug_vmsg2 = {(unsigned long )(& libcfs_debug_vmsg2), (char const *)(& __kstrtab_libcfs_debug_vmsg2)}; void cfs_trace_assertion_failed(char const *str , struct libcfs_debug_msg_data *msgdata ) { struct ptldebug_header hdr ; size_t tmp ; { libcfs_panic_in_progress = 1; libcfs_catastrophe = 1U; __asm__ volatile ("mfence": : : "memory"); cfs_set_ptldebug_header(& hdr, msgdata, 0UL); tmp = strlen(str); cfs_print_to_console(& hdr, 262144, str, (int )tmp, msgdata->msg_file, msgdata->msg_fn); panic("Lustre debug assertion failure\n"); return; } } static void panic_collect_pages(struct page_collection *pc ) { int i ; int j ; struct cfs_trace_cpu_data *tcd ; unsigned int tmp ; { INIT_LIST_HEAD(& pc->pc_pages); i = 0; goto ldv_50489; ldv_50488: j = 0; tcd = & (*(cfs_trace_data[i]))[j].tcd; goto ldv_50486; ldv_50485: list_splice_init(& tcd->tcd_pages, & pc->pc_pages); tcd->tcd_cur_pages = 0UL; if (pc->pc_want_daemon_pages != 0) { list_splice_init(& tcd->tcd_daemon_pages, & pc->pc_pages); tcd->tcd_cur_daemon_pages = 0UL; } else { } j = j + 1; tcd = & (*(cfs_trace_data[i]))[j].tcd; ldv_50486: tmp = cpumask_weight(cpu_possible_mask); if ((unsigned int )j < tmp) { goto ldv_50485; } else { } i = i + 1; ldv_50489: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50488; } else { } return; } } static void collect_pages_on_all_cpus(struct page_collection *pc ) { struct cfs_trace_cpu_data *tcd ; int i ; int cpu ; int tmp ; unsigned int tmp___0 ; { spin_lock(& pc->pc_lock); cpu = -1; goto ldv_50501; ldv_50500: i = 0; goto ldv_50498; ldv_50497: list_splice_init(& tcd->tcd_pages, & pc->pc_pages); tcd->tcd_cur_pages = 0UL; if (pc->pc_want_daemon_pages != 0) { list_splice_init(& tcd->tcd_daemon_pages, & pc->pc_pages); tcd->tcd_cur_daemon_pages = 0UL; } else { } cfs_trace_unlock_tcd(tcd, 1); i = i + 1; ldv_50498: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { tcd = & (*(cfs_trace_data[i]))[cpu].tcd; if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { tmp = cfs_trace_lock_tcd(tcd, 1); if (tmp != 0) { goto ldv_50497; } else { goto ldv_50499; } } else { goto ldv_50499; } } else { } ldv_50499: ; ldv_50501: tmp___0 = cpumask_next___0(cpu, cpu_possible_mask); cpu = (int )tmp___0; if (cpu < nr_cpu_ids) { goto ldv_50500; } else { } spin_unlock(& pc->pc_lock); return; } } static void collect_pages(struct page_collection *pc ) { { INIT_LIST_HEAD(& pc->pc_pages); if (libcfs_panic_in_progress != 0) { panic_collect_pages(pc); } else { collect_pages_on_all_cpus(pc); } return; } } static void put_pages_back_on_all_cpus(struct page_collection *pc ) { struct cfs_trace_cpu_data *tcd ; struct list_head *cur_head ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; int i ; int cpu ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; long tmp___4 ; struct list_head const *__mptr___1 ; int tmp___5 ; unsigned int tmp___6 ; { spin_lock(& pc->pc_lock); cpu = -1; goto ldv_50534; ldv_50533: i = 0; goto ldv_50531; ldv_50530: cur_head = tcd->tcd_pages.next; __mptr = (struct list_head const *)pc->pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50528; ldv_50527: tmp___0 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "put_pages_back_on_all_cpus"; msgdata.msg_subsys = 1024; msgdata.msg_line = 567; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___1 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___1 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "put_pages_back_on_all_cpus"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 567; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___2 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___2 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "put_pages_back_on_all_cpus"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 567; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___3 = page_count(tage->page); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "put_pages_back_on_all_cpus"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 567; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } if ((int )tage->cpu != cpu || (int )tage->type != i) { goto ldv_50526; } else { } cfs_tage_to_tail(tage, cur_head); tcd->tcd_cur_pages = tcd->tcd_cur_pages + 1UL; ldv_50526: tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50528: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc->pc_pages)) { goto ldv_50527; } else { } cfs_trace_unlock_tcd(tcd, 1); i = i + 1; ldv_50531: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { tcd = & (*(cfs_trace_data[i]))[cpu].tcd; if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { tmp___5 = cfs_trace_lock_tcd(tcd, 1); if (tmp___5 != 0) { goto ldv_50530; } else { goto ldv_50532; } } else { goto ldv_50532; } } else { } ldv_50532: ; ldv_50534: tmp___6 = cpumask_next___0(cpu, cpu_possible_mask); cpu = (int )tmp___6; if (cpu < nr_cpu_ids) { goto ldv_50533; } else { } spin_unlock(& pc->pc_lock); return; } } static void put_pages_back(struct page_collection *pc ) { { if (libcfs_panic_in_progress == 0) { put_pages_back_on_all_cpus(pc); } else { } return; } } static void put_pages_on_tcd_daemon_list(struct page_collection *pc , struct cfs_trace_cpu_data *tcd ) { struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; long tmp___4 ; struct cfs_trace_page *victim ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___4 ; long tmp___7 ; struct libcfs_debug_msg_data msgdata___5 ; long tmp___8 ; struct libcfs_debug_msg_data msgdata___6 ; long tmp___9 ; struct libcfs_debug_msg_data msgdata___7 ; int tmp___10 ; long tmp___11 ; struct list_head const *__mptr___1 ; { spin_lock(& pc->pc_lock); __mptr = (struct list_head const *)pc->pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50564; ldv_50563: tmp___0 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata.msg_subsys = 1024; msgdata.msg_line = 599; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___1 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___1 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 599; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___2 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___2 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 599; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___3 = page_count(tage->page); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 599; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } if ((int )tage->cpu != (int )tcd->tcd_cpu || (int )tage->type != (int )tcd->tcd_type) { goto ldv_50556; } else { } cfs_tage_to_tail(tage, & tcd->tcd_daemon_pages); tcd->tcd_cur_daemon_pages = tcd->tcd_cur_daemon_pages + 1UL; if (tcd->tcd_cur_daemon_pages > tcd->tcd_max_pages) { tmp___5 = list_empty((struct list_head const *)(& tcd->tcd_daemon_pages)); tmp___6 = ldv__builtin_expect(tmp___5 != 0, 0L); if (tmp___6 != 0L) { msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___3.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___3.msg_subsys = 1024; msgdata___3.msg_line = 610; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(!list_empty(&tcd->tcd_daemon_pages)) failed", & msgdata___3); } else { } victim = cfs_tage_from_list(tcd->tcd_daemon_pages.next); tmp___7 = ldv__builtin_expect((unsigned long )victim == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___7 != 0L) { msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___4.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___4.msg_subsys = 1024; msgdata___4.msg_line = 613; msgdata___4.msg_mask = 0; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(victim != NULL) failed", & msgdata___4); } else { } tmp___8 = ldv__builtin_expect((unsigned long )victim->page == (unsigned long )((struct page *)0), 0L); if (tmp___8 != 0L) { msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___5.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___5.msg_subsys = 1024; msgdata___5.msg_line = 613; msgdata___5.msg_mask = 0; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(victim->page != NULL) failed", & msgdata___5); } else { } tmp___9 = ldv__builtin_expect(victim->used > 4096U, 0L); if (tmp___9 != 0L) { msgdata___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___6.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___6.msg_subsys = 1024; msgdata___6.msg_line = 613; msgdata___6.msg_mask = 0; msgdata___6.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___6.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(victim->used <= PAGE_CACHE_SIZE) failed", & msgdata___6); } else { } tmp___10 = page_count(victim->page); tmp___11 = ldv__builtin_expect(tmp___10 <= 0, 0L); if (tmp___11 != 0L) { msgdata___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___7.msg_fn = "put_pages_on_tcd_daemon_list"; msgdata___7.msg_subsys = 1024; msgdata___7.msg_line = 613; msgdata___7.msg_mask = 0; msgdata___7.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___7.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(victim->page) > 0) failed", & msgdata___7); } else { } list_del(& victim->linkage); cfs_tage_free(victim); tcd->tcd_cur_daemon_pages = tcd->tcd_cur_daemon_pages - 1UL; } else { } ldv_50556: tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50564: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc->pc_pages)) { goto ldv_50563; } else { } spin_unlock(& pc->pc_lock); return; } } static void put_pages_on_daemon_list(struct page_collection *pc ) { struct cfs_trace_cpu_data *tcd ; int i ; int cpu ; int tmp ; unsigned int tmp___0 ; { cpu = -1; goto ldv_50576; ldv_50575: i = 0; goto ldv_50573; ldv_50572: put_pages_on_tcd_daemon_list(pc, tcd); cfs_trace_unlock_tcd(tcd, 1); i = i + 1; ldv_50573: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { tcd = & (*(cfs_trace_data[i]))[cpu].tcd; if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { tmp = cfs_trace_lock_tcd(tcd, 1); if (tmp != 0) { goto ldv_50572; } else { goto ldv_50574; } } else { goto ldv_50574; } } else { } ldv_50574: ; ldv_50576: tmp___0 = cpumask_next___0(cpu, cpu_possible_mask); cpu = (int )tmp___0; if (cpu < nr_cpu_ids) { goto ldv_50575; } else { } return; } } void cfs_trace_debug_print(void) { struct page_collection pc ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; struct lock_class_key __key ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; char *p ; char *file ; char *fn ; struct page *page ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; long tmp___4 ; void *tmp___5 ; struct ptldebug_header *hdr ; int len ; size_t tmp___6 ; size_t tmp___7 ; void *tmp___8 ; struct list_head const *__mptr___1 ; { spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); pc.pc_want_daemon_pages = 1; collect_pages(& pc); __mptr = (struct list_head const *)pc.pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50606; ldv_50605: tmp___0 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_trace_debug_print"; msgdata.msg_subsys = 1024; msgdata.msg_line = 648; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___1 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___1 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "cfs_trace_debug_print"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 648; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___2 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___2 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "cfs_trace_debug_print"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 648; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___3 = page_count(tage->page); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "cfs_trace_debug_print"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 648; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } page = tage->page; tmp___5 = lowmem_page_address((struct page const *)page); p = (char *)tmp___5; goto ldv_50603; ldv_50602: hdr = (struct ptldebug_header *)p; p = p + 48UL; file = p; tmp___6 = strlen((char const *)file); p = p + (tmp___6 + 1UL); fn = p; tmp___7 = strlen((char const *)fn); p = p + (tmp___7 + 1UL); len = (int )(hdr->ph_len + ((unsigned int )((long )hdr) - (unsigned int )((long )p))); cfs_print_to_console(hdr, 262144, (char const *)p, len, (char const *)file, (char const *)fn); p = p + (unsigned long )len; ldv_50603: tmp___8 = lowmem_page_address((struct page const *)page); if ((unsigned long )((char *)tmp___8 + (unsigned long )tage->used) > (unsigned long )p) { goto ldv_50602; } else { } list_del(& tage->linkage); cfs_tage_free(tage); tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50606: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc.pc_pages)) { goto ldv_50605; } else { } return; } } int cfs_tracefile_dump_all_pages(char *filename ) { struct page_collection pc ; struct file *filp ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; char *buf ; int rc ; mm_segment_t __oldfs ; long tmp___0 ; bool tmp___1 ; struct lock_class_key __key ; int tmp___2 ; struct thread_info *tmp___3 ; struct thread_info *tmp___4 ; mm_segment_t __constr_expr_0 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___7 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___8 ; long tmp___9 ; void *tmp___10 ; ssize_t tmp___11 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___12 ; long tmp___13 ; struct list_head const *__mptr___1 ; struct thread_info *tmp___14 ; { cfs_tracefile_write_lock(); filp = filp_open((char const *)filename, 32961, 384); tmp___1 = IS_ERR((void const *)filp); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)filp); rc = (int )tmp___0; filp = (struct file *)0; printk("\vLustreError: can\'t open %s for dump: rc %d\n", filename, rc); goto out; } else { } spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); pc.pc_want_daemon_pages = 1; collect_pages(& pc); tmp___2 = list_empty((struct list_head const *)(& pc.pc_pages)); if (tmp___2 != 0) { rc = 0; goto close; } else { } tmp___3 = current_thread_info(); __oldfs = tmp___3->addr_limit; tmp___4 = current_thread_info(); __constr_expr_0.seg = 0xffffffffffffffffUL; tmp___4->addr_limit = __constr_expr_0; __mptr = (struct list_head const *)pc.pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50636; ldv_50635: tmp___5 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___5 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_tracefile_dump_all_pages"; msgdata.msg_subsys = 1024; msgdata.msg_line = 708; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___6 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___6 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "cfs_tracefile_dump_all_pages"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 708; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___7 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___7 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "cfs_tracefile_dump_all_pages"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 708; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___8 = page_count(tage->page); tmp___9 = ldv__builtin_expect(tmp___8 <= 0, 0L); if (tmp___9 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "cfs_tracefile_dump_all_pages"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 708; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } tmp___10 = kmap(tage->page); buf = (char *)tmp___10; tmp___11 = vfs_write(filp, (char const *)buf, (size_t )tage->used, & filp->f_pos); rc = (int )tmp___11; kunmap(tage->page); if ((int )tage->used != rc) { printk("\fwanted to write %u but wrote %d\n", tage->used, rc); put_pages_back(& pc); tmp___12 = list_empty((struct list_head const *)(& pc.pc_pages)); tmp___13 = ldv__builtin_expect(tmp___12 == 0, 0L); if (tmp___13 != 0L) { msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___3.msg_fn = "cfs_tracefile_dump_all_pages"; msgdata___3.msg_subsys = 1024; msgdata___3.msg_line = 719; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(list_empty(&pc.pc_pages)) failed", & msgdata___3); } else { } goto ldv_50634; } else { } list_del(& tage->linkage); cfs_tage_free(tage); tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50636: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc.pc_pages)) { goto ldv_50635; } else { } ldv_50634: tmp___14 = current_thread_info(); tmp___14->addr_limit = __oldfs; rc = vfs_fsync(filp, 1); if (rc != 0) { printk("\vsync returns %d\n", rc); } else { } close: filp_close(filp, (void *)0); out: cfs_tracefile_write_unlock(); return (rc); } } void cfs_trace_flush_pages(void) { struct page_collection pc ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; struct lock_class_key __key ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; long tmp___4 ; struct list_head const *__mptr___1 ; { spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); pc.pc_want_daemon_pages = 1; collect_pages(& pc); __mptr = (struct list_head const *)pc.pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50656; ldv_50655: tmp___0 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "cfs_trace_flush_pages"; msgdata.msg_subsys = 1024; msgdata.msg_line = 748; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___1 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___1 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "cfs_trace_flush_pages"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 748; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___2 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___2 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "cfs_trace_flush_pages"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 748; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___3 = page_count(tage->page); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "cfs_trace_flush_pages"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 748; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } list_del(& tage->linkage); cfs_tage_free(tage); tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50656: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc.pc_pages)) { goto ldv_50655; } else { } return; } } int cfs_trace_copyin_string(char *knl_buffer , int knl_buffer_nob , char const *usr_buffer , int usr_buffer_nob ) { int nob ; unsigned long tmp ; __kernel_size_t tmp___0 ; int tmp___1 ; { if (usr_buffer_nob > knl_buffer_nob) { return (-75); } else { } tmp = copy_from_user((void *)knl_buffer, (void const *)usr_buffer, (unsigned long )usr_buffer_nob); if (tmp != 0UL) { return (-14); } else { } tmp___0 = strnlen((char const *)knl_buffer, (__kernel_size_t )usr_buffer_nob); nob = (int )tmp___0; goto ldv_50667; ldv_50666: ; if (((int )_ctype[(int )((unsigned char )*(knl_buffer + (unsigned long )nob))] & 32) == 0) { goto ldv_50665; } else { } ldv_50667: tmp___1 = nob; nob = nob - 1; if (tmp___1 >= 0) { goto ldv_50666; } else { } ldv_50665: ; if (nob < 0) { return (-22); } else { } if (nob == knl_buffer_nob) { return (-75); } else { } *(knl_buffer + ((unsigned long )nob + 1UL)) = 0; return (0); } } static char const __kstrtab_cfs_trace_copyin_string[24U] = { 'c', 'f', 's', '_', 't', 'r', 'a', 'c', 'e', '_', 'c', 'o', 'p', 'y', 'i', 'n', '_', 's', 't', 'r', 'i', 'n', 'g', '\000'}; struct kernel_symbol const __ksymtab_cfs_trace_copyin_string ; struct kernel_symbol const __ksymtab_cfs_trace_copyin_string = {(unsigned long )(& cfs_trace_copyin_string), (char const *)(& __kstrtab_cfs_trace_copyin_string)}; int cfs_trace_copyout_string(char *usr_buffer , int usr_buffer_nob , char const *knl_buffer , char *append ) { int nob ; size_t tmp ; unsigned long tmp___0 ; unsigned long tmp___1 ; { tmp = strlen(knl_buffer); nob = (int )tmp; if (nob > usr_buffer_nob) { nob = usr_buffer_nob; } else { } tmp___0 = copy_to_user((void *)usr_buffer, (void const *)knl_buffer, (unsigned long )nob); if (tmp___0 != 0UL) { return (-14); } else { } if ((unsigned long )append != (unsigned long )((char *)0) && nob < usr_buffer_nob) { tmp___1 = copy_to_user((void *)usr_buffer + (unsigned long )nob, (void const *)append, 1UL); if (tmp___1 != 0UL) { return (-14); } else { } nob = nob + 1; } else { } return (nob); } } static char const __kstrtab_cfs_trace_copyout_string[25U] = { 'c', 'f', 's', '_', 't', 'r', 'a', 'c', 'e', '_', 'c', 'o', 'p', 'y', 'o', 'u', 't', '_', 's', 't', 'r', 'i', 'n', 'g', '\000'}; struct kernel_symbol const __ksymtab_cfs_trace_copyout_string ; struct kernel_symbol const __ksymtab_cfs_trace_copyout_string = {(unsigned long )(& cfs_trace_copyout_string), (char const *)(& __kstrtab_cfs_trace_copyout_string)}; int cfs_trace_allocate_string_buffer(char **str , int nob ) { void *tmp ; { if ((unsigned int )nob > 8192U) { return (-22); } else { } tmp = kmalloc((size_t )nob, 32960U); *str = (char *)tmp; if ((unsigned long )*str == (unsigned long )((char *)0)) { return (-12); } else { } return (0); } } void cfs_trace_free_string_buffer(char *str , int nob ) { { kfree((void const *)str); return; } } int cfs_trace_dump_debug_buffer_usrstr(void *usr_str , int usr_str_nob ) { char *str ; int rc ; { rc = cfs_trace_allocate_string_buffer(& str, usr_str_nob + 1); if (rc != 0) { return (rc); } else { } rc = cfs_trace_copyin_string(str, usr_str_nob + 1, (char const *)usr_str, usr_str_nob); if (rc != 0) { goto out; } else { } if ((int )((signed char )*str) != 47) { rc = -22; goto out; } else { } rc = cfs_tracefile_dump_all_pages(str); out: cfs_trace_free_string_buffer(str, usr_str_nob + 1); return (rc); } } int cfs_trace_daemon_command(char *str ) { int rc ; unsigned long tmp ; size_t tmp___0 ; int tmp___1 ; int tmp___2 ; { rc = 0; cfs_tracefile_write_lock(); tmp___2 = strcmp((char const *)str, "stop"); if (tmp___2 == 0) { cfs_tracefile_write_unlock(); cfs_trace_stop_thread(); cfs_tracefile_write_lock(); memset((void *)(& cfs_tracefile), 0, 1024UL); } else { tmp___1 = strncmp((char const *)str, "size=", 5UL); if (tmp___1 == 0) { tmp = simple_strtoul((char const *)str + 5U, (char **)0, 0U); cfs_tracefile_size = (long long )tmp; if (cfs_tracefile_size <= 9LL || cfs_tracefile_size > 20480LL) { cfs_tracefile_size = 524288000LL; } else { cfs_tracefile_size = cfs_tracefile_size << 20; } } else { tmp___0 = strlen((char const *)str); if (tmp___0 > 1023UL) { rc = -36; } else if ((int )((signed char )*str) != 47) { rc = -22; } else { strcpy((char *)(& cfs_tracefile), (char const *)str); printk("\016Lustre: debug daemon will attempt to start writing to %s (%lukB max)\n", (char *)(& cfs_tracefile), (long )(cfs_tracefile_size >> 10)); cfs_trace_start_thread(); } } } cfs_tracefile_write_unlock(); return (rc); } } int cfs_trace_daemon_command_usrstr(void *usr_str , int usr_str_nob ) { char *str ; int rc ; { rc = cfs_trace_allocate_string_buffer(& str, usr_str_nob + 1); if (rc != 0) { return (rc); } else { } rc = cfs_trace_copyin_string(str, usr_str_nob + 1, (char const *)usr_str, usr_str_nob); if (rc == 0) { rc = cfs_trace_daemon_command(str); } else { } cfs_trace_free_string_buffer(str, usr_str_nob + 1); return (rc); } } int cfs_trace_set_debug_mb(int mb ) { int i ; int j ; int pages ; int limit ; int tmp ; struct cfs_trace_cpu_data *tcd ; unsigned int tmp___0 ; unsigned int tmp___1 ; unsigned int tmp___2 ; unsigned int tmp___3 ; unsigned int tmp___4 ; { tmp = cfs_trace_max_debug_mb(); limit = tmp; tmp___2 = cpumask_weight(cpu_possible_mask); if ((unsigned int )mb < tmp___2) { tmp___0 = cpumask_weight(cpu_possible_mask); printk("\fLustre: %d MB is too small for debug buffer size, setting it to %d MB.\n", mb, tmp___0); tmp___1 = cpumask_weight(cpu_possible_mask); mb = (int )tmp___1; } else { } if (mb > limit) { printk("\fLustre: %d MB is too large for debug buffer size, setting it to %d MB.\n", mb, limit); mb = limit; } else { } tmp___3 = cpumask_weight(cpu_possible_mask); mb = (int )((unsigned int )mb / tmp___3); pages = mb << 8; cfs_tracefile_write_lock(); i = 0; goto ldv_50732; ldv_50731: j = 0; tcd = & (*(cfs_trace_data[i]))[j].tcd; goto ldv_50729; ldv_50728: tcd->tcd_max_pages = (unsigned long )(((int )tcd->tcd_pages_factor * pages) / 100); j = j + 1; tcd = & (*(cfs_trace_data[i]))[j].tcd; ldv_50729: tmp___4 = cpumask_weight(cpu_possible_mask); if ((unsigned int )j < tmp___4) { goto ldv_50728; } else { } i = i + 1; ldv_50732: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50731; } else { } cfs_tracefile_write_unlock(); return (0); } } int cfs_trace_set_debug_mb_usrstr(void *usr_str , int usr_str_nob ) { char str[32U] ; int rc ; unsigned long tmp ; int tmp___0 ; { rc = cfs_trace_copyin_string((char *)(& str), 32, (char const *)usr_str, usr_str_nob); if (rc < 0) { return (rc); } else { } tmp = simple_strtoul((char const *)(& str), (char **)0, 0U); tmp___0 = cfs_trace_set_debug_mb((int )tmp); return (tmp___0); } } int cfs_trace_get_debug_mb(void) { int i ; int j ; struct cfs_trace_cpu_data *tcd ; int total_pages ; unsigned int tmp ; { total_pages = 0; cfs_tracefile_read_lock(); i = 0; goto ldv_50751; ldv_50750: j = 0; tcd = & (*(cfs_trace_data[i]))[j].tcd; goto ldv_50748; ldv_50747: total_pages = (int )((unsigned int )tcd->tcd_max_pages + (unsigned int )total_pages); j = j + 1; tcd = & (*(cfs_trace_data[i]))[j].tcd; ldv_50748: tmp = cpumask_weight(cpu_possible_mask); if ((unsigned int )j < tmp) { goto ldv_50747; } else { } i = i + 1; ldv_50751: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50750; } else { } cfs_tracefile_read_unlock(); return ((total_pages >> 8) + 1); } } static int tracefiled(void *arg ) { struct page_collection pc ; struct tracefiled_ctl *tctl ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; struct file *filp ; char *buf ; int last_loop ; int rc ; mm_segment_t __oldfs ; struct lock_class_key __key ; wait_queue_t __wait ; int tmp___0 ; long tmp___1 ; bool tmp___2 ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; long tmp___4 ; struct thread_info *tmp___5 ; struct thread_info *tmp___6 ; mm_segment_t __constr_expr_0 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; loff_t f_pos ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___8 ; struct libcfs_debug_msg_data msgdata___2 ; long tmp___9 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___10 ; long tmp___11 ; struct inode *tmp___12 ; struct inode *tmp___13 ; loff_t tmp___14 ; void *tmp___15 ; ssize_t tmp___16 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___17 ; long tmp___18 ; struct list_head const *__mptr___1 ; struct thread_info *tmp___19 ; int i ; unsigned int tmp___20 ; int tmp___21 ; unsigned int tmp___22 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; struct list_head const *__mptr___4 ; int tmp___23 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___24 ; long tmp___25 ; int tmp___26 ; struct task_struct *tmp___27 ; struct task_struct *tmp___28 ; long volatile __ret ; struct task_struct *tmp___29 ; struct task_struct *tmp___30 ; struct task_struct *tmp___31 ; struct task_struct *tmp___32 ; long tmp___33 ; { tctl = (struct tracefiled_ctl *)arg; last_loop = 0; spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); complete(& tctl->tctl_start); ldv_50810: pc.pc_want_daemon_pages = 0; collect_pages(& pc); tmp___0 = list_empty((struct list_head const *)(& pc.pc_pages)); if (tmp___0 != 0) { goto end_loop; } else { } filp = (struct file *)0; cfs_tracefile_read_lock(); if ((int )((signed char )cfs_tracefile[0]) != 0) { filp = filp_open((char const *)(& cfs_tracefile), 32834, 384); tmp___2 = IS_ERR((void const *)filp); if ((int )tmp___2) { tmp___1 = PTR_ERR((void const *)filp); rc = (int )tmp___1; filp = (struct file *)0; printk("\fcouldn\'t open %s: %d\n", (char *)(& cfs_tracefile), rc); } else { } } else { } cfs_tracefile_read_unlock(); if ((unsigned long )filp == (unsigned long )((struct file *)0)) { put_pages_on_daemon_list(& pc); tmp___3 = list_empty((struct list_head const *)(& pc.pc_pages)); tmp___4 = ldv__builtin_expect(tmp___3 == 0, 0L); if (tmp___4 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "tracefiled"; msgdata.msg_subsys = 1024; msgdata.msg_line = 1012; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(list_empty(&pc.pc_pages)) failed", & msgdata); } else { } goto end_loop; } else { } tmp___5 = current_thread_info(); __oldfs = tmp___5->addr_limit; tmp___6 = current_thread_info(); __constr_expr_0.seg = 0xffffffffffffffffUL; tmp___6->addr_limit = __constr_expr_0; __mptr = (struct list_head const *)pc.pc_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50785; ldv_50784: tmp___7 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___7 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "tracefiled"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 1022; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata___0); } else { } tmp___8 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___8 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "tracefiled"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 1022; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___1); } else { } tmp___9 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___9 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "tracefiled"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 1022; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___2); } else { } tmp___10 = page_count(tage->page); tmp___11 = ldv__builtin_expect(tmp___10 <= 0, 0L); if (tmp___11 != 0L) { msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___3.msg_fn = "tracefiled"; msgdata___3.msg_subsys = 1024; msgdata___3.msg_line = 1022; msgdata___3.msg_mask = 0; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___3); } else { } if (f_pos >= cfs_tracefile_size) { f_pos = 0LL; } else { tmp___13 = file_inode((struct file const *)filp); tmp___14 = i_size_read((struct inode const *)tmp___13); if (tmp___14 < f_pos) { tmp___12 = file_inode((struct file const *)filp); f_pos = i_size_read((struct inode const *)tmp___12); } else { } } tmp___15 = kmap(tage->page); buf = (char *)tmp___15; tmp___16 = vfs_write(filp, (char const *)buf, (size_t )tage->used, & f_pos); rc = (int )tmp___16; kunmap(tage->page); if ((int )tage->used != rc) { printk("\fwanted to write %u but wrote %d\n", tage->used, rc); put_pages_back(& pc); tmp___17 = list_empty((struct list_head const *)(& pc.pc_pages)); tmp___18 = ldv__builtin_expect(tmp___17 == 0, 0L); if (tmp___18 != 0L) { msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___4.msg_fn = "tracefiled"; msgdata___4.msg_subsys = 1024; msgdata___4.msg_line = 1038; msgdata___4.msg_mask = 0; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(list_empty(&pc.pc_pages)) failed", & msgdata___4); } else { } goto ldv_50783; } else { } tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50785: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc.pc_pages)) { goto ldv_50784; } else { } ldv_50783: tmp___19 = current_thread_info(); tmp___19->addr_limit = __oldfs; filp_close(filp, (void *)0); put_pages_on_daemon_list(& pc); tmp___23 = list_empty((struct list_head const *)(& pc.pc_pages)); if (tmp___23 == 0) { printk("\tLustre: trace pages aren\'t empty\n"); tmp___20 = cpumask_weight(cpu_possible_mask); printk("\vtotal cpus(%d): ", tmp___20); i = 0; goto ldv_50788; ldv_50787: tmp___21 = cpumask_test_cpu___0(i, cpu_online_mask); if (tmp___21 != 0) { printk("%d(on) ", i); } else { printk("%d(off) ", i); } i = i + 1; ldv_50788: tmp___22 = cpumask_weight(cpu_possible_mask); if ((unsigned int )i < tmp___22) { goto ldv_50787; } else { } printk("\n"); i = 0; __mptr___2 = (struct list_head const *)pc.pc_pages.next; tage = (struct cfs_trace_page *)__mptr___2 + 0xfffffffffffffff8UL; __mptr___3 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___3 + 0xfffffffffffffff8UL; goto ldv_50797; ldv_50796: i = i + 1; printk("\vpage %d belongs to cpu %d\n", i, (int )tage->cpu); tage = tmp; __mptr___4 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___4 + 0xfffffffffffffff8UL; ldv_50797: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& pc.pc_pages)) { goto ldv_50796; } else { } printk("\vThere are %d pages unwritten\n", i); } else { } tmp___24 = list_empty((struct list_head const *)(& pc.pc_pages)); tmp___25 = ldv__builtin_expect(tmp___24 == 0, 0L); if (tmp___25 != 0L) { msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___5.msg_fn = "tracefiled"; msgdata___5.msg_subsys = 1024; msgdata___5.msg_line = 1066; msgdata___5.msg_mask = 0; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(list_empty(&pc.pc_pages)) failed", & msgdata___5); } else { } end_loop: tmp___26 = atomic_read((atomic_t const *)(& tctl->tctl_shutdown)); if (tmp___26 != 0) { if (last_loop == 0) { last_loop = 1; goto ldv_50800; } else { goto ldv_50801; } } else { } tmp___27 = get_current(); init_waitqueue_entry(& __wait, tmp___27); add_wait_queue(& tctl->tctl_waitq, & __wait); tmp___28 = get_current(); tmp___28->task_state_change = 0UL; __ret = 1L; switch (8UL) { case 1UL: tmp___29 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___29->state): : "memory", "cc"); goto ldv_50804; case 2UL: tmp___30 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___30->state): : "memory", "cc"); goto ldv_50804; case 4UL: tmp___31 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___31->state): : "memory", "cc"); goto ldv_50804; case 8UL: tmp___32 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___32->state): : "memory", "cc"); goto ldv_50804; default: __xchg_wrong_size(); } ldv_50804: tmp___33 = cfs_time_seconds(1); schedule_timeout(tmp___33); remove_wait_queue(& tctl->tctl_waitq, & __wait); ldv_50800: ; goto ldv_50810; ldv_50801: complete(& tctl->tctl_stop); return (0); } } int cfs_trace_start_thread(void) { struct tracefiled_ctl *tctl ; int rc ; struct lock_class_key __key ; struct task_struct *__k ; struct task_struct *tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; { tctl = & trace_tctl; rc = 0; ldv_mutex_lock_264(& cfs_trace_thread_mutex); if (thread_running != 0) { goto out; } else { } init_completion(& tctl->tctl_start); init_completion(& tctl->tctl_stop); __init_waitqueue_head(& tctl->tctl_waitq, "&tctl->tctl_waitq", & __key); atomic_set(& tctl->tctl_shutdown, 0); tmp = kthread_create_on_node(& tracefiled, (void *)tctl, -1, "ktracefiled"); __k = tmp; tmp___0 = IS_ERR((void const *)__k); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { wake_up_process(__k); } else { } tmp___2 = IS_ERR((void const *)__k); if ((int )tmp___2) { rc = -10; goto out; } else { } wait_for_completion(& tctl->tctl_start); thread_running = 1; out: ldv_mutex_unlock_265(& cfs_trace_thread_mutex); return (rc); } } void cfs_trace_stop_thread(void) { struct tracefiled_ctl *tctl ; { tctl = & trace_tctl; ldv_mutex_lock_266(& cfs_trace_thread_mutex); if (thread_running != 0) { printk("\016Lustre: shutting down debug daemon thread...\n"); atomic_set(& tctl->tctl_shutdown, 1); wait_for_completion(& tctl->tctl_stop); thread_running = 0; } else { } ldv_mutex_unlock_267(& cfs_trace_thread_mutex); return; } } int cfs_tracefile_init(int max_pages ) { struct cfs_trace_cpu_data *tcd ; int i ; int j ; int rc ; int factor ; struct libcfs_debug_msg_data __msg_data ; long tmp ; unsigned int tmp___0 ; { rc = cfs_tracefile_init_arch(); if (rc != 0) { return (rc); } else { } i = 0; goto ldv_50838; ldv_50837: j = 0; tcd = & (*(cfs_trace_data[i]))[j].tcd; goto ldv_50835; ldv_50834: factor = (int )tcd->tcd_pages_factor; INIT_LIST_HEAD(& tcd->tcd_pages); INIT_LIST_HEAD(& tcd->tcd_stock_pages); INIT_LIST_HEAD(& tcd->tcd_daemon_pages); tcd->tcd_cur_pages = 0UL; tcd->tcd_cur_stock_pages = 0UL; tcd->tcd_cur_daemon_pages = 0UL; tcd->tcd_max_pages = (unsigned long )((max_pages * factor) / 100); tmp = ldv__builtin_expect(tcd->tcd_max_pages == 0UL, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; __msg_data.msg_fn = "cfs_tracefile_init"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 1149; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"tcd->tcd_max_pages > 0"); lbug_with_loc(& __msg_data); } else { } tcd->tcd_shutting_down = 0U; j = j + 1; tcd = & (*(cfs_trace_data[i]))[j].tcd; ldv_50835: tmp___0 = cpumask_weight(cpu_possible_mask); if ((unsigned int )j < tmp___0) { goto ldv_50834; } else { } i = i + 1; ldv_50838: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { goto ldv_50837; } else { } return (0); } } static void trace_cleanup_on_all_cpus(void) { struct cfs_trace_cpu_data *tcd ; struct cfs_trace_page *tage ; struct cfs_trace_page *tmp ; int i ; int cpu ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; long tmp___1 ; struct libcfs_debug_msg_data msgdata___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___3 ; long tmp___4 ; struct list_head const *__mptr___1 ; int tmp___5 ; unsigned int tmp___6 ; { cpu = -1; goto ldv_50866; ldv_50865: i = 0; goto ldv_50863; ldv_50862: tcd->tcd_shutting_down = 1U; __mptr = (struct list_head const *)tcd->tcd_pages.next; tage = (struct cfs_trace_page *)__mptr + 0xfffffffffffffff8UL; __mptr___0 = (struct list_head const *)tage->linkage.next; tmp = (struct cfs_trace_page *)__mptr___0 + 0xfffffffffffffff8UL; goto ldv_50860; ldv_50859: tmp___0 = ldv__builtin_expect((unsigned long )tage == (unsigned long )((struct cfs_trace_page *)0), 0L); if (tmp___0 != 0L) { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata.msg_fn = "trace_cleanup_on_all_cpus"; msgdata.msg_subsys = 1024; msgdata.msg_line = 1169; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage != NULL) failed", & msgdata); } else { } tmp___1 = ldv__builtin_expect((unsigned long )tage->page == (unsigned long )((struct page *)0), 0L); if (tmp___1 != 0L) { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___0.msg_fn = "trace_cleanup_on_all_cpus"; msgdata___0.msg_subsys = 1024; msgdata___0.msg_line = 1169; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->page != NULL) failed", & msgdata___0); } else { } tmp___2 = ldv__builtin_expect(tage->used > 4096U, 0L); if (tmp___2 != 0L) { msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___1.msg_fn = "trace_cleanup_on_all_cpus"; msgdata___1.msg_subsys = 1024; msgdata___1.msg_line = 1169; msgdata___1.msg_mask = 0; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(tage->used <= PAGE_CACHE_SIZE) failed", & msgdata___1); } else { } tmp___3 = page_count(tage->page); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); if (tmp___4 != 0L) { msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/tracefile.c"; msgdata___2.msg_fn = "trace_cleanup_on_all_cpus"; msgdata___2.msg_subsys = 1024; msgdata___2.msg_line = 1169; msgdata___2.msg_mask = 0; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 262144; cfs_trace_assertion_failed("ASSERTION(page_count(tage->page) > 0) failed", & msgdata___2); } else { } list_del(& tage->linkage); cfs_tage_free(tage); tage = tmp; __mptr___1 = (struct list_head const *)tmp->linkage.next; tmp = (struct cfs_trace_page *)__mptr___1 + 0xfffffffffffffff8UL; ldv_50860: ; if ((unsigned long )(& tage->linkage) != (unsigned long )(& tcd->tcd_pages)) { goto ldv_50859; } else { } tcd->tcd_cur_pages = 0UL; cfs_trace_unlock_tcd(tcd, 1); i = i + 1; ldv_50863: ; if ((unsigned long )cfs_trace_data[i] != (unsigned long )((union cfs_trace_data_union (*)[8192])0)) { tcd = & (*(cfs_trace_data[i]))[cpu].tcd; if ((unsigned long )tcd != (unsigned long )((struct cfs_trace_cpu_data *)0)) { tmp___5 = cfs_trace_lock_tcd(tcd, 1); if (tmp___5 != 0) { goto ldv_50862; } else { goto ldv_50864; } } else { goto ldv_50864; } } else { } ldv_50864: ; ldv_50866: tmp___6 = cpumask_next___0(cpu, cpu_possible_mask); cpu = (int )tmp___6; if (cpu < nr_cpu_ids) { goto ldv_50865; } else { } return; } } static void cfs_trace_cleanup(void) { struct page_collection pc ; struct lock_class_key __key ; { INIT_LIST_HEAD(& pc.pc_pages); spinlock_check(& pc.pc_lock); __raw_spin_lock_init(& pc.pc_lock.__annonCompField17.rlock, "&(&pc.pc_lock)->rlock", & __key); trace_cleanup_on_all_cpus(); cfs_tracefile_fini_arch(); return; } } void cfs_tracefile_exit(void) { { cfs_trace_stop_thread(); cfs_trace_cleanup(); return; } } void ldv_mutex_unlock_257(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_258(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_259(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_260(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_261(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_262(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_263(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_264(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cfs_trace_thread_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_265(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cfs_trace_thread_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_266(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cfs_trace_thread_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_267(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cfs_trace_thread_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern int strncasecmp(char const * , char const * , size_t ) ; extern void *memchr(void const * , int , __kernel_size_t ) ; int ldv_mutex_trylock_288(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_283(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_286(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_289(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_284(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_285(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_287(struct mutex *ldv_func_arg1 ) ; char *cfs_firststr(char *str , size_t size ) ; int cfs_expr_list_values(struct cfs_expr_list *expr_list , int max , __u32 **valpp ) ; void cfs_ip_addr_free(struct list_head *list ) ; int cfs_str2mask(char const *str , char const *(*bit2str)(int ) , int *oldmask , int minmask , int allmask ) { char const *debugstr ; char op ; int newmask ; int i ; int len ; int found ; char const *tmp ; size_t tmp___0 ; int tmp___1 ; int tmp___2 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___3 ; { op = 0; newmask = minmask; found = 0; goto ldv_50079; ldv_50078: ; goto ldv_50063; ldv_50062: str = str + 1; ldv_50063: ; if (((int )_ctype[(int )((unsigned char )*str)] & 32) != 0) { goto ldv_50062; } else { } if ((int )((signed char )*str) == 0) { goto ldv_50065; } else { } if ((int )((signed char )*str) == 43 || (int )((signed char )*str) == 45) { tmp = str; str = str + 1; op = *tmp; if (found == 0) { newmask = *oldmask; } else { } goto ldv_50067; ldv_50066: str = str + 1; ldv_50067: ; if (((int )_ctype[(int )((unsigned char )*str)] & 32) != 0) { goto ldv_50066; } else { } if ((int )((signed char )*str) == 0) { return (-22); } else { } } else { } len = 0; goto ldv_50070; ldv_50069: len = len + 1; ldv_50070: ; if ((((int )((signed char )*(str + (unsigned long )len)) != 0 && ((int )_ctype[(int )((unsigned char )*(str + (unsigned long )len))] & 32) == 0) && (int )((signed char )*(str + (unsigned long )len)) != 43) && (int )((signed char )*(str + (unsigned long )len)) != 45) { goto ldv_50069; } else { } found = 0; i = 0; goto ldv_50074; ldv_50073: debugstr = (*bit2str)(i); if ((unsigned long )debugstr != (unsigned long )((char const *)0)) { tmp___0 = strlen(debugstr); if (tmp___0 == (size_t )len) { tmp___1 = strncasecmp(str, debugstr, (size_t )len); if (tmp___1 == 0) { if ((int )((signed char )op) == 45) { newmask = ~ (1 << i) & newmask; } else { newmask = (1 << i) | newmask; } found = 1; goto ldv_50072; } else { } } else { } } else { } i = i + 1; ldv_50074: ; if (i <= 31) { goto ldv_50073; } else { } ldv_50072: ; if (found == 0 && len == 3) { tmp___2 = strncasecmp(str, "ALL", (size_t )len); if (tmp___2 == 0) { if ((int )((signed char )op) == 45) { newmask = minmask; } else { newmask = allmask; } found = 1; } else { } } else { } if (found == 0) { tmp___3 = cfs_cdebug_show(1024U, 1U); if (tmp___3 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata.msg_fn = "cfs_str2mask"; msgdata.msg_line = 105; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "unknown mask \'%.*s\'.\nmask usage: [+|-] ...\n", len, str); } else { } return (-22); } else { } str = str + (unsigned long )len; ldv_50079: ; if ((int )((signed char )*str) != 0) { goto ldv_50078; } else { } ldv_50065: *oldmask = newmask; return (0); } } char *cfs_firststr(char *str , size_t size ) { size_t i ; char *end ; { i = 0UL; goto ldv_50087; ldv_50086: i = i + 1UL; str = str + 1; ldv_50087: ; if ((i < size && (int )((signed char )*str) != 0) && ((int )_ctype[(int )((unsigned char )*str)] & 32) != 0) { goto ldv_50086; } else { } if ((int )((signed char )*str) == 0) { goto out; } else { } end = str; goto ldv_50091; ldv_50090: i = i + 1UL; end = end + 1; ldv_50091: ; if ((i < size && (int )((signed char )*end) != 0) && ((int )_ctype[(int )((unsigned char )*end)] & 32) == 0) { goto ldv_50090; } else { } *end = 0; out: ; return (str); } } static char const __kstrtab_cfs_firststr[13U] = { 'c', 'f', 's', '_', 'f', 'i', 'r', 's', 't', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_firststr ; struct kernel_symbol const __ksymtab_cfs_firststr = {(unsigned long )(& cfs_firststr), (char const *)(& __kstrtab_cfs_firststr)}; char *cfs_trimwhite(char *str ) { char *end ; size_t tmp ; { goto ldv_50106; ldv_50105: str = str + 1; ldv_50106: ; if (((int )_ctype[(int )((unsigned char )*str)] & 32) != 0) { goto ldv_50105; } else { } tmp = strlen((char const *)str); end = str + tmp; goto ldv_50110; ldv_50109: ; if (((int )_ctype[(int )((unsigned char )*(end + 0xffffffffffffffffUL))] & 32) == 0) { goto ldv_50108; } else { } end = end - 1; ldv_50110: ; if ((unsigned long )end > (unsigned long )str) { goto ldv_50109; } else { } ldv_50108: *end = 0; return (str); } } static char const __kstrtab_cfs_trimwhite[14U] = { 'c', 'f', 's', '_', 't', 'r', 'i', 'm', 'w', 'h', 'i', 't', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_trimwhite ; struct kernel_symbol const __ksymtab_cfs_trimwhite = {(unsigned long )(& cfs_trimwhite), (char const *)(& __kstrtab_cfs_trimwhite)}; int cfs_gettok(struct cfs_lstr *next , char delim , struct cfs_lstr *res ) { char *end ; void *tmp ; { if ((unsigned long )next->ls_str == (unsigned long )((char *)0)) { return (0); } else { } goto ldv_50126; ldv_50125: ; if (((int )_ctype[(int )((unsigned char )*(next->ls_str))] & 32) == 0) { goto ldv_50124; } else { } next->ls_str = next->ls_str + 1; next->ls_len = next->ls_len - 1; ldv_50126: ; if (next->ls_len != 0) { goto ldv_50125; } else { } ldv_50124: ; if (next->ls_len == 0) { return (0); } else { } if ((int )((signed char )*(next->ls_str)) == (int )((signed char )delim)) { return (0); } else { } res->ls_str = next->ls_str; tmp = memchr((void const *)next->ls_str, (int )delim, (__kernel_size_t )next->ls_len); end = (char *)tmp; if ((unsigned long )end == (unsigned long )((char *)0)) { end = next->ls_str + (unsigned long )next->ls_len; next->ls_str = (char *)0; } else { next->ls_str = end + 1UL; next->ls_len = (int )((unsigned int )next->ls_len + ~ ((unsigned int )((long )end) - (unsigned int )((long )res->ls_str))); } goto ldv_50129; ldv_50128: ; if (((int )_ctype[(int )((unsigned char )*end)] & 32) == 0) { goto ldv_50127; } else { } ldv_50129: end = end - 1; if ((unsigned long )end != (unsigned long )res->ls_str) { goto ldv_50128; } else { } ldv_50127: res->ls_len = (int )(((unsigned int )((long )end) - (unsigned int )((long )res->ls_str)) + 1U); return (1); } } int cfs_str2num_check(char *str , int nob , unsigned int *num , unsigned int min , unsigned int max ) { char *endp ; unsigned long tmp ; { str = cfs_trimwhite(str); tmp = simple_strtoul((char const *)str, & endp, 0U); *num = (unsigned int )tmp; if ((unsigned long )endp == (unsigned long )str) { return (0); } else { } goto ldv_50139; ldv_50138: ; if (((int )_ctype[(int )((unsigned char )*endp)] & 32) == 0) { return (0); } else { } endp = endp + 1; ldv_50139: ; if ((unsigned long )(str + (unsigned long )nob) > (unsigned long )endp) { goto ldv_50138; } else { } return (*num >= min && *num <= max); } } static int cfs_range_expr_parse(struct cfs_lstr *src , unsigned int min , unsigned int max , int bracketed , struct cfs_range_expr **expr ) { struct cfs_range_expr *re ; struct cfs_lstr tok ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; int s ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___15 ; long tmp___16 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___17 ; int tmp___18 ; long tmp___19 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; __msg_data.msg_fn = "cfs_range_expr_parse"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 266; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*re))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(32UL, 80U); re = (struct cfs_range_expr *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )re == (unsigned long )((struct cfs_range_expr *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1U); if (tmp___2 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata.msg_fn = "cfs_range_expr_parse"; msgdata.msg_line = 266; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(re)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 266, 32); } else { } tmp___4 = cfs_cdebug_show(131072U, 1U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___0.msg_fn = "cfs_range_expr_parse"; msgdata___0.msg_line = 266; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)re, 0, 32UL); atomic_add(32, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___1.msg_fn = "cfs_range_expr_parse"; msgdata___1.msg_line = 266; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(re)\': %d at %p (tot %d).\n", 32, re, tmp___5); } else { } } if ((unsigned long )re == (unsigned long )((struct cfs_range_expr *)0)) { return (-12); } else { } if (src->ls_len == 1 && (int )((signed char )*(src->ls_str)) == 42) { re->re_lo = min; re->re_hi = max; re->re_stride = 1U; goto out; } else { } tmp___8 = cfs_str2num_check(src->ls_str, src->ls_len, & re->re_lo, min, max); if (tmp___8 != 0) { re->re_hi = re->re_lo; re->re_stride = 1U; goto out; } else { } if (bracketed == 0) { goto failed; } else { tmp___9 = cfs_gettok(src, 45, & tok); if (tmp___9 == 0) { goto failed; } else { } } tmp___10 = cfs_str2num_check(tok.ls_str, tok.ls_len, & re->re_lo, min, max); if (tmp___10 == 0) { goto failed; } else { } tmp___11 = cfs_str2num_check(src->ls_str, src->ls_len, & re->re_hi, min, max); if (tmp___11 != 0) { re->re_stride = 1U; goto out; } else { } tmp___14 = cfs_gettok(src, 47, & tok); if (tmp___14 != 0) { tmp___12 = cfs_str2num_check(tok.ls_str, tok.ls_len, & re->re_hi, min, max); if (tmp___12 == 0) { goto failed; } else { } tmp___13 = cfs_str2num_check(src->ls_str, src->ls_len, & re->re_stride, min, max); if (tmp___13 != 0) { goto out; } else { } } else { } out: *expr = re; return (0); failed: s = 32; tmp___16 = ldv__builtin_expect((unsigned long )re == (unsigned long )((struct cfs_range_expr *)0), 0L); if (tmp___16 != 0L) { tmp___15 = cfs_cdebug_show(131072U, 1U); if (tmp___15 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___2.msg_fn = "cfs_range_expr_parse"; msgdata___2.msg_line = 319; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LIBCFS: free NULL \'re\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 319); } else { } goto ldv_50162; } else { } atomic_sub(s, & libcfs_kmemory); tmp___18 = cfs_cdebug_show(16U, 1U); if (tmp___18 != 0) { msgdata___3.msg_subsys = 1; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___3.msg_fn = "cfs_range_expr_parse"; msgdata___3.msg_line = 319; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 16; tmp___17 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "kfreed \'re\': %d at %p (tot %d).\n", s, re, tmp___17); } else { } tmp___19 = ldv__builtin_expect(s > 8192, 0L); if (tmp___19 != 0L) { vfree((void const *)re); } else { kfree((void const *)re); } ldv_50162: ; return (-22); } } int cfs_expr_list_match(__u32 value , struct cfs_expr_list *expr_list ) { struct cfs_range_expr *expr ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { __mptr = (struct list_head const *)expr_list->el_exprs.next; expr = (struct cfs_range_expr *)__mptr; goto ldv_50174; ldv_50173: ; if ((expr->re_lo <= value && expr->re_hi >= value) && (value - expr->re_lo) % expr->re_stride == 0U) { return (1); } else { } __mptr___0 = (struct list_head const *)expr->re_link.next; expr = (struct cfs_range_expr *)__mptr___0; ldv_50174: ; if ((unsigned long )(& expr->re_link) != (unsigned long )(& expr_list->el_exprs)) { goto ldv_50173; } else { } return (0); } } int cfs_expr_list_values(struct cfs_expr_list *expr_list , int max , __u32 **valpp ) { struct cfs_range_expr *expr ; __u32 *val ; int count ; int i ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct libcfs_debug_msg_data __msg_data ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; struct list_head const *__mptr___1 ; int tmp___11 ; struct list_head const *__mptr___2 ; { count = 0; __mptr = (struct list_head const *)expr_list->el_exprs.next; expr = (struct cfs_range_expr *)__mptr; goto ldv_50193; ldv_50192: i = (int )expr->re_lo; goto ldv_50190; ldv_50189: ; if (((__u32 )i - expr->re_lo) % expr->re_stride == 0U) { count = count + 1; } else { } i = i + 1; ldv_50190: ; if ((__u32 )i <= expr->re_hi) { goto ldv_50189; } else { } __mptr___0 = (struct list_head const *)expr->re_link.next; expr = (struct cfs_range_expr *)__mptr___0; ldv_50193: ; if ((unsigned long )(& expr->re_link) != (unsigned long )(& expr_list->el_exprs)) { goto ldv_50192; } else { } if (count == 0) { return (0); } else { } if (count > max) { tmp = cfs_cdebug_show(131072U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata.msg_fn = "cfs_expr_list_values"; msgdata.msg_line = 370; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "Number of values %d exceeds max allowed %d\n", max, count); } else { } return (-22); } else { } tmp___0 = preempt_count(); tmp___1 = ldv__builtin_expect((long )(((unsigned long )tmp___0 & 2096896UL) != 0UL && 1), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; __msg_data.msg_fn = "cfs_expr_list_values"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 374; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(val[0]) * count)) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )count * 4UL <= 8192UL) { tmp___2 = kmalloc((unsigned long )count * 4UL, 80U); tmp___4 = tmp___2; } else { tmp___3 = vmalloc((unsigned long )count * 4UL); tmp___4 = tmp___3; } val = (__u32 *)tmp___4; tmp___10 = ldv__builtin_expect((unsigned long )val == (unsigned long )((__u32 *)0U), 0L); if (tmp___10 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___0.msg_fn = "cfs_expr_list_values"; msgdata___0.msg_line = 374; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; libcfs_debug_msg(& msgdata___0, "LNET: out of memory at %s:%d (tried to alloc \'(val)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 374, (int )((unsigned int )count * 4U)); } else { } tmp___7 = cfs_cdebug_show(131072U, 1U); if (tmp___7 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___1.msg_fn = "cfs_expr_list_values"; msgdata___1.msg_line = 374; msgdata___1.msg_cdls = & cdls___1; msgdata___1.msg_mask = 131072; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "LNET: %d total bytes allocated by lnet\n", tmp___6); } else { } } else { memset((void *)val, 0, (unsigned long )count * 4UL); atomic_add((int )((unsigned int )count * 4U), & libcfs_kmemory); tmp___9 = cfs_cdebug_show(16U, 1U); if (tmp___9 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___2.msg_fn = "cfs_expr_list_values"; msgdata___2.msg_line = 374; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___8 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "alloc \'(val)\': %d at %p (tot %d).\n", (int )((unsigned int )count * 4U), val, tmp___8); } else { } } if ((unsigned long )val == (unsigned long )((__u32 *)0U)) { return (-12); } else { } count = 0; __mptr___1 = (struct list_head const *)expr_list->el_exprs.next; expr = (struct cfs_range_expr *)__mptr___1; goto ldv_50212; ldv_50211: i = (int )expr->re_lo; goto ldv_50209; ldv_50208: ; if (((__u32 )i - expr->re_lo) % expr->re_stride == 0U) { tmp___11 = count; count = count + 1; *(val + (unsigned long )tmp___11) = (__u32 )i; } else { } i = i + 1; ldv_50209: ; if ((__u32 )i <= expr->re_hi) { goto ldv_50208; } else { } __mptr___2 = (struct list_head const *)expr->re_link.next; expr = (struct cfs_range_expr *)__mptr___2; ldv_50212: ; if ((unsigned long )(& expr->re_link) != (unsigned long )(& expr_list->el_exprs)) { goto ldv_50211; } else { } *valpp = val; return (count); } } static char const __kstrtab_cfs_expr_list_values[21U] = { 'c', 'f', 's', '_', 'e', 'x', 'p', 'r', '_', 'l', 'i', 's', 't', '_', 'v', 'a', 'l', 'u', 'e', 's', '\000'}; struct kernel_symbol const __ksymtab_cfs_expr_list_values ; struct kernel_symbol const __ksymtab_cfs_expr_list_values = {(unsigned long )(& cfs_expr_list_values), (char const *)(& __kstrtab_cfs_expr_list_values)}; void cfs_expr_list_free(struct cfs_expr_list *expr_list ) { struct cfs_range_expr *expr ; struct list_head const *__mptr ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int tmp___4 ; int s___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; { goto ldv_50236; ldv_50235: __mptr = (struct list_head const *)expr_list->el_exprs.next; expr = (struct cfs_range_expr *)__mptr; list_del(& expr->re_link); s = 32; tmp___0 = ldv__builtin_expect((unsigned long )expr == (unsigned long )((struct cfs_range_expr *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata.msg_fn = "cfs_expr_list_free"; msgdata.msg_line = 405; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'expr\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 405); } else { } goto ldv_50233; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___0.msg_fn = "cfs_expr_list_free"; msgdata___0.msg_line = 405; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'expr\': %d at %p (tot %d).\n", s, expr, tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)expr); } else { kfree((void const *)expr); } ldv_50233: ; ldv_50236: tmp___4 = list_empty((struct list_head const *)(& expr_list->el_exprs)); if (tmp___4 == 0) { goto ldv_50235; } else { } s___0 = 32; tmp___6 = ldv__builtin_expect((unsigned long )expr_list == (unsigned long )((struct cfs_expr_list *)0), 0L); if (tmp___6 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1U); if (tmp___5 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___1.msg_fn = "cfs_expr_list_free"; msgdata___1.msg_line = 408; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'expr_list\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 408); } else { } goto ldv_50241; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___8 = cfs_cdebug_show(16U, 1U); if (tmp___8 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___2.msg_fn = "cfs_expr_list_free"; msgdata___2.msg_line = 408; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___7 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'expr_list\': %d at %p (tot %d).\n", s___0, expr_list, tmp___7); } else { } tmp___9 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___9 != 0L) { vfree((void const *)expr_list); } else { kfree((void const *)expr_list); } ldv_50241: ; return; } } static char const __kstrtab_cfs_expr_list_free[19U] = { 'c', 'f', 's', '_', 'e', 'x', 'p', 'r', '_', 'l', 'i', 's', 't', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_expr_list_free ; struct kernel_symbol const __ksymtab_cfs_expr_list_free = {(unsigned long )(& cfs_expr_list_free), (char const *)(& __kstrtab_cfs_expr_list_free)}; int cfs_expr_list_parse(char *str , int len , unsigned int min , unsigned int max , struct cfs_expr_list **elpp ) { struct cfs_expr_list *expr_list ; struct cfs_range_expr *expr ; struct cfs_lstr src ; int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; struct cfs_lstr tok ; int tmp___8 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; __msg_data.msg_fn = "cfs_expr_list_parse"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 427; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*expr_list))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(32UL, 80U); expr_list = (struct cfs_expr_list *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )expr_list == (unsigned long )((struct cfs_expr_list *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1U); if (tmp___2 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata.msg_fn = "cfs_expr_list_parse"; msgdata.msg_line = 427; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(expr_list)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c", 427, 32); } else { } tmp___4 = cfs_cdebug_show(131072U, 1U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___0.msg_fn = "cfs_expr_list_parse"; msgdata___0.msg_line = 427; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)expr_list, 0, 32UL); atomic_add(32, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_string.c"; msgdata___1.msg_fn = "cfs_expr_list_parse"; msgdata___1.msg_line = 427; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(expr_list)\': %d at %p (tot %d).\n", 32, expr_list, tmp___5); } else { } } if ((unsigned long )expr_list == (unsigned long )((struct cfs_expr_list *)0)) { return (-12); } else { } src.ls_str = str; src.ls_len = len; INIT_LIST_HEAD(& expr_list->el_exprs); if ((int )((signed char )*(src.ls_str)) == 91 && (int )((signed char )*(src.ls_str + ((unsigned long )src.ls_len + 0xffffffffffffffffUL))) == 93) { src.ls_str = src.ls_str + 1; src.ls_len = src.ls_len + -2; rc = -22; goto ldv_50271; ldv_50270: tmp___8 = cfs_gettok(& src, 44, & tok); if (tmp___8 == 0) { rc = -22; goto ldv_50269; } else { } rc = cfs_range_expr_parse(& tok, min, max, 1, & expr); if (rc != 0) { goto ldv_50269; } else { } list_add_tail(& expr->re_link, & expr_list->el_exprs); ldv_50271: ; if ((unsigned long )src.ls_str != (unsigned long )((char *)0)) { goto ldv_50270; } else { } ldv_50269: ; } else { rc = cfs_range_expr_parse(& src, min, max, 0, & expr); if (rc == 0) { list_add_tail(& expr->re_link, & expr_list->el_exprs); } else { } } if (rc != 0) { cfs_expr_list_free(expr_list); } else { *elpp = expr_list; } return (rc); } } static char const __kstrtab_cfs_expr_list_parse[20U] = { 'c', 'f', 's', '_', 'e', 'x', 'p', 'r', '_', 'l', 'i', 's', 't', '_', 'p', 'a', 'r', 's', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_expr_list_parse ; struct kernel_symbol const __ksymtab_cfs_expr_list_parse = {(unsigned long )(& cfs_expr_list_parse), (char const *)(& __kstrtab_cfs_expr_list_parse)}; void cfs_expr_list_free_list(struct list_head *list ) { struct cfs_expr_list *el ; struct list_head const *__mptr ; int tmp ; { goto ldv_50290; ldv_50289: __mptr = (struct list_head const *)list->next; el = (struct cfs_expr_list *)__mptr; list_del(& el->el_link); cfs_expr_list_free(el); ldv_50290: tmp = list_empty((struct list_head const *)list); if (tmp == 0) { goto ldv_50289; } else { } return; } } int cfs_ip_addr_parse(char *str , int len , struct list_head *list ) { struct cfs_expr_list *el ; struct cfs_lstr src ; int rc ; int i ; struct cfs_lstr res ; int tmp ; { src.ls_str = str; src.ls_len = len; i = 0; goto ldv_50304; ldv_50303: tmp = cfs_gettok(& src, 46, & res); if (tmp == 0) { rc = -22; goto out; } else { } rc = cfs_expr_list_parse(res.ls_str, res.ls_len, 0U, 255U, & el); if (rc != 0) { goto out; } else { } list_add_tail(& el->el_link, list); i = i + 1; ldv_50304: ; if ((unsigned long )src.ls_str != (unsigned long )((char *)0)) { goto ldv_50303; } else { } if (i == 4) { return (0); } else { } rc = -22; out: cfs_expr_list_free_list(list); return (rc); } } static char const __kstrtab_cfs_ip_addr_parse[18U] = { 'c', 'f', 's', '_', 'i', 'p', '_', 'a', 'd', 'd', 'r', '_', 'p', 'a', 'r', 's', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_ip_addr_parse ; struct kernel_symbol const __ksymtab_cfs_ip_addr_parse = {(unsigned long )(& cfs_ip_addr_parse), (char const *)(& __kstrtab_cfs_ip_addr_parse)}; int cfs_ip_addr_match(__u32 addr , struct list_head *list ) { struct cfs_expr_list *el ; int i ; struct list_head const *__mptr ; int tmp ; struct list_head const *__mptr___0 ; { i = 0; __mptr = (struct list_head const *)list->prev; el = (struct cfs_expr_list *)__mptr; goto ldv_50326; ldv_50325: tmp = cfs_expr_list_match(addr & 255U, el); if (tmp == 0) { return (0); } else { } addr = addr >> 8; i = i + 1; __mptr___0 = (struct list_head const *)el->el_link.prev; el = (struct cfs_expr_list *)__mptr___0; ldv_50326: ; if ((unsigned long )(& el->el_link) != (unsigned long )list) { goto ldv_50325; } else { } return (i == 4); } } static char const __kstrtab_cfs_ip_addr_match[18U] = { 'c', 'f', 's', '_', 'i', 'p', '_', 'a', 'd', 'd', 'r', '_', 'm', 'a', 't', 'c', 'h', '\000'}; struct kernel_symbol const __ksymtab_cfs_ip_addr_match ; struct kernel_symbol const __ksymtab_cfs_ip_addr_match = {(unsigned long )(& cfs_ip_addr_match), (char const *)(& __kstrtab_cfs_ip_addr_match)}; void cfs_ip_addr_free(struct list_head *list ) { { cfs_expr_list_free_list(list); return; } } static char const __kstrtab_cfs_ip_addr_free[17U] = { 'c', 'f', 's', '_', 'i', 'p', '_', 'a', 'd', 'd', 'r', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_ip_addr_free ; struct kernel_symbol const __ksymtab_cfs_ip_addr_free = {(unsigned long )(& cfs_ip_addr_free), (char const *)(& __kstrtab_cfs_ip_addr_free)}; void ldv_mutex_unlock_283(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_284(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_285(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_286(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_287(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_288(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_289(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static unsigned long ffz(unsigned long word ) { { __asm__ ("rep; bsf %1,%0": "=r" (word): "r" (~ word)); return (word); } } __inline static int fls(int x ) { int r ; { __asm__ ("bsrl %1,%0": "=r" (r): "rm" (x), "0" (-1)); return (r + 1); } } extern void ___might_sleep(char const * , int , int ) ; __inline static void INIT_HLIST_NODE(struct hlist_node *h ) { { h->next = (struct hlist_node *)0; h->pprev = (struct hlist_node **)0; return; } } __inline static int hlist_unhashed(struct hlist_node const *h ) { { return ((unsigned long )h->pprev == (unsigned long )((struct hlist_node **/* const */)0)); } } __inline static void __hlist_del(struct hlist_node *n ) { struct hlist_node *next ; struct hlist_node **pprev ; { next = n->next; pprev = n->pprev; *pprev = next; if ((unsigned long )next != (unsigned long )((struct hlist_node *)0)) { next->pprev = pprev; } else { } return; } } __inline static void hlist_del_init(struct hlist_node *n ) { int tmp ; { tmp = hlist_unhashed((struct hlist_node const *)n); if (tmp == 0) { __hlist_del(n); INIT_HLIST_NODE(n); } else { } return; } } __inline static void hlist_add_head(struct hlist_node *n , struct hlist_head *h ) { struct hlist_node *first ; { first = h->first; n->next = first; if ((unsigned long )first != (unsigned long )((struct hlist_node *)0)) { first->pprev = & n->next; } else { } h->first = n; n->pprev = & h->first; return; } } __inline static void hlist_add_behind(struct hlist_node *n , struct hlist_node *prev ) { { n->next = prev->next; prev->next = n; n->pprev = & prev->next; if ((unsigned long )n->next != (unsigned long )((struct hlist_node *)0)) { (n->next)->pprev = & n->next; } else { } return; } } extern void __cmpxchg_wrong_size(void) ; __inline static int atomic_dec_and_test(atomic_t *v ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; decl %0; sete %1": "+m" (v->counter), "=qm" (c): : "memory"); return ((int )((signed char )c) != 0); } } __inline static int atomic_cmpxchg(atomic_t *v , int old , int new ) { int __ret ; int __old ; int __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { __old = old; __new = new; switch (4UL) { case 1UL: __ptr = (u8 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_5616; case 2UL: __ptr___0 = (u16 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_5616; case 4UL: __ptr___1 = (u32 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_5616; case 8UL: __ptr___2 = (u64 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_5616; default: __cmpxchg_wrong_size(); } ldv_5616: ; return (__ret); } } __inline static int __atomic_add_unless(atomic_t *v , int a , int u ) { int c ; int old ; long tmp ; long tmp___0 ; { c = atomic_read((atomic_t const *)v); ldv_5645: tmp = ldv__builtin_expect(c == u, 0L); if (tmp != 0L) { goto ldv_5644; } else { } old = atomic_cmpxchg(v, c, c + a); tmp___0 = ldv__builtin_expect(old == c, 1L); if (tmp___0 != 0L) { goto ldv_5644; } else { } c = old; goto ldv_5645; ldv_5644: ; return (c); } } __inline static int atomic_add_unless(atomic_t *v , int a , int u ) { int tmp ; { tmp = __atomic_add_unless(v, a, u); return (tmp != u); } } int ldv_mutex_trylock_306(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_301(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_304(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_307(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_302(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_303(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_305(struct mutex *ldv_func_arg1 ) ; extern void __rwlock_init(rwlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_read_lock(rwlock_t * ) ; extern void _raw_write_lock(rwlock_t * ) ; extern void _raw_read_unlock(rwlock_t * ) ; extern void _raw_write_unlock(rwlock_t * ) ; extern int _cond_resched(void) ; extern int seq_printf(struct seq_file * , char const * , ...) ; __inline static int __is_po2(unsigned long long val ) { { return (((val - 1ULL) & val) == 0ULL); } } __inline static void cfs_wi_init(cfs_workitem_t *wi , void *data , int (*action)(struct cfs_workitem * ) ) { { INIT_LIST_HEAD(& wi->wi_list); wi->wi_running = 0U; wi->wi_scheduled = 0U; wi->wi_data = data; wi->wi_action = action; return; } } void cfs_wi_schedule(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) ; int cfs_wi_deschedule(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) ; void cfs_wi_exit(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) ; __inline static int cfs_hash_with_no_lock(struct cfs_hash *hs ) { { return ((int )hs->hs_flags & 1); } } __inline static int cfs_hash_with_no_bktlock(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 2) != 0); } } __inline static int cfs_hash_with_rw_bktlock(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 4) != 0); } } __inline static int cfs_hash_with_spin_bktlock(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 8) != 0); } } __inline static int cfs_hash_with_add_tail(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 16) != 0); } } __inline static int cfs_hash_with_no_itemref(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 32) != 0); } } __inline static int cfs_hash_with_bigname(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 64) != 0); } } __inline static int cfs_hash_with_counter(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 128) != 0); } } __inline static int cfs_hash_with_rehash(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 512) != 0); } } __inline static int cfs_hash_with_rehash_key(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 256) != 0); } } __inline static int cfs_hash_with_shrink(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 1024) != 0); } } __inline static int cfs_hash_with_assert_empty(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 2048) != 0); } } __inline static int cfs_hash_with_depth(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 4096) != 0); } } __inline static int cfs_hash_with_nblk_change(struct cfs_hash *hs ) { { return (((int )hs->hs_flags & 8192) != 0); } } __inline static int cfs_hash_is_exiting(struct cfs_hash *hs ) { { return ((int )hs->hs_exiting); } } __inline static int cfs_hash_is_rehashing(struct cfs_hash *hs ) { { return ((unsigned int )hs->hs_rehash_bits != 0U); } } __inline static int cfs_hash_is_iterating(struct cfs_hash *hs ) { { return ((unsigned int )hs->hs_iterating != 0U || hs->hs_iterators != 0U); } } __inline static int cfs_hash_bkt_size(struct cfs_hash *hs ) { int tmp ; { tmp = (*((hs->hs_hops)->hop_hhead_size))(hs); return ((int )((((unsigned int )tmp << (int )hs->hs_bkt_bits) + (unsigned int )hs->hs_extra_bytes) + 88U)); } } __inline static unsigned int cfs_hash_id(struct cfs_hash *hs , void const *key , unsigned int mask ) { unsigned int tmp ; { tmp = (*((hs->hs_ops)->hs_hash))(hs, key, mask); return (tmp); } } __inline static void *cfs_hash_key(struct cfs_hash *hs , struct hlist_node *hnode ) { void *tmp ; { tmp = (*((hs->hs_ops)->hs_key))(hnode); return (tmp); } } __inline static void cfs_hash_keycpy(struct cfs_hash *hs , struct hlist_node *hnode , void *key ) { { if ((unsigned long )(hs->hs_ops)->hs_keycpy != (unsigned long )((void (*)(struct hlist_node * , void * ))0)) { (*((hs->hs_ops)->hs_keycpy))(hnode, key); } else { } return; } } __inline static int cfs_hash_keycmp(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { int tmp ; { tmp = (*((hs->hs_ops)->hs_keycmp))(key, hnode); return (tmp); } } __inline static void *cfs_hash_object(struct cfs_hash *hs , struct hlist_node *hnode ) { void *tmp ; { tmp = (*((hs->hs_ops)->hs_object))(hnode); return (tmp); } } __inline static void cfs_hash_get(struct cfs_hash *hs , struct hlist_node *hnode ) { { return; } } __inline static void cfs_hash_exit(struct cfs_hash *hs , struct hlist_node *hnode ) { { if ((unsigned long )(hs->hs_ops)->hs_exit != (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0)) { (*((hs->hs_ops)->hs_exit))(hs, hnode); } else { } return; } } __inline static void cfs_hash_lock(struct cfs_hash *hs , int excl ) { { (*((hs->hs_lops)->hs_lock))(& hs->hs_lock, excl); return; } } __inline static void cfs_hash_unlock(struct cfs_hash *hs , int excl ) { { (*((hs->hs_lops)->hs_unlock))(& hs->hs_lock, excl); return; } } __inline static void cfs_hash_bd_lock(struct cfs_hash *hs , struct cfs_hash_bd *bd , int excl ) { { (*((hs->hs_lops)->hs_bkt_lock))(& (bd->bd_bucket)->hsb_lock, excl); return; } } __inline static void cfs_hash_bd_unlock(struct cfs_hash *hs , struct cfs_hash_bd *bd , int excl ) { { (*((hs->hs_lops)->hs_bkt_unlock))(& (bd->bd_bucket)->hsb_lock, excl); return; } } void cfs_hash_bd_get(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bd ) ; __inline static void cfs_hash_bd_get_and_lock(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bd , int excl ) { { cfs_hash_bd_get(hs, key, bd); cfs_hash_bd_lock(hs, bd, excl); return; } } __inline static void cfs_hash_bd_index_set(struct cfs_hash *hs , unsigned int index , struct cfs_hash_bd *bd ) { { bd->bd_bucket = *(hs->hs_buckets + (unsigned long )(index >> (int )hs->hs_bkt_bits)); bd->bd_offset = ((1U << (int )hs->hs_bkt_bits) - 1U) & index; return; } } __inline static __u32 cfs_hash_bd_version_get(struct cfs_hash_bd *bd ) { { return ((bd->bd_bucket)->hsb_version); } } __inline static int cfs_hash_bd_compare(struct cfs_hash_bd *bd1 , struct cfs_hash_bd *bd2 ) { { if ((bd1->bd_bucket)->hsb_index != (bd2->bd_bucket)->hsb_index) { return ((int )((bd1->bd_bucket)->hsb_index - (bd2->bd_bucket)->hsb_index)); } else { } if (bd1->bd_offset != bd2->bd_offset) { return ((int )(bd1->bd_offset - bd2->bd_offset)); } else { } return (0); } } void cfs_hash_bd_add_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) ; void cfs_hash_bd_del_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) ; void cfs_hash_bd_move_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd_old , struct cfs_hash_bd *bd_new , struct hlist_node *hnode ) ; __inline static struct hlist_head *cfs_hash_bd_hhead(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { struct hlist_head *tmp ; { tmp = (*((hs->hs_hops)->hop_hhead))(hs, bd); return (tmp); } } struct hlist_node *cfs_hash_bd_lookup_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key ) ; struct hlist_node *cfs_hash_bd_peek_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key ) ; struct hlist_node *cfs_hash_bd_findadd_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key , struct hlist_node *hnode , int noref ) ; struct hlist_node *cfs_hash_bd_finddel_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key , struct hlist_node *hnode ) ; void cfs_hash_dual_bd_get(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bds ) ; void cfs_hash_dual_bd_lock(struct cfs_hash *hs , struct cfs_hash_bd *bds , int excl ) ; void cfs_hash_dual_bd_unlock(struct cfs_hash *hs , struct cfs_hash_bd *bds , int excl ) ; __inline static void cfs_hash_dual_bd_get_and_lock(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bds , int excl ) { { cfs_hash_dual_bd_get(hs, key, bds); cfs_hash_dual_bd_lock(hs, bds, excl); return; } } struct hlist_node *cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key ) ; struct hlist_node *cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key , struct hlist_node *hnode , int noref ) ; struct hlist_node *cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key , struct hlist_node *hnode ) ; struct cfs_hash *cfs_hash_create(char *name , unsigned int cur_bits , unsigned int max_bits , unsigned int bkt_bits , unsigned int extra_bytes , unsigned int min_theta , unsigned int max_theta , cfs_hash_ops_t *ops , unsigned int flags ) ; struct cfs_hash *cfs_hash_getref(struct cfs_hash *hs ) ; void cfs_hash_putref(struct cfs_hash *hs ) ; void cfs_hash_add(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) ; int cfs_hash_add_unique(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) ; void *cfs_hash_findadd_unique(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) ; void *cfs_hash_del(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) ; void *cfs_hash_del_key(struct cfs_hash *hs , void const *key ) ; void *cfs_hash_lookup(struct cfs_hash *hs , void const *key ) ; void cfs_hash_for_each(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; void cfs_hash_for_each_safe(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; int cfs_hash_for_each_nolock(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; int cfs_hash_for_each_empty(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; void cfs_hash_for_each_key(struct cfs_hash *hs , void const *key , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; void cfs_hash_cond_del(struct cfs_hash *hs , int (*func)(void * , void * ) , void *data ) ; void cfs_hash_hlist_for_each(struct cfs_hash *hs , unsigned int hindex , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) ; int cfs_hash_is_empty(struct cfs_hash *hs ) ; __u64 cfs_hash_size_get(struct cfs_hash *hs ) ; void cfs_hash_rehash_cancel_locked(struct cfs_hash *hs ) ; void cfs_hash_rehash_cancel(struct cfs_hash *hs ) ; int cfs_hash_rehash(struct cfs_hash *hs , int do_rehash ) ; void cfs_hash_rehash_key(struct cfs_hash *hs , void const *old_key , void *new_key , struct hlist_node *hnode ) ; __inline static void cfs_hash_key_validate(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { { return; } } __inline static void cfs_hash_bucket_validate(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { { return; } } __inline static int __cfs_hash_theta_int(int theta ) { { return (theta >> 10); } } __inline static int __cfs_hash_theta_frac(int theta ) { int tmp ; { tmp = __cfs_hash_theta_int(theta); return ((theta * 1000 >> 10) + tmp * -1000); } } __inline static int __cfs_hash_theta(struct cfs_hash *hs ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& hs->hs_count)); return ((tmp << 10) >> (int )hs->hs_cur_bits); } } __inline static void __cfs_hash_set_theta(struct cfs_hash *hs , int min , int max ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { tmp = ldv__builtin_expect(min >= max, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/staging/lustre/lustre/libcfs/../../include/linux/libcfs/libcfs_hash.h"; __msg_data.msg_fn = "__cfs_hash_set_theta"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 781; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"min < max"); lbug_with_loc(& __msg_data); } else { } hs->hs_min_theta = (unsigned short )min; hs->hs_max_theta = (unsigned short )max; return; } } void cfs_hash_debug_header(struct seq_file *m ) ; void cfs_hash_debug_str(struct cfs_hash *hs , struct seq_file *m ) ; struct cfs_wi_sched *cfs_sched_rehash ; __inline static void cfs_hash_nl_lock(union cfs_hash_lock *lock , int exclusive ) { { return; } } __inline static void cfs_hash_spin_lock(union cfs_hash_lock *lock , int exclusive ) { { spin_lock(& lock->spin); return; } } __inline static void cfs_hash_spin_unlock(union cfs_hash_lock *lock , int exclusive ) { { spin_unlock(& lock->spin); return; } } __inline static void cfs_hash_rw_lock(union cfs_hash_lock *lock , int exclusive ) { { if (exclusive == 0) { _raw_read_lock(& lock->rw); } else { _raw_write_lock(& lock->rw); } return; } } __inline static void cfs_hash_rw_unlock(union cfs_hash_lock *lock , int exclusive ) { { if (exclusive == 0) { _raw_read_unlock(& lock->rw); } else { _raw_write_unlock(& lock->rw); } return; } } static cfs_hash_lock_ops_t cfs_hash_nl_lops = {& cfs_hash_nl_lock, & cfs_hash_nl_lock, & cfs_hash_nl_lock, & cfs_hash_nl_lock}; static cfs_hash_lock_ops_t cfs_hash_nbl_lops = {& cfs_hash_spin_lock, & cfs_hash_spin_unlock, & cfs_hash_nl_lock, & cfs_hash_nl_lock}; static cfs_hash_lock_ops_t cfs_hash_bkt_spin_lops = {& cfs_hash_rw_lock, & cfs_hash_rw_unlock, & cfs_hash_spin_lock, & cfs_hash_spin_unlock}; static cfs_hash_lock_ops_t cfs_hash_bkt_rw_lops = {& cfs_hash_rw_lock, & cfs_hash_rw_unlock, & cfs_hash_rw_lock, & cfs_hash_rw_unlock}; static cfs_hash_lock_ops_t cfs_hash_nr_bkt_spin_lops = {& cfs_hash_nl_lock, & cfs_hash_nl_lock, & cfs_hash_spin_lock, & cfs_hash_spin_unlock}; static cfs_hash_lock_ops_t cfs_hash_nr_bkt_rw_lops = {& cfs_hash_nl_lock, & cfs_hash_nl_lock, & cfs_hash_rw_lock, & cfs_hash_rw_unlock}; static void cfs_hash_lock_setup(struct cfs_hash *hs ) { struct lock_class_key __key ; struct lock_class_key __key___0 ; struct libcfs_debug_msg_data msgdata ; int tmp ; int tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; { tmp___5 = cfs_hash_with_no_lock(hs); if (tmp___5 != 0) { hs->hs_lops = & cfs_hash_nl_lops; } else { tmp___4 = cfs_hash_with_no_bktlock(hs); if (tmp___4 != 0) { hs->hs_lops = & cfs_hash_nbl_lops; spinlock_check(& hs->hs_lock.spin); __raw_spin_lock_init(& hs->hs_lock.spin.__annonCompField17.rlock, "&(&hs->hs_lock.spin)->rlock", & __key); } else { tmp___3 = cfs_hash_with_rehash(hs); if (tmp___3 != 0) { __rwlock_init(& hs->hs_lock.rw, "&hs->hs_lock.rw", & __key___0); tmp___0 = cfs_hash_with_rw_bktlock(hs); if (tmp___0 != 0) { hs->hs_lops = & cfs_hash_bkt_rw_lops; } else { tmp = cfs_hash_with_spin_bktlock(hs); if (tmp != 0) { hs->hs_lops = & cfs_hash_bkt_spin_lops; } else { msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_lock_setup"; msgdata.msg_subsys = 1; msgdata.msg_line = 227; msgdata.msg_mask = 0; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 262144; lbug_with_loc(& msgdata); } } } else { tmp___2 = cfs_hash_with_rw_bktlock(hs); if (tmp___2 != 0) { hs->hs_lops = & cfs_hash_nr_bkt_rw_lops; } else { tmp___1 = cfs_hash_with_spin_bktlock(hs); if (tmp___1 != 0) { hs->hs_lops = & cfs_hash_nr_bkt_spin_lops; } else { msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___0.msg_fn = "cfs_hash_lock_setup"; msgdata___0.msg_subsys = 1; msgdata___0.msg_line = 234; msgdata___0.msg_mask = 0; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 262144; lbug_with_loc(& msgdata___0); } } } } } return; } } static int cfs_hash_hh_hhead_size(struct cfs_hash *hs ) { { return (8); } } static struct hlist_head *cfs_hash_hh_hhead(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { cfs_hash_head_t *head ; { head = (cfs_hash_head_t *)(& (bd->bd_bucket)->hsb_head); return (& (head + (unsigned long )bd->bd_offset)->hh_head); } } static int cfs_hash_hh_hnode_add(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { struct hlist_head *tmp ; { tmp = cfs_hash_hh_hhead(hs, bd); hlist_add_head(hnode, tmp); return (-1); } } static int cfs_hash_hh_hnode_del(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { { hlist_del_init(hnode); return (-1); } } static int cfs_hash_hd_hhead_size(struct cfs_hash *hs ) { { return (16); } } static struct hlist_head *cfs_hash_hd_hhead(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { cfs_hash_head_dep_t *head ; { head = (cfs_hash_head_dep_t *)(& (bd->bd_bucket)->hsb_head); return (& (head + (unsigned long )bd->bd_offset)->hd_head); } } static int cfs_hash_hd_hnode_add(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { cfs_hash_head_dep_t *hh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; { tmp = cfs_hash_hd_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; hh = (cfs_hash_head_dep_t *)__mptr; hlist_add_head(hnode, & hh->hd_head); hh->hd_depth = hh->hd_depth + 1U; return ((int )hh->hd_depth); } } static int cfs_hash_hd_hnode_del(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { cfs_hash_head_dep_t *hh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; { tmp = cfs_hash_hd_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; hh = (cfs_hash_head_dep_t *)__mptr; hlist_del_init(hnode); hh->hd_depth = hh->hd_depth - 1U; return ((int )hh->hd_depth); } } static int cfs_hash_dh_hhead_size(struct cfs_hash *hs ) { { return (16); } } static struct hlist_head *cfs_hash_dh_hhead(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { cfs_hash_dhead_t *head ; { head = (cfs_hash_dhead_t *)(& (bd->bd_bucket)->hsb_head); return (& (head + (unsigned long )bd->bd_offset)->dh_head); } } static int cfs_hash_dh_hnode_add(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { cfs_hash_dhead_t *dh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; { tmp = cfs_hash_dh_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; dh = (cfs_hash_dhead_t *)__mptr; if ((unsigned long )dh->dh_tail != (unsigned long )((struct hlist_node *)0)) { hlist_add_behind(hnode, dh->dh_tail); } else { hlist_add_head(hnode, & dh->dh_head); } dh->dh_tail = hnode; return (-1); } } static int cfs_hash_dh_hnode_del(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnd ) { cfs_hash_dhead_t *dh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; struct hlist_node * const *__mptr___0 ; { tmp = cfs_hash_dh_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; dh = (cfs_hash_dhead_t *)__mptr; if ((unsigned long )hnd->next == (unsigned long )((struct hlist_node *)0)) { if ((unsigned long )hnd->pprev != (unsigned long )(& dh->dh_head.first)) { __mptr___0 = (struct hlist_node * const *)hnd->pprev; dh->dh_tail = (struct hlist_node *)__mptr___0; } else { dh->dh_tail = (struct hlist_node *)0; } } else { } hlist_del_init(hnd); return (-1); } } static int cfs_hash_dd_hhead_size(struct cfs_hash *hs ) { { return (24); } } static struct hlist_head *cfs_hash_dd_hhead(struct cfs_hash *hs , struct cfs_hash_bd *bd ) { cfs_hash_dhead_dep_t *head ; { head = (cfs_hash_dhead_dep_t *)(& (bd->bd_bucket)->hsb_head); return (& (head + (unsigned long )bd->bd_offset)->dd_head); } } static int cfs_hash_dd_hnode_add(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { cfs_hash_dhead_dep_t *dh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; { tmp = cfs_hash_dd_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; dh = (cfs_hash_dhead_dep_t *)__mptr; if ((unsigned long )dh->dd_tail != (unsigned long )((struct hlist_node *)0)) { hlist_add_behind(hnode, dh->dd_tail); } else { hlist_add_head(hnode, & dh->dd_head); } dh->dd_tail = hnode; dh->dd_depth = dh->dd_depth + 1U; return ((int )dh->dd_depth); } } static int cfs_hash_dd_hnode_del(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnd ) { cfs_hash_dhead_dep_t *dh ; struct hlist_head const *__mptr ; struct hlist_head *tmp ; struct hlist_node * const *__mptr___0 ; { tmp = cfs_hash_dd_hhead(hs, bd); __mptr = (struct hlist_head const *)tmp; dh = (cfs_hash_dhead_dep_t *)__mptr; if ((unsigned long )hnd->next == (unsigned long )((struct hlist_node *)0)) { if ((unsigned long )hnd->pprev != (unsigned long )(& dh->dd_head.first)) { __mptr___0 = (struct hlist_node * const *)hnd->pprev; dh->dd_tail = (struct hlist_node *)__mptr___0; } else { dh->dd_tail = (struct hlist_node *)0; } } else { } hlist_del_init(hnd); dh->dd_depth = dh->dd_depth - 1U; return ((int )dh->dd_depth); } } static cfs_hash_hlist_ops_t cfs_hash_hh_hops = {& cfs_hash_hh_hhead, & cfs_hash_hh_hhead_size, & cfs_hash_hh_hnode_add, & cfs_hash_hh_hnode_del}; static cfs_hash_hlist_ops_t cfs_hash_hd_hops = {& cfs_hash_hd_hhead, & cfs_hash_hd_hhead_size, & cfs_hash_hd_hnode_add, & cfs_hash_hd_hnode_del}; static cfs_hash_hlist_ops_t cfs_hash_dh_hops = {& cfs_hash_dh_hhead, & cfs_hash_dh_hhead_size, & cfs_hash_dh_hnode_add, & cfs_hash_dh_hnode_del}; static cfs_hash_hlist_ops_t cfs_hash_dd_hops = {& cfs_hash_dd_hhead, & cfs_hash_dd_hhead_size, & cfs_hash_dd_hnode_add, & cfs_hash_dd_hnode_del}; static void cfs_hash_hlist_setup(struct cfs_hash *hs ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp___1 = cfs_hash_with_add_tail(hs); if (tmp___1 != 0) { tmp = cfs_hash_with_depth(hs); hs->hs_hops = tmp != 0 ? & cfs_hash_dd_hops : & cfs_hash_dh_hops; } else { tmp___0 = cfs_hash_with_depth(hs); hs->hs_hops = tmp___0 != 0 ? & cfs_hash_hd_hops : & cfs_hash_hh_hops; } return; } } static void cfs_hash_bd_from_key(struct cfs_hash *hs , struct cfs_hash_bucket **bkts , unsigned int bits , void const *key , struct cfs_hash_bd *bd ) { unsigned int index ; unsigned int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { tmp = cfs_hash_id(hs, key, (1U << (int )bits) - 1U); index = tmp; tmp___0 = ldv__builtin_expect((long )((unsigned int )hs->hs_cur_bits != bits && (unsigned int )hs->hs_rehash_bits != bits), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_bd_from_key"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 475; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"bits == hs->hs_cur_bits || bits == hs->hs_rehash_bits"); lbug_with_loc(& __msg_data); } else { } bd->bd_bucket = *(bkts + (unsigned long )(((1U << (int )(bits - (unsigned int )hs->hs_bkt_bits)) - 1U) & index)); bd->bd_offset = index >> (int )(bits - (unsigned int )hs->hs_bkt_bits); return; } } void cfs_hash_bd_get(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bd ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; long tmp___0 ; { tmp___0 = ldv__builtin_expect((unsigned long )hs->hs_rehash_buckets == (unsigned long )((struct cfs_hash_bucket **)0), 1L); if (tmp___0 != 0L) { cfs_hash_bd_from_key(hs, hs->hs_buckets, (unsigned int )hs->hs_cur_bits, key, bd); } else { tmp = ldv__builtin_expect((unsigned int )hs->hs_rehash_bits == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_bd_get"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 489; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_rehash_bits != 0"); lbug_with_loc(& __msg_data); } else { } cfs_hash_bd_from_key(hs, hs->hs_rehash_buckets, (unsigned int )hs->hs_rehash_bits, key, bd); } return; } } static char const __kstrtab_cfs_hash_bd_get[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'g', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_get ; struct kernel_symbol const __ksymtab_cfs_hash_bd_get = {(unsigned long )(& cfs_hash_bd_get), (char const *)(& __kstrtab_cfs_hash_bd_get)}; __inline static void cfs_hash_bd_dep_record(struct cfs_hash *hs , struct cfs_hash_bd *bd , int dep_cur ) { long tmp ; { tmp = ldv__builtin_expect((bd->bd_bucket)->hsb_depmax >= dep_cur, 1L); if (tmp != 0L) { return; } else { } (bd->bd_bucket)->hsb_depmax = dep_cur; return; } } void cfs_hash_bd_add_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { int rc ; long tmp ; int tmp___0 ; int tmp___1 ; { rc = (*((hs->hs_hops)->hop_hnode_add))(hs, bd, hnode); cfs_hash_bd_dep_record(hs, bd, rc); (bd->bd_bucket)->hsb_version = (bd->bd_bucket)->hsb_version + 1U; tmp = ldv__builtin_expect((bd->bd_bucket)->hsb_version == 0U, 0L); if (tmp != 0L) { (bd->bd_bucket)->hsb_version = (bd->bd_bucket)->hsb_version + 1U; } else { } (bd->bd_bucket)->hsb_count = (bd->bd_bucket)->hsb_count + 1U; tmp___0 = cfs_hash_with_counter(hs); if (tmp___0 != 0) { atomic_inc(& hs->hs_count); } else { } tmp___1 = cfs_hash_with_no_itemref(hs); if (tmp___1 == 0) { cfs_hash_get(hs, hnode); } else { } return; } } static char const __kstrtab_cfs_hash_bd_add_locked[23U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'a', 'd', 'd', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_add_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_add_locked = {(unsigned long )(& cfs_hash_bd_add_locked), (char const *)(& __kstrtab_cfs_hash_bd_add_locked)}; void cfs_hash_bd_del_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; int tmp___4 ; { (*((hs->hs_hops)->hop_hnode_del))(hs, bd, hnode); tmp = ldv__builtin_expect((bd->bd_bucket)->hsb_count == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_bd_del_locked"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 545; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"bd->bd_bucket->hsb_count > 0"); lbug_with_loc(& __msg_data); } else { } (bd->bd_bucket)->hsb_count = (bd->bd_bucket)->hsb_count - 1U; (bd->bd_bucket)->hsb_version = (bd->bd_bucket)->hsb_version + 1U; tmp___0 = ldv__builtin_expect((bd->bd_bucket)->hsb_version == 0U, 0L); if (tmp___0 != 0L) { (bd->bd_bucket)->hsb_version = (bd->bd_bucket)->hsb_version + 1U; } else { } tmp___3 = cfs_hash_with_counter(hs); if (tmp___3 != 0) { tmp___1 = atomic_read((atomic_t const *)(& hs->hs_count)); tmp___2 = ldv__builtin_expect(tmp___1 <= 0, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___0.msg_fn = "cfs_hash_bd_del_locked"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 552; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&hs->hs_count) > 0"); lbug_with_loc(& __msg_data___0); } else { } atomic_dec(& hs->hs_count); } else { } tmp___4 = cfs_hash_with_no_itemref(hs); if (tmp___4 == 0) { cfs_hash_get(hs, hnode); } else { } return; } } static char const __kstrtab_cfs_hash_bd_del_locked[23U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'd', 'e', 'l', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_del_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_del_locked = {(unsigned long )(& cfs_hash_bd_del_locked), (char const *)(& __kstrtab_cfs_hash_bd_del_locked)}; void cfs_hash_bd_move_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd_old , struct cfs_hash_bd *bd_new , struct hlist_node *hnode ) { struct cfs_hash_bucket *obkt ; struct cfs_hash_bucket *nbkt ; int rc ; int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; long tmp___1 ; long tmp___2 ; { obkt = bd_old->bd_bucket; nbkt = bd_new->bd_bucket; tmp = cfs_hash_bd_compare(bd_old, bd_new); if (tmp == 0) { return; } else { } (*((hs->hs_hops)->hop_hnode_del))(hs, bd_old, hnode); rc = (*((hs->hs_hops)->hop_hnode_add))(hs, bd_new, hnode); cfs_hash_bd_dep_record(hs, bd_new, rc); tmp___0 = ldv__builtin_expect(obkt->hsb_count == 0U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_bd_move_locked"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 577; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"obkt->hsb_count > 0"); lbug_with_loc(& __msg_data); } else { } obkt->hsb_count = obkt->hsb_count - 1U; obkt->hsb_version = obkt->hsb_version + 1U; tmp___1 = ldv__builtin_expect(obkt->hsb_version == 0U, 0L); if (tmp___1 != 0L) { obkt->hsb_version = obkt->hsb_version + 1U; } else { } nbkt->hsb_count = nbkt->hsb_count + 1U; nbkt->hsb_version = nbkt->hsb_version + 1U; tmp___2 = ldv__builtin_expect(nbkt->hsb_version == 0U, 0L); if (tmp___2 != 0L) { nbkt->hsb_version = nbkt->hsb_version + 1U; } else { } return; } } static char const __kstrtab_cfs_hash_bd_move_locked[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'm', 'o', 'v', 'e', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_move_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_move_locked = {(unsigned long )(& cfs_hash_bd_move_locked), (char const *)(& __kstrtab_cfs_hash_bd_move_locked)}; static struct hlist_node *cfs_hash_bd_lookup_intent(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key , struct hlist_node *hnode , cfs_hash_lookup_intent_t intent ) { struct hlist_head *hhead ; struct hlist_head *tmp ; struct hlist_node *ehnode ; struct hlist_node *match ; int intent_add ; int tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = cfs_hash_bd_hhead(hs, bd); hhead = tmp; intent_add = ((unsigned int )intent & 4U) != 0U; match = intent_add == 0 ? hnode : (struct hlist_node *)0; ehnode = hhead->first; goto ldv_50313; ldv_50312: tmp___0 = cfs_hash_keycmp(hs, key, ehnode); if (tmp___0 == 0) { goto ldv_50311; } else { } if ((unsigned long )match != (unsigned long )((struct hlist_node *)0) && (unsigned long )match != (unsigned long )ehnode) { goto ldv_50311; } else { } if (((unsigned int )intent & 8U) != 0U) { cfs_hash_bd_del_locked(hs, bd, ehnode); return (ehnode); } else { } if (((unsigned int )intent & 2U) != 0U) { cfs_hash_get(hs, ehnode); } else { } return (ehnode); ldv_50311: ehnode = ehnode->next; ldv_50313: ; if ((unsigned long )ehnode != (unsigned long )((struct hlist_node *)0)) { goto ldv_50312; } else { } if (intent_add == 0) { return ((struct hlist_node *)0); } else { } tmp___1 = ldv__builtin_expect((unsigned long )hnode == (unsigned long )((struct hlist_node *)0), 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_bd_lookup_intent"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 653; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hnode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_bd_add_locked(hs, bd, hnode); return (hnode); } } struct hlist_node *cfs_hash_bd_lookup_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key ) { struct hlist_node *tmp ; { tmp = cfs_hash_bd_lookup_intent(hs, bd, key, (struct hlist_node *)0, 3); return (tmp); } } static char const __kstrtab_cfs_hash_bd_lookup_locked[26U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'l', 'o', 'o', 'k', 'u', 'p', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_lookup_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_lookup_locked = {(unsigned long )(& cfs_hash_bd_lookup_locked), (char const *)(& __kstrtab_cfs_hash_bd_lookup_locked)}; struct hlist_node *cfs_hash_bd_peek_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key ) { struct hlist_node *tmp ; { tmp = cfs_hash_bd_lookup_intent(hs, bd, key, (struct hlist_node *)0, 1); return (tmp); } } static char const __kstrtab_cfs_hash_bd_peek_locked[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'p', 'e', 'e', 'k', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_peek_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_peek_locked = {(unsigned long )(& cfs_hash_bd_peek_locked), (char const *)(& __kstrtab_cfs_hash_bd_peek_locked)}; struct hlist_node *cfs_hash_bd_findadd_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key , struct hlist_node *hnode , int noref ) { struct hlist_node *tmp ; { tmp = cfs_hash_bd_lookup_intent(hs, bd, key, hnode, noref == 0 ? 7 : 5); return (tmp); } } static char const __kstrtab_cfs_hash_bd_findadd_locked[27U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'f', 'i', 'n', 'd', 'a', 'd', 'd', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_findadd_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_findadd_locked = {(unsigned long )(& cfs_hash_bd_findadd_locked), (char const *)(& __kstrtab_cfs_hash_bd_findadd_locked)}; struct hlist_node *cfs_hash_bd_finddel_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , void const *key , struct hlist_node *hnode ) { struct hlist_node *tmp ; { tmp = cfs_hash_bd_lookup_intent(hs, bd, key, hnode, 9); return (tmp); } } static char const __kstrtab_cfs_hash_bd_finddel_locked[27U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'b', 'd', '_', 'f', 'i', 'n', 'd', 'd', 'e', 'l', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_bd_finddel_locked ; struct kernel_symbol const __ksymtab_cfs_hash_bd_finddel_locked = {(unsigned long )(& cfs_hash_bd_finddel_locked), (char const *)(& __kstrtab_cfs_hash_bd_finddel_locked)}; static void cfs_hash_multi_bd_lock(struct cfs_hash *hs , struct cfs_hash_bd *bds , unsigned int n , int excl ) { struct cfs_hash_bucket *prev ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { prev = (struct cfs_hash_bucket *)0; i = 0; goto ldv_50391; ldv_50390: ; if ((unsigned long )(bds + (unsigned long )i)->bd_bucket == (unsigned long )prev) { goto ldv_50387; } else { } tmp = ldv__builtin_expect((long )((unsigned long )prev != (unsigned long )((struct cfs_hash_bucket *)0) && prev->hsb_index >= ((bds + (unsigned long )i)->bd_bucket)->hsb_index), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_multi_bd_lock"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 712; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"prev == ((void *)0) || prev->hsb_index < bds[i].bd_bucket->hsb_index"); lbug_with_loc(& __msg_data); } else { } cfs_hash_bd_lock(hs, bds + (unsigned long )i, excl); prev = (bds + (unsigned long )i)->bd_bucket; ldv_50387: i = i + 1; ldv_50391: ; if ((unsigned int )i < n && (unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50390; } else { } return; } } static void cfs_hash_multi_bd_unlock(struct cfs_hash *hs , struct cfs_hash_bd *bds , unsigned int n , int excl ) { struct cfs_hash_bucket *prev ; int i ; { prev = (struct cfs_hash_bucket *)0; i = 0; goto ldv_50402; ldv_50401: ; if ((unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )prev) { cfs_hash_bd_unlock(hs, bds + (unsigned long )i, excl); prev = (bds + (unsigned long )i)->bd_bucket; } else { } i = i + 1; ldv_50402: ; if ((unsigned int )i < n && (unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50401; } else { } return; } } static struct hlist_node *cfs_hash_multi_bd_lookup_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , unsigned int n , void const *key ) { struct hlist_node *ehnode ; unsigned int i ; { i = 0U; goto ldv_50413; ldv_50412: ehnode = cfs_hash_bd_lookup_intent(hs, bds + (unsigned long )i, key, (struct hlist_node *)0, 3); if ((unsigned long )ehnode != (unsigned long )((struct hlist_node *)0)) { return (ehnode); } else { } i = i + 1U; ldv_50413: ; if (i < n && (unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50412; } else { } return ((struct hlist_node *)0); } } static struct hlist_node *cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , unsigned int n , void const *key , struct hlist_node *hnode , int noref ) { struct hlist_node *ehnode ; int intent ; unsigned int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct cfs_hash_bd mybd ; { tmp = ldv__builtin_expect((unsigned long )hnode == (unsigned long )((struct hlist_node *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_multi_bd_findadd_locked"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 758; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hnode != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } intent = noref == 0 ? 3 : 1; i = 0U; goto ldv_50429; ldv_50428: ehnode = cfs_hash_bd_lookup_intent(hs, bds + (unsigned long )i, key, (struct hlist_node *)0, (cfs_hash_lookup_intent_t )intent); if ((unsigned long )ehnode != (unsigned long )((struct hlist_node *)0)) { return (ehnode); } else { } i = i + 1U; ldv_50429: ; if (i < n && (unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50428; } else { } if (i == 1U) { cfs_hash_bd_add_locked(hs, bds, hnode); } else { cfs_hash_bd_get(hs, key, & mybd); cfs_hash_bd_add_locked(hs, & mybd, hnode); } return (hnode); } } static struct hlist_node *cfs_hash_multi_bd_finddel_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , unsigned int n , void const *key , struct hlist_node *hnode ) { struct hlist_node *ehnode ; unsigned int i ; { i = 0U; goto ldv_50442; ldv_50441: ehnode = cfs_hash_bd_lookup_intent(hs, bds + (unsigned long )i, key, hnode, 9); if ((unsigned long )ehnode != (unsigned long )((struct hlist_node *)0)) { return (ehnode); } else { } i = i + 1U; ldv_50442: ; if (i < n && (unsigned long )(bds + (unsigned long )i)->bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50441; } else { } return ((struct hlist_node *)0); } } static void cfs_hash_bd_order(struct cfs_hash_bd *bd1 , struct cfs_hash_bd *bd2 ) { int rc ; struct cfs_hash_bd tmp ; { if ((unsigned long )bd2->bd_bucket == (unsigned long )((struct cfs_hash_bucket *)0)) { return; } else { } if ((unsigned long )bd1->bd_bucket == (unsigned long )((struct cfs_hash_bucket *)0)) { *bd1 = *bd2; bd2->bd_bucket = (struct cfs_hash_bucket *)0; return; } else { } rc = cfs_hash_bd_compare(bd1, bd2); if (rc == 0) { bd2->bd_bucket = (struct cfs_hash_bucket *)0; } else if (rc > 0) { tmp = *bd2; *bd2 = *bd1; *bd1 = tmp; } else { } return; } } void cfs_hash_dual_bd_get(struct cfs_hash *hs , void const *key , struct cfs_hash_bd *bds ) { long tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; { cfs_hash_bd_from_key(hs, hs->hs_buckets, (unsigned int )hs->hs_cur_bits, key, bds); tmp = ldv__builtin_expect((unsigned long )hs->hs_rehash_buckets == (unsigned long )((struct cfs_hash_bucket **)0), 1L); if (tmp != 0L) { (bds + 1UL)->bd_bucket = (struct cfs_hash_bucket *)0; return; } else { } tmp___0 = ldv__builtin_expect((unsigned int )hs->hs_rehash_bits == 0U, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_dual_bd_get"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 836; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_rehash_bits != 0"); lbug_with_loc(& __msg_data); } else { } cfs_hash_bd_from_key(hs, hs->hs_rehash_buckets, (unsigned int )hs->hs_rehash_bits, key, bds + 1UL); cfs_hash_bd_order(bds, bds + 1UL); return; } } static char const __kstrtab_cfs_hash_dual_bd_get[21U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'g', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_get ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_get = {(unsigned long )(& cfs_hash_dual_bd_get), (char const *)(& __kstrtab_cfs_hash_dual_bd_get)}; void cfs_hash_dual_bd_lock(struct cfs_hash *hs , struct cfs_hash_bd *bds , int excl ) { { cfs_hash_multi_bd_lock(hs, bds, 2U, excl); return; } } static char const __kstrtab_cfs_hash_dual_bd_lock[22U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'l', 'o', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_lock ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_lock = {(unsigned long )(& cfs_hash_dual_bd_lock), (char const *)(& __kstrtab_cfs_hash_dual_bd_lock)}; void cfs_hash_dual_bd_unlock(struct cfs_hash *hs , struct cfs_hash_bd *bds , int excl ) { { cfs_hash_multi_bd_unlock(hs, bds, 2U, excl); return; } } static char const __kstrtab_cfs_hash_dual_bd_unlock[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'u', 'n', 'l', 'o', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_unlock ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_unlock = {(unsigned long )(& cfs_hash_dual_bd_unlock), (char const *)(& __kstrtab_cfs_hash_dual_bd_unlock)}; struct hlist_node *cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key ) { struct hlist_node *tmp ; { tmp = cfs_hash_multi_bd_lookup_locked(hs, bds, 2U, key); return (tmp); } } static char const __kstrtab_cfs_hash_dual_bd_lookup_locked[31U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'l', 'o', 'o', 'k', 'u', 'p', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_lookup_locked ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_lookup_locked = {(unsigned long )(& cfs_hash_dual_bd_lookup_locked), (char const *)(& __kstrtab_cfs_hash_dual_bd_lookup_locked)}; struct hlist_node *cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key , struct hlist_node *hnode , int noref ) { struct hlist_node *tmp ; { tmp = cfs_hash_multi_bd_findadd_locked(hs, bds, 2U, key, hnode, noref); return (tmp); } } static char const __kstrtab_cfs_hash_dual_bd_findadd_locked[32U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'f', 'i', 'n', 'd', 'a', 'd', 'd', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_findadd_locked ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_findadd_locked = {(unsigned long )(& cfs_hash_dual_bd_findadd_locked), (char const *)(& __kstrtab_cfs_hash_dual_bd_findadd_locked)}; struct hlist_node *cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs , struct cfs_hash_bd *bds , void const *key , struct hlist_node *hnode ) { struct hlist_node *tmp ; { tmp = cfs_hash_multi_bd_finddel_locked(hs, bds, 2U, key, hnode); return (tmp); } } static char const __kstrtab_cfs_hash_dual_bd_finddel_locked[32U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'u', 'a', 'l', '_', 'b', 'd', '_', 'f', 'i', 'n', 'd', 'd', 'e', 'l', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_finddel_locked ; struct kernel_symbol const __ksymtab_cfs_hash_dual_bd_finddel_locked = {(unsigned long )(& cfs_hash_dual_bd_finddel_locked), (char const *)(& __kstrtab_cfs_hash_dual_bd_finddel_locked)}; static void cfs_hash_buckets_free(struct cfs_hash_bucket **buckets , int bkt_size , int prev_size , int size ) { int i ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int s___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; { i = prev_size; goto ldv_50556; ldv_50555: ; if ((unsigned long )*(buckets + (unsigned long )i) != (unsigned long )((struct cfs_hash_bucket *)0)) { s = bkt_size; tmp___0 = ldv__builtin_expect((unsigned long )*(buckets + (unsigned long )i) == (unsigned long )((struct cfs_hash_bucket *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1U); if (tmp != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_buckets_free"; msgdata.msg_line = 892; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'buckets[i]\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 892); } else { } goto ldv_50553; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___0.msg_fn = "cfs_hash_buckets_free"; msgdata___0.msg_line = 892; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'buckets[i]\': %d at %p (tot %d).\n", s, *(buckets + (unsigned long )i), tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)*(buckets + (unsigned long )i)); } else { kfree((void const *)*(buckets + (unsigned long )i)); } ldv_50553: ; } else { } i = i + 1; ldv_50556: ; if (i < size) { goto ldv_50555; } else { } s___0 = (int )((unsigned int )size * 8U); tmp___5 = ldv__builtin_expect((unsigned long )buckets == (unsigned long )((struct cfs_hash_bucket **)0), 0L); if (tmp___5 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 1U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___1.msg_fn = "cfs_hash_buckets_free"; msgdata___1.msg_line = 895; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'buckets\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 895); } else { } goto ldv_50561; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___7 = cfs_cdebug_show(16U, 1U); if (tmp___7 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___2.msg_fn = "cfs_hash_buckets_free"; msgdata___2.msg_line = 895; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'buckets\': %d at %p (tot %d).\n", s___0, buckets, tmp___6); } else { } tmp___8 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___8 != 0L) { vfree((void const *)buckets); } else { kfree((void const *)buckets); } ldv_50561: ; return; } } static struct cfs_hash_bucket **cfs_hash_buckets_realloc(struct cfs_hash *hs , struct cfs_hash_bucket **old_bkts , unsigned int old_size , unsigned int new_size ) { struct cfs_hash_bucket **new_bkts ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___8 ; int tmp___9 ; long tmp___10 ; unsigned int _min1 ; unsigned int _min2 ; struct hlist_head *hhead ; struct cfs_hash_bd bd ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___11 ; int tmp___12 ; long tmp___13 ; int tmp___15 ; void *tmp___16 ; int tmp___17 ; void *tmp___18 ; void *tmp___19 ; int tmp___20 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___21 ; int tmp___22 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___23 ; int tmp___24 ; int tmp___25 ; int tmp___26 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___27 ; int tmp___28 ; int tmp___29 ; long tmp___30 ; int tmp___31 ; int tmp___32 ; int tmp___33 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct libcfs_debug_msg_data msgdata___5 ; int tmp___34 ; int tmp___35 ; { tmp = ldv__builtin_expect((long )(old_size != 0U && (unsigned long )old_bkts == (unsigned long )((struct cfs_hash_bucket **)0)), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_buckets_realloc"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 910; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"old_size == 0 || old_bkts != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } if ((unsigned long )old_bkts != (unsigned long )((struct cfs_hash_bucket **)0) && old_size == new_size) { return (old_bkts); } else { } tmp___0 = preempt_count(); tmp___1 = ldv__builtin_expect((long )(((unsigned long )tmp___0 & 2096896UL) != 0UL && 1), 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___0.msg_fn = "cfs_hash_buckets_realloc"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 915; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(new_bkts[0]) * new_size)) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )new_size * 8UL <= 8192UL) { tmp___2 = kmalloc((unsigned long )new_size * 8UL, 80U); tmp___4 = tmp___2; } else { tmp___3 = vmalloc((unsigned long )new_size * 8UL); tmp___4 = tmp___3; } new_bkts = (struct cfs_hash_bucket **)tmp___4; tmp___10 = ldv__builtin_expect((unsigned long )new_bkts == (unsigned long )((struct cfs_hash_bucket **)0), 0L); if (tmp___10 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1U); if (tmp___5 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_buckets_realloc"; msgdata.msg_line = 915; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(new_bkts)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 915, (int )(new_size * 8U)); } else { } tmp___7 = cfs_cdebug_show(131072U, 1U); if (tmp___7 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___0.msg_fn = "cfs_hash_buckets_realloc"; msgdata___0.msg_line = 915; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___6); } else { } } else { memset((void *)new_bkts, 0, (unsigned long )new_size * 8UL); atomic_add((int )(new_size * 8U), & libcfs_kmemory); tmp___9 = cfs_cdebug_show(16U, 1U); if (tmp___9 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___1.msg_fn = "cfs_hash_buckets_realloc"; msgdata___1.msg_line = 915; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___8 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(new_bkts)\': %d at %p (tot %d).\n", (int )(new_size * 8U), new_bkts, tmp___8); } else { } } if ((unsigned long )new_bkts == (unsigned long )((struct cfs_hash_bucket **)0)) { return ((struct cfs_hash_bucket **)0); } else { } if ((unsigned long )old_bkts != (unsigned long )((struct cfs_hash_bucket **)0)) { _min1 = old_size; _min2 = new_size; memcpy((void *)new_bkts, (void const *)old_bkts, (unsigned long )(_min1 < _min2 ? _min1 : _min2) * 8UL); } else { } i = (int )old_size; goto ldv_50598; ldv_50597: tmp___11 = preempt_count(); if (((unsigned long )tmp___11 & 2096896UL) != 0UL) { cfs_hash_bkt_size(hs); tmp___12 = 1; } else { tmp___12 = 0; } tmp___13 = ldv__builtin_expect((long )tmp___12, 0L); if (tmp___13 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___1.msg_fn = "cfs_hash_buckets_realloc"; __msg_data___1.msg_subsys = 1; __msg_data___1.msg_line = 928; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((cfs_hash_bkt_size(hs))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___1); } else { } tmp___20 = cfs_hash_bkt_size(hs); if (tmp___20 <= 8192) { tmp___15 = cfs_hash_bkt_size(hs); tmp___16 = kmalloc((size_t )tmp___15, 80U); tmp___19 = tmp___16; } else { tmp___17 = cfs_hash_bkt_size(hs); tmp___18 = vmalloc((unsigned long )tmp___17); tmp___19 = tmp___18; } *(new_bkts + (unsigned long )i) = (struct cfs_hash_bucket *)tmp___19; tmp___30 = ldv__builtin_expect((unsigned long )*(new_bkts + (unsigned long )i) == (unsigned long )((struct cfs_hash_bucket *)0), 0L); if (tmp___30 != 0L) { tmp___22 = cfs_cdebug_show(131072U, 1U); if (tmp___22 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___2.msg_fn = "cfs_hash_buckets_realloc"; msgdata___2.msg_line = 928; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; tmp___21 = cfs_hash_bkt_size(hs); libcfs_debug_msg(& msgdata___2, "LNET: out of memory at %s:%d (tried to alloc \'(new_bkts[i])\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 928, tmp___21); } else { } tmp___24 = cfs_cdebug_show(131072U, 1U); if (tmp___24 != 0) { msgdata___3.msg_subsys = 1; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___3.msg_fn = "cfs_hash_buckets_realloc"; msgdata___3.msg_line = 928; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___23 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "LNET: %d total bytes allocated by lnet\n", tmp___23); } else { } } else { tmp___25 = cfs_hash_bkt_size(hs); memset((void *)*(new_bkts + (unsigned long )i), 0, (size_t )tmp___25); tmp___26 = cfs_hash_bkt_size(hs); atomic_add(tmp___26, & libcfs_kmemory); tmp___29 = cfs_cdebug_show(16U, 1U); if (tmp___29 != 0) { msgdata___4.msg_subsys = 1; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___4.msg_fn = "cfs_hash_buckets_realloc"; msgdata___4.msg_line = 928; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___27 = atomic_read((atomic_t const *)(& libcfs_kmemory)); tmp___28 = cfs_hash_bkt_size(hs); libcfs_debug_msg(& msgdata___4, "alloc \'(new_bkts[i])\': %d at %p (tot %d).\n", tmp___28, *(new_bkts + (unsigned long )i), tmp___27); } else { } } if ((unsigned long )*(new_bkts + (unsigned long )i) == (unsigned long )((struct cfs_hash_bucket *)0)) { tmp___31 = cfs_hash_bkt_size(hs); cfs_hash_buckets_free(new_bkts, tmp___31, (int )old_size, (int )new_size); return ((struct cfs_hash_bucket **)0); } else { } (*(new_bkts + (unsigned long )i))->hsb_index = (unsigned int )i; (*(new_bkts + (unsigned long )i))->hsb_version = 1U; (*(new_bkts + (unsigned long )i))->hsb_depmax = -1; bd.bd_bucket = *(new_bkts + (unsigned long )i); bd.bd_offset = 0U; goto ldv_50591; ldv_50590: hhead->first = (struct hlist_node *)0; bd.bd_offset = bd.bd_offset + 1U; ldv_50591: ; if (bd.bd_offset >> (int )hs->hs_bkt_bits == 0U) { hhead = cfs_hash_bd_hhead(hs, & bd); if ((unsigned long )hhead != (unsigned long )((struct hlist_head *)0)) { goto ldv_50590; } else { goto ldv_50592; } } else { } ldv_50592: tmp___32 = cfs_hash_with_no_lock(hs); if (tmp___32 != 0) { goto ldv_50593; } else { tmp___33 = cfs_hash_with_no_bktlock(hs); if (tmp___33 != 0) { goto ldv_50593; } else { } } tmp___35 = cfs_hash_with_rw_bktlock(hs); if (tmp___35 != 0) { __rwlock_init(& (*(new_bkts + (unsigned long )i))->hsb_lock.rw, "&new_bkts[i]->hsb_lock.rw", & __key); } else { tmp___34 = cfs_hash_with_spin_bktlock(hs); if (tmp___34 != 0) { spinlock_check(& (*(new_bkts + (unsigned long )i))->hsb_lock.spin); __raw_spin_lock_init(& (*(new_bkts + (unsigned long )i))->hsb_lock.spin.__annonCompField17.rlock, "&(&new_bkts[i]->hsb_lock.spin)->rlock", & __key___0); } else { msgdata___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___5.msg_fn = "cfs_hash_buckets_realloc"; msgdata___5.msg_subsys = 1; msgdata___5.msg_line = 951; msgdata___5.msg_mask = 0; msgdata___5.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___5.msg_mask = 262144; lbug_with_loc(& msgdata___5); } } ldv_50593: i = i + 1; ldv_50598: ; if ((unsigned int )i < new_size) { goto ldv_50597; } else { } return (new_bkts); } } static int cfs_hash_rehash_worker(cfs_workitem_t *wi ) ; __inline static void cfs_hash_depth_wi_init(struct cfs_hash *hs ) { { return; } } struct cfs_hash *cfs_hash_create(char *name , unsigned int cur_bits , unsigned int max_bits , unsigned int bkt_bits , unsigned int extra_bytes , unsigned int min_theta , unsigned int max_theta , cfs_hash_ops_t *ops , unsigned int flags ) { struct cfs_hash *hs ; int len ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___5 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___6 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___7 ; long tmp___7 ; struct libcfs_debug_msg_data __msg_data___8 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___9 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___10 ; long tmp___10 ; struct libcfs_debug_msg_data __msg_data___11 ; long tmp___11 ; struct libcfs_debug_msg_data __msg_data___12 ; long tmp___12 ; struct libcfs_debug_msg_data __msg_data___13 ; int tmp___13 ; long tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___18 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___19 ; int tmp___20 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___21 ; int tmp___22 ; long tmp___23 ; int tmp___24 ; int s ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___25 ; long tmp___26 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___27 ; int tmp___28 ; long tmp___29 ; { switch (42) { case 1: ; case 0: ; goto ldv_50623; } ldv_50623: tmp = ldv__builtin_expect((unsigned long )name == (unsigned long )((char *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_create"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1029; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"name != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect((unsigned long )ops == (unsigned long )((cfs_hash_ops_t *)0), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___0.msg_fn = "cfs_hash_create"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 1030; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"ops != ((void *)0)"); lbug_with_loc(& __msg_data___0); } else { } tmp___1 = ldv__builtin_expect((unsigned long )ops->hs_key == (unsigned long )((void *(*)(struct hlist_node * ))0), 0L); if (tmp___1 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___1.msg_fn = "cfs_hash_create"; __msg_data___1.msg_subsys = 1; __msg_data___1.msg_line = 1031; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_key"); lbug_with_loc(& __msg_data___1); } else { } tmp___2 = ldv__builtin_expect((unsigned long )ops->hs_hash == (unsigned long )((unsigned int (*)(struct cfs_hash * , void const * , unsigned int ))0), 0L); if (tmp___2 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___2.msg_fn = "cfs_hash_create"; __msg_data___2.msg_subsys = 1; __msg_data___2.msg_line = 1032; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_hash"); lbug_with_loc(& __msg_data___2); } else { } tmp___3 = ldv__builtin_expect((unsigned long )ops->hs_object == (unsigned long )((void *(*)(struct hlist_node * ))0), 0L); if (tmp___3 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___3.msg_fn = "cfs_hash_create"; __msg_data___3.msg_subsys = 1; __msg_data___3.msg_line = 1033; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_object"); lbug_with_loc(& __msg_data___3); } else { } tmp___4 = ldv__builtin_expect((unsigned long )ops->hs_keycmp == (unsigned long )((int (*)(void const * , struct hlist_node * ))0), 0L); if (tmp___4 != 0L) { __msg_data___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___4.msg_fn = "cfs_hash_create"; __msg_data___4.msg_subsys = 1; __msg_data___4.msg_line = 1034; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_keycmp"); lbug_with_loc(& __msg_data___4); } else { } tmp___5 = ldv__builtin_expect((unsigned long )ops->hs_get == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0), 0L); if (tmp___5 != 0L) { __msg_data___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___5.msg_fn = "cfs_hash_create"; __msg_data___5.msg_subsys = 1; __msg_data___5.msg_line = 1035; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_get != ((void *)0)"); lbug_with_loc(& __msg_data___5); } else { } tmp___6 = ldv__builtin_expect((unsigned long )ops->hs_put_locked == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0), 0L); if (tmp___6 != 0L) { __msg_data___6.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___6.msg_fn = "cfs_hash_create"; __msg_data___6.msg_subsys = 1; __msg_data___6.msg_line = 1036; __msg_data___6.msg_mask = 0; __msg_data___6.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___6.msg_mask = 262144; libcfs_debug_msg(& __msg_data___6, "ASSERTION( %s ) failed: \n", (char *)"ops->hs_put_locked != ((void *)0)"); lbug_with_loc(& __msg_data___6); } else { } if ((flags & 512U) != 0U) { flags = flags | 128U; } else { } tmp___7 = ldv__builtin_expect(cur_bits == 0U, 0L); if (tmp___7 != 0L) { __msg_data___7.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___7.msg_fn = "cfs_hash_create"; __msg_data___7.msg_subsys = 1; __msg_data___7.msg_line = 1041; __msg_data___7.msg_mask = 0; __msg_data___7.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___7.msg_mask = 262144; libcfs_debug_msg(& __msg_data___7, "ASSERTION( %s ) failed: \n", (char *)"cur_bits > 0"); lbug_with_loc(& __msg_data___7); } else { } tmp___8 = ldv__builtin_expect(cur_bits < bkt_bits, 0L); if (tmp___8 != 0L) { __msg_data___8.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___8.msg_fn = "cfs_hash_create"; __msg_data___8.msg_subsys = 1; __msg_data___8.msg_line = 1042; __msg_data___8.msg_mask = 0; __msg_data___8.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___8.msg_mask = 262144; libcfs_debug_msg(& __msg_data___8, "ASSERTION( %s ) failed: \n", (char *)"cur_bits >= bkt_bits"); lbug_with_loc(& __msg_data___8); } else { } tmp___9 = ldv__builtin_expect((long )(max_bits < cur_bits || max_bits > 30U), 0L); if (tmp___9 != 0L) { __msg_data___9.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___9.msg_fn = "cfs_hash_create"; __msg_data___9.msg_subsys = 1; __msg_data___9.msg_line = 1043; __msg_data___9.msg_mask = 0; __msg_data___9.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___9.msg_mask = 262144; libcfs_debug_msg(& __msg_data___9, "ASSERTION( %s ) failed: \n", (char *)"max_bits >= cur_bits && max_bits < 31"); lbug_with_loc(& __msg_data___9); } else { } tmp___10 = ldv__builtin_expect((long )((flags & 512U) == 0U && cur_bits != max_bits), 0L); if (tmp___10 != 0L) { __msg_data___10.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___10.msg_fn = "cfs_hash_create"; __msg_data___10.msg_subsys = 1; __msg_data___10.msg_line = 1044; __msg_data___10.msg_mask = 0; __msg_data___10.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___10.msg_mask = 262144; libcfs_debug_msg(& __msg_data___10, "ASSERTION( %s ) failed: \n", (char *)"(!((flags & CFS_HASH_REHASH) == 0) || (cur_bits == max_bits))"); lbug_with_loc(& __msg_data___10); } else { } tmp___11 = ldv__builtin_expect((long )((flags & 512U) != 0U && (int )flags & 1), 0L); if (tmp___11 != 0L) { __msg_data___11.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___11.msg_fn = "cfs_hash_create"; __msg_data___11.msg_subsys = 1; __msg_data___11.msg_line = 1046; __msg_data___11.msg_mask = 0; __msg_data___11.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___11.msg_mask = 262144; libcfs_debug_msg(& __msg_data___11, "ASSERTION( %s ) failed: \n", (char *)"(!((flags & CFS_HASH_REHASH) != 0) || ((flags & CFS_HASH_NO_LOCK) == 0))"); lbug_with_loc(& __msg_data___11); } else { } tmp___12 = ldv__builtin_expect((long )((flags & 256U) != 0U && (unsigned long )ops->hs_keycpy == (unsigned long )((void (*)(struct hlist_node * , void * ))0)), 0L); if (tmp___12 != 0L) { __msg_data___12.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___12.msg_fn = "cfs_hash_create"; __msg_data___12.msg_subsys = 1; __msg_data___12.msg_line = 1048; __msg_data___12.msg_mask = 0; __msg_data___12.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___12.msg_mask = 262144; libcfs_debug_msg(& __msg_data___12, "ASSERTION( %s ) failed: \n", (char *)"(!((flags & CFS_HASH_REHASH_KEY) != 0) || (ops->hs_keycpy != ((void *)0)))"); lbug_with_loc(& __msg_data___12); } else { } len = (flags & 64U) == 0U ? 16 : 64; tmp___13 = preempt_count(); tmp___14 = ldv__builtin_expect((long )(((unsigned long )tmp___13 & 2096896UL) != 0UL && 1), 0L); if (tmp___14 != 0L) { __msg_data___13.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___13.msg_fn = "cfs_hash_create"; __msg_data___13.msg_subsys = 1; __msg_data___13.msg_line = 1052; __msg_data___13.msg_mask = 0; __msg_data___13.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___13.msg_mask = 262144; libcfs_debug_msg(& __msg_data___13, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((__builtin_offsetof(struct cfs_hash, hs_name[len]))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___13); } else { } if ((unsigned long )len + 192UL <= 8192UL) { tmp___15 = kmalloc((unsigned long )len + 192UL, 80U); tmp___17 = tmp___15; } else { tmp___16 = vmalloc((unsigned long )len + 192UL); tmp___17 = tmp___16; } hs = (struct cfs_hash *)tmp___17; tmp___23 = ldv__builtin_expect((unsigned long )hs == (unsigned long )((struct cfs_hash *)0), 0L); if (tmp___23 != 0L) { tmp___18 = cfs_cdebug_show(131072U, 1U); if (tmp___18 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_create"; msgdata.msg_line = 1052; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(hs)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1052, (int )((unsigned int )len + 192U)); } else { } tmp___20 = cfs_cdebug_show(131072U, 1U); if (tmp___20 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___0.msg_fn = "cfs_hash_create"; msgdata___0.msg_line = 1052; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___19 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___19); } else { } } else { memset((void *)hs, 0, (unsigned long )len + 192UL); atomic_add((int )((unsigned int )len + 192U), & libcfs_kmemory); tmp___22 = cfs_cdebug_show(16U, 1U); if (tmp___22 != 0) { msgdata___1.msg_subsys = 1; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___1.msg_fn = "cfs_hash_create"; msgdata___1.msg_line = 1052; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___21 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(hs)\': %d at %p (tot %d).\n", (int )((unsigned int )len + 192U), hs, tmp___21); } else { } } if ((unsigned long )hs == (unsigned long )((struct cfs_hash *)0)) { return ((struct cfs_hash *)0); } else { } strncpy((char *)(& hs->hs_name), (char const *)name, (__kernel_size_t )len); hs->hs_name[len + -1] = 0; hs->hs_flags = (__u16 )flags; atomic_set(& hs->hs_refcount, 1); atomic_set(& hs->hs_count, 0); cfs_hash_lock_setup(hs); cfs_hash_hlist_setup(hs); hs->hs_cur_bits = (unsigned char )cur_bits; hs->hs_min_bits = (unsigned char )cur_bits; hs->hs_max_bits = (unsigned char )max_bits; hs->hs_bkt_bits = (unsigned char )bkt_bits; hs->hs_ops = ops; hs->hs_extra_bytes = (__u16 )extra_bytes; hs->hs_rehash_bits = 0U; cfs_wi_init(& hs->hs_rehash_wi, (void *)hs, & cfs_hash_rehash_worker); cfs_hash_depth_wi_init(hs); tmp___24 = cfs_hash_with_rehash(hs); if (tmp___24 != 0) { __cfs_hash_set_theta(hs, (int )min_theta, (int )max_theta); } else { } hs->hs_buckets = cfs_hash_buckets_realloc(hs, (struct cfs_hash_bucket **)0, 0U, 1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits)); if ((unsigned long )hs->hs_buckets != (unsigned long )((struct cfs_hash_bucket **)0)) { return (hs); } else { } s = (int )((unsigned int )len + 192U); tmp___26 = ldv__builtin_expect((unsigned long )hs == (unsigned long )((struct cfs_hash *)0), 0L); if (tmp___26 != 0L) { tmp___25 = cfs_cdebug_show(131072U, 1U); if (tmp___25 != 0) { msgdata___2.msg_subsys = 1; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___2.msg_fn = "cfs_hash_create"; msgdata___2.msg_line = 1085; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LIBCFS: free NULL \'hs\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1085); } else { } goto ldv_50648; } else { } atomic_sub(s, & libcfs_kmemory); tmp___28 = cfs_cdebug_show(16U, 1U); if (tmp___28 != 0) { msgdata___3.msg_subsys = 1; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___3.msg_fn = "cfs_hash_create"; msgdata___3.msg_line = 1085; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 16; tmp___27 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "kfreed \'hs\': %d at %p (tot %d).\n", s, hs, tmp___27); } else { } tmp___29 = ldv__builtin_expect(s > 8192, 0L); if (tmp___29 != 0L) { vfree((void const *)hs); } else { kfree((void const *)hs); } ldv_50648: ; return ((struct cfs_hash *)0); } } static char const __kstrtab_cfs_hash_create[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'c', 'r', 'e', 'a', 't', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_create ; struct kernel_symbol const __ksymtab_cfs_hash_create = {(unsigned long )(& cfs_hash_create), (char const *)(& __kstrtab_cfs_hash_create)}; static void cfs_hash_destroy(struct cfs_hash *hs ) { struct hlist_node *hnode ; struct hlist_node *pos ; struct cfs_hash_bd bd ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___5 ; struct hlist_head *hhead ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___6 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___7 ; long tmp___8 ; struct libcfs_debug_msg_data __msg_data___4 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___5 ; int tmp___10 ; long tmp___11 ; int tmp___12 ; int tmp___13 ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___14 ; long tmp___15 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___16 ; int tmp___17 ; long tmp___18 ; { tmp = ldv__builtin_expect((unsigned long )hs == (unsigned long )((struct cfs_hash *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_destroy"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1101; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = cfs_hash_is_exiting(hs); if (tmp___0 != 0) { tmp___2 = 1; } else { tmp___1 = cfs_hash_is_iterating(hs); if (tmp___1 != 0) { tmp___2 = 1; } else { tmp___2 = 0; } } tmp___3 = ldv__builtin_expect((long )tmp___2, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___0.msg_fn = "cfs_hash_destroy"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 1103; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!cfs_hash_is_exiting(hs) && !cfs_hash_is_iterating(hs)"); lbug_with_loc(& __msg_data___0); } else { } hs->hs_exiting = 1U; tmp___4 = cfs_hash_with_rehash(hs); if (tmp___4 != 0) { cfs_hash_rehash_cancel(hs); } else { } cfs_hash_depth_wi_init(hs); tmp___5 = ldv__builtin_expect((long )((unsigned long )hs->hs_buckets == (unsigned long )((struct cfs_hash_bucket **)0) || (unsigned long )hs->hs_rehash_buckets != (unsigned long )((struct cfs_hash_bucket **)0)), 0L); if (tmp___5 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___1.msg_fn = "cfs_hash_destroy"; __msg_data___1.msg_subsys = 1; __msg_data___1.msg_line = 1116; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_buckets != ((void *)0) && hs->hs_rehash_buckets == ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } i = 0; goto ldv_50689; ldv_50688: tmp___6 = ldv__builtin_expect((unsigned long )bd.bd_bucket == (unsigned long )((struct cfs_hash_bucket *)0), 0L); if (tmp___6 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___2.msg_fn = "cfs_hash_destroy"; __msg_data___2.msg_subsys = 1; __msg_data___2.msg_line = 1121; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"bd.bd_bucket != ((void *)0)"); lbug_with_loc(& __msg_data___2); } else { } cfs_hash_bd_lock(hs, & bd, 1); bd.bd_offset = 0U; goto ldv_50684; ldv_50683: hnode = hhead->first; goto ldv_50681; ldv_50680: tmp___7 = cfs_hash_with_assert_empty(hs); tmp___8 = ldv__builtin_expect(tmp___7 != 0, 0L); if (tmp___8 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___3.msg_fn = "cfs_hash_destroy"; __msg_data___3.msg_subsys = 1; __msg_data___3.msg_line = 1130; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: hash %s bucket %u(%u) is not empty: %u items left\n", (char *)"!cfs_hash_with_assert_empty(hs)", (char *)(& hs->hs_name), (bd.bd_bucket)->hsb_index, bd.bd_offset, (bd.bd_bucket)->hsb_count); lbug_with_loc(& __msg_data___3); } else { } cfs_hash_bd_del_locked(hs, & bd, hnode); cfs_hash_exit(hs, hnode); hnode = pos; ldv_50681: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { pos = hnode->next; goto ldv_50680; } else { } bd.bd_offset = bd.bd_offset + 1U; ldv_50684: ; if (bd.bd_offset >> (int )hs->hs_bkt_bits == 0U) { hhead = cfs_hash_bd_hhead(hs, & bd); if ((unsigned long )hhead != (unsigned long )((struct hlist_head *)0)) { goto ldv_50683; } else { goto ldv_50685; } } else { } ldv_50685: tmp___9 = ldv__builtin_expect((bd.bd_bucket)->hsb_count != 0U, 0L); if (tmp___9 != 0L) { __msg_data___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___4.msg_fn = "cfs_hash_destroy"; __msg_data___4.msg_subsys = 1; __msg_data___4.msg_line = 1137; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"bd.bd_bucket->hsb_count == 0"); lbug_with_loc(& __msg_data___4); } else { } cfs_hash_bd_unlock(hs, & bd, 1); ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1139, 0); _cond_resched(); i = i + 1; ldv_50689: ; if ((unsigned int )i >> ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits) == 0U) { bd.bd_bucket = *(hs->hs_buckets + (unsigned long )i); if ((unsigned long )bd.bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50688; } else { goto ldv_50690; } } else { } ldv_50690: tmp___10 = atomic_read((atomic_t const *)(& hs->hs_count)); tmp___11 = ldv__builtin_expect(tmp___10 != 0, 0L); if (tmp___11 != 0L) { __msg_data___5.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___5.msg_fn = "cfs_hash_destroy"; __msg_data___5.msg_subsys = 1; __msg_data___5.msg_line = 1142; __msg_data___5.msg_mask = 0; __msg_data___5.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___5.msg_mask = 262144; libcfs_debug_msg(& __msg_data___5, "ASSERTION( %s ) failed: \n", (char *)"atomic_read(&hs->hs_count) == 0"); lbug_with_loc(& __msg_data___5); } else { } tmp___12 = cfs_hash_bkt_size(hs); cfs_hash_buckets_free(hs->hs_buckets, tmp___12, 0, (int )(1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits))); tmp___13 = cfs_hash_with_bigname(hs); i = tmp___13 != 0 ? 64 : 16; s = (int )((unsigned int )i + 192U); tmp___15 = ldv__builtin_expect((unsigned long )hs == (unsigned long )((struct cfs_hash *)0), 0L); if (tmp___15 != 0L) { tmp___14 = cfs_cdebug_show(131072U, 1U); if (tmp___14 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_destroy"; msgdata.msg_line = 1148; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'hs\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1148); } else { } goto ldv_50695; } else { } atomic_sub(s, & libcfs_kmemory); tmp___17 = cfs_cdebug_show(16U, 1U); if (tmp___17 != 0) { msgdata___0.msg_subsys = 1; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata___0.msg_fn = "cfs_hash_destroy"; msgdata___0.msg_line = 1148; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___16 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'hs\': %d at %p (tot %d).\n", s, hs, tmp___16); } else { } tmp___18 = ldv__builtin_expect(s > 8192, 0L); if (tmp___18 != 0L) { vfree((void const *)hs); } else { kfree((void const *)hs); } ldv_50695: ; return; } } struct cfs_hash *cfs_hash_getref(struct cfs_hash *hs ) { int tmp ; { tmp = atomic_add_unless(& hs->hs_refcount, 1, 0); if (tmp != 0) { return (hs); } else { } return ((struct cfs_hash *)0); } } static char const __kstrtab_cfs_hash_getref[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'g', 'e', 't', 'r', 'e', 'f', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_getref ; struct kernel_symbol const __ksymtab_cfs_hash_getref = {(unsigned long )(& cfs_hash_getref), (char const *)(& __kstrtab_cfs_hash_getref)}; void cfs_hash_putref(struct cfs_hash *hs ) { int tmp ; { tmp = atomic_dec_and_test(& hs->hs_refcount); if (tmp != 0) { cfs_hash_destroy(hs); } else { } return; } } static char const __kstrtab_cfs_hash_putref[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'p', 'u', 't', 'r', 'e', 'f', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_putref ; struct kernel_symbol const __ksymtab_cfs_hash_putref = {(unsigned long )(& cfs_hash_putref), (char const *)(& __kstrtab_cfs_hash_putref)}; __inline static int cfs_hash_rehash_bits(struct cfs_hash *hs ) { int tmp ; int tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; long tmp___4 ; int tmp___5 ; long tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; { tmp = cfs_hash_with_no_lock(hs); if (tmp != 0) { return (-95); } else { tmp___0 = cfs_hash_with_rehash(hs); if (tmp___0 == 0) { return (-95); } else { } } tmp___1 = cfs_hash_is_exiting(hs); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { return (-3); } else { } tmp___3 = cfs_hash_is_rehashing(hs); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { return (-114); } else { } tmp___5 = cfs_hash_is_iterating(hs); tmp___6 = ldv__builtin_expect(tmp___5 != 0, 0L); if (tmp___6 != 0L) { return (-11); } else { } if ((int )hs->hs_cur_bits < (int )hs->hs_max_bits) { tmp___7 = __cfs_hash_theta(hs); if (tmp___7 > (int )hs->hs_max_theta) { return ((int )hs->hs_cur_bits + 1); } else { } } else { } tmp___8 = cfs_hash_with_shrink(hs); if (tmp___8 == 0) { return (0); } else { } if ((int )hs->hs_cur_bits > (int )hs->hs_min_bits) { tmp___9 = __cfs_hash_theta(hs); if (tmp___9 < (int )hs->hs_min_theta) { return ((int )hs->hs_cur_bits + -1); } else { } } else { } return (0); } } __inline static int cfs_hash_rehash_inline(struct cfs_hash *hs ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = cfs_hash_with_nblk_change(hs); if (tmp == 0) { tmp___0 = atomic_read((atomic_t const *)(& hs->hs_count)); if (tmp___0 <= 1023) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } return (tmp___1); } } void cfs_hash_add(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { struct cfs_hash_bd bd ; int bits ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; { tmp = hlist_unhashed((struct hlist_node const *)hnode); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_add"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1220; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hlist_unhashed(hnode)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_lock(hs, 0); cfs_hash_bd_get_and_lock(hs, key, & bd, 1); cfs_hash_key_validate(hs, key, hnode); cfs_hash_bd_add_locked(hs, & bd, hnode); cfs_hash_bd_unlock(hs, & bd, 1); bits = cfs_hash_rehash_bits(hs); cfs_hash_unlock(hs, 0); if (bits > 0) { tmp___1 = cfs_hash_rehash_inline(hs); cfs_hash_rehash(hs, tmp___1); } else { } return; } } static char const __kstrtab_cfs_hash_add[13U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'a', 'd', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_add ; struct kernel_symbol const __ksymtab_cfs_hash_add = {(unsigned long )(& cfs_hash_add), (char const *)(& __kstrtab_cfs_hash_add)}; static struct hlist_node *cfs_hash_find_or_add(struct cfs_hash *hs , void const *key , struct hlist_node *hnode , int noref ) { struct hlist_node *ehnode ; struct cfs_hash_bd bds[2U] ; int bits ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; { bits = 0; tmp = hlist_unhashed((struct hlist_node const *)hnode); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_find_or_add"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1245; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hlist_unhashed(hnode)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_lock(hs, 0); cfs_hash_dual_bd_get_and_lock(hs, key, (struct cfs_hash_bd *)(& bds), 1); cfs_hash_key_validate(hs, key, hnode); ehnode = cfs_hash_dual_bd_findadd_locked(hs, (struct cfs_hash_bd *)(& bds), key, hnode, noref); cfs_hash_dual_bd_unlock(hs, (struct cfs_hash_bd *)(& bds), 1); if ((unsigned long )ehnode == (unsigned long )hnode) { bits = cfs_hash_rehash_bits(hs); } else { } cfs_hash_unlock(hs, 0); if (bits > 0) { tmp___1 = cfs_hash_rehash_inline(hs); cfs_hash_rehash(hs, tmp___1); } else { } return (ehnode); } } int cfs_hash_add_unique(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { struct hlist_node *tmp ; { tmp = cfs_hash_find_or_add(hs, key, hnode, 1); return ((unsigned long )tmp != (unsigned long )hnode ? -114 : 0); } } static char const __kstrtab_cfs_hash_add_unique[20U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'a', 'd', 'd', '_', 'u', 'n', 'i', 'q', 'u', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_add_unique ; struct kernel_symbol const __ksymtab_cfs_hash_add_unique = {(unsigned long )(& cfs_hash_add_unique), (char const *)(& __kstrtab_cfs_hash_add_unique)}; void *cfs_hash_findadd_unique(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { void *tmp ; { hnode = cfs_hash_find_or_add(hs, key, hnode, 0); tmp = cfs_hash_object(hs, hnode); return (tmp); } } static char const __kstrtab_cfs_hash_findadd_unique[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'i', 'n', 'd', 'a', 'd', 'd', '_', 'u', 'n', 'i', 'q', 'u', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_findadd_unique ; struct kernel_symbol const __ksymtab_cfs_hash_findadd_unique = {(unsigned long )(& cfs_hash_findadd_unique), (char const *)(& __kstrtab_cfs_hash_findadd_unique)}; void *cfs_hash_del(struct cfs_hash *hs , void const *key , struct hlist_node *hnode ) { void *obj ; int bits ; struct cfs_hash_bd bds[2U] ; int tmp ; int tmp___0 ; { obj = (void *)0; bits = 0; cfs_hash_lock(hs, 0); cfs_hash_dual_bd_get_and_lock(hs, key, (struct cfs_hash_bd *)(& bds), 1); if ((unsigned long )hnode == (unsigned long )((struct hlist_node *)0)) { goto _L; } else { tmp = hlist_unhashed((struct hlist_node const *)hnode); if (tmp == 0) { _L: /* CIL Label */ if ((unsigned long )bds[1].bd_bucket == (unsigned long )((struct cfs_hash_bucket *)0) && (unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { cfs_hash_bd_del_locked(hs, (struct cfs_hash_bd *)(& bds), hnode); } else { hnode = cfs_hash_dual_bd_finddel_locked(hs, (struct cfs_hash_bd *)(& bds), key, hnode); } } else { } } if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { obj = cfs_hash_object(hs, hnode); bits = cfs_hash_rehash_bits(hs); } else { } cfs_hash_dual_bd_unlock(hs, (struct cfs_hash_bd *)(& bds), 1); cfs_hash_unlock(hs, 0); if (bits > 0) { tmp___0 = cfs_hash_rehash_inline(hs); cfs_hash_rehash(hs, tmp___0); } else { } return (obj); } } static char const __kstrtab_cfs_hash_del[13U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'e', 'l', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_del ; struct kernel_symbol const __ksymtab_cfs_hash_del = {(unsigned long )(& cfs_hash_del), (char const *)(& __kstrtab_cfs_hash_del)}; void *cfs_hash_del_key(struct cfs_hash *hs , void const *key ) { void *tmp ; { tmp = cfs_hash_del(hs, key, (struct hlist_node *)0); return (tmp); } } static char const __kstrtab_cfs_hash_del_key[17U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'e', 'l', '_', 'k', 'e', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_del_key ; struct kernel_symbol const __ksymtab_cfs_hash_del_key = {(unsigned long )(& cfs_hash_del_key), (char const *)(& __kstrtab_cfs_hash_del_key)}; void *cfs_hash_lookup(struct cfs_hash *hs , void const *key ) { void *obj ; struct hlist_node *hnode ; struct cfs_hash_bd bds[2U] ; { obj = (void *)0; cfs_hash_lock(hs, 0); cfs_hash_dual_bd_get_and_lock(hs, key, (struct cfs_hash_bd *)(& bds), 0); hnode = cfs_hash_dual_bd_lookup_locked(hs, (struct cfs_hash_bd *)(& bds), key); if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { obj = cfs_hash_object(hs, hnode); } else { } cfs_hash_dual_bd_unlock(hs, (struct cfs_hash_bd *)(& bds), 0); cfs_hash_unlock(hs, 0); return (obj); } } static char const __kstrtab_cfs_hash_lookup[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'l', 'o', 'o', 'k', 'u', 'p', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_lookup ; struct kernel_symbol const __ksymtab_cfs_hash_lookup = {(unsigned long )(& cfs_hash_lookup), (char const *)(& __kstrtab_cfs_hash_lookup)}; static void cfs_hash_for_each_enter(struct cfs_hash *hs ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = cfs_hash_is_exiting(hs); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_for_each_enter"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1378; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!cfs_hash_is_exiting(hs)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = cfs_hash_with_rehash(hs); if (tmp___1 == 0) { return; } else { } hs->hs_iterating = 1U; cfs_hash_lock(hs, 1); hs->hs_iterators = hs->hs_iterators + 1U; tmp___2 = cfs_hash_is_rehashing(hs); if (tmp___2 != 0) { cfs_hash_rehash_cancel_locked(hs); } else { } cfs_hash_unlock(hs, 1); return; } } static void cfs_hash_for_each_exit(struct cfs_hash *hs ) { int remained ; int bits ; int tmp ; int tmp___0 ; { tmp = cfs_hash_with_rehash(hs); if (tmp == 0) { return; } else { } cfs_hash_lock(hs, 1); hs->hs_iterators = hs->hs_iterators - 1U; remained = (int )hs->hs_iterators; bits = cfs_hash_rehash_bits(hs); cfs_hash_unlock(hs, 1); if (remained == 0) { hs->hs_iterating = 0U; } else { } if (bits > 0) { tmp___0 = atomic_read((atomic_t const *)(& hs->hs_count)); cfs_hash_rehash(hs, tmp___0 <= 1023); } else { } return; } } static __u64 cfs_hash_for_each_tight(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data , int remove_safe ) { struct hlist_node *hnode ; struct hlist_node *pos ; struct cfs_hash_bd bd ; __u64 count ; int excl ; int loop ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct hlist_head *hhead ; int tmp___1 ; { count = 0ULL; excl = remove_safe != 0; loop = 0; cfs_hash_for_each_enter(hs); cfs_hash_lock(hs, 0); tmp = cfs_hash_is_rehashing(hs); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_for_each_tight"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1445; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!cfs_hash_is_rehashing(hs)"); lbug_with_loc(& __msg_data); } else { } i = 0; goto ldv_50861; ldv_50860: cfs_hash_bd_lock(hs, & bd, excl); if ((unsigned long )func == (unsigned long )((int (*)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ))0)) { count = (__u64 )(bd.bd_bucket)->hsb_count + count; cfs_hash_bd_unlock(hs, & bd, excl); goto ldv_50850; } else { } bd.bd_offset = 0U; goto ldv_50857; ldv_50856: hnode = hhead->first; goto ldv_50854; ldv_50853: cfs_hash_bucket_validate(hs, & bd, hnode); count = count + 1ULL; loop = loop + 1; tmp___1 = (*func)(hs, & bd, hnode, data); if (tmp___1 != 0) { cfs_hash_bd_unlock(hs, & bd, excl); goto out; } else { } hnode = pos; ldv_50854: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { pos = hnode->next; goto ldv_50853; } else { } bd.bd_offset = bd.bd_offset + 1U; ldv_50857: ; if (bd.bd_offset >> (int )hs->hs_bkt_bits == 0U) { hhead = cfs_hash_bd_hhead(hs, & bd); if ((unsigned long )hhead != (unsigned long )((struct hlist_head *)0)) { goto ldv_50856; } else { goto ldv_50858; } } else { } ldv_50858: cfs_hash_bd_unlock(hs, & bd, excl); if (loop <= 1023) { goto ldv_50850; } else { } loop = 0; cfs_hash_unlock(hs, 0); ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1473, 0); _cond_resched(); cfs_hash_lock(hs, 0); ldv_50850: i = i + 1; ldv_50861: ; if ((unsigned int )i >> ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits) == 0U) { bd.bd_bucket = *(hs->hs_buckets + (unsigned long )i); if ((unsigned long )bd.bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50860; } else { goto ldv_50862; } } else { } ldv_50862: ; out: cfs_hash_unlock(hs, 0); cfs_hash_for_each_exit(hs); return (count); } } static int cfs_hash_cond_del_locked(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode , void *data ) { cfs_hash_cond_arg_t *cond ; void *tmp ; int tmp___0 ; { cond = (cfs_hash_cond_arg_t *)data; tmp = cfs_hash_object(hs, hnode); tmp___0 = (*(cond->func))(tmp, cond->arg); if (tmp___0 != 0) { cfs_hash_bd_del_locked(hs, bd, hnode); } else { } return (0); } } void cfs_hash_cond_del(struct cfs_hash *hs , int (*func)(void * , void * ) , void *data ) { cfs_hash_cond_arg_t arg ; { arg.func = func; arg.arg = data; cfs_hash_for_each_tight(hs, & cfs_hash_cond_del_locked, (void *)(& arg), 1); return; } } static char const __kstrtab_cfs_hash_cond_del[18U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'c', 'o', 'n', 'd', '_', 'd', 'e', 'l', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_cond_del ; struct kernel_symbol const __ksymtab_cfs_hash_cond_del = {(unsigned long )(& cfs_hash_cond_del), (char const *)(& __kstrtab_cfs_hash_cond_del)}; void cfs_hash_for_each(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { { cfs_hash_for_each_tight(hs, func, data, 0); return; } } static char const __kstrtab_cfs_hash_for_each[18U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_for_each ; struct kernel_symbol const __ksymtab_cfs_hash_for_each = {(unsigned long )(& cfs_hash_for_each), (char const *)(& __kstrtab_cfs_hash_for_each)}; void cfs_hash_for_each_safe(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { { cfs_hash_for_each_tight(hs, func, data, 1); return; } } static char const __kstrtab_cfs_hash_for_each_safe[23U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '_', 's', 'a', 'f', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_for_each_safe ; struct kernel_symbol const __ksymtab_cfs_hash_for_each_safe = {(unsigned long )(& cfs_hash_for_each_safe), (char const *)(& __kstrtab_cfs_hash_for_each_safe)}; static int cfs_hash_peek(struct cfs_hash *hs , struct cfs_hash_bd *bd , struct hlist_node *hnode , void *data ) { { *((int *)data) = 0; return (1); } } int cfs_hash_is_empty(struct cfs_hash *hs ) { int empty ; { empty = 1; cfs_hash_for_each_tight(hs, & cfs_hash_peek, (void *)(& empty), 0); return (empty); } } static char const __kstrtab_cfs_hash_is_empty[18U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'i', 's', '_', 'e', 'm', 'p', 't', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_is_empty ; struct kernel_symbol const __ksymtab_cfs_hash_is_empty = {(unsigned long )(& cfs_hash_is_empty), (char const *)(& __kstrtab_cfs_hash_is_empty)}; __u64 cfs_hash_size_get(struct cfs_hash *hs ) { int tmp___0 ; __u64 tmp___1 ; __u64 tmp___2 ; int tmp___3 ; { tmp___3 = cfs_hash_with_counter(hs); if (tmp___3 != 0) { tmp___0 = atomic_read((atomic_t const *)(& hs->hs_count)); tmp___2 = (__u64 )tmp___0; } else { tmp___1 = cfs_hash_for_each_tight(hs, (int (*)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ))0, (void *)0, 0); tmp___2 = tmp___1; } return (tmp___2); } } static char const __kstrtab_cfs_hash_size_get[18U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 's', 'i', 'z', 'e', '_', 'g', 'e', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_size_get ; struct kernel_symbol const __ksymtab_cfs_hash_size_get = {(unsigned long )(& cfs_hash_size_get), (char const *)(& __kstrtab_cfs_hash_size_get)}; static int cfs_hash_for_each_relax(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { struct hlist_node *hnode ; struct hlist_node *tmp ; struct cfs_hash_bd bd ; __u32 version ; int count ; int stop_on_change ; int rc ; int i ; int tmp___0 ; int tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data ; int tmp___3 ; long tmp___4 ; struct hlist_head *hhead ; __u32 tmp___5 ; { count = 0; tmp___0 = cfs_hash_with_rehash_key(hs); if (tmp___0 != 0) { tmp___2 = 1; } else { tmp___1 = cfs_hash_with_no_itemref(hs); if (tmp___1 == 0) { tmp___2 = 1; } else if ((unsigned long )(hs->hs_ops)->hs_put_locked == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0)) { tmp___2 = 1; } else { tmp___2 = 0; } } stop_on_change = tmp___2; cfs_hash_lock(hs, 0); tmp___3 = cfs_hash_is_rehashing(hs); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_for_each_relax"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1589; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!cfs_hash_is_rehashing(hs)"); lbug_with_loc(& __msg_data); } else { } i = 0; goto ldv_50968; ldv_50967: cfs_hash_bd_lock(hs, & bd, 0); version = cfs_hash_bd_version_get(& bd); bd.bd_offset = 0U; goto ldv_50965; ldv_50964: hnode = hhead->first; goto ldv_50963; ldv_50962: cfs_hash_bucket_validate(hs, & bd, hnode); cfs_hash_get(hs, hnode); cfs_hash_bd_unlock(hs, & bd, 0); cfs_hash_unlock(hs, 0); rc = (*func)(hs, & bd, hnode, data); if (stop_on_change != 0) { cfs_hash_get(hs, hnode); } else { } ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1607, 0); _cond_resched(); count = count + 1; cfs_hash_lock(hs, 0); cfs_hash_bd_lock(hs, & bd, 0); if (stop_on_change == 0) { tmp = hnode->next; cfs_hash_get(hs, hnode); hnode = tmp; } else { tmp___5 = cfs_hash_bd_version_get(& bd); if (tmp___5 != version) { goto ldv_50961; } else { } hnode = hnode->next; } if (rc != 0) { goto ldv_50961; } else { } ldv_50963: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { goto ldv_50962; } else { } ldv_50961: bd.bd_offset = bd.bd_offset + 1U; ldv_50965: ; if (bd.bd_offset >> (int )hs->hs_bkt_bits == 0U) { hhead = cfs_hash_bd_hhead(hs, & bd); if ((unsigned long )hhead != (unsigned long )((struct hlist_head *)0)) { goto ldv_50964; } else { goto ldv_50966; } } else { } ldv_50966: cfs_hash_bd_unlock(hs, & bd, 0); i = i + 1; ldv_50968: ; if ((unsigned int )i >> ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits) == 0U) { bd.bd_bucket = *(hs->hs_buckets + (unsigned long )i); if ((unsigned long )bd.bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_50967; } else { goto ldv_50969; } } else { } ldv_50969: cfs_hash_unlock(hs, 0); return (count); } } int cfs_hash_for_each_nolock(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = cfs_hash_with_no_lock(hs); if (tmp != 0) { return (-95); } else { tmp___0 = cfs_hash_with_rehash_key(hs); if (tmp___0 != 0) { return (-95); } else { tmp___1 = cfs_hash_with_no_itemref(hs); if (tmp___1 == 0) { return (-95); } else { } } } if ((unsigned long )(hs->hs_ops)->hs_get == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0) || ((unsigned long )(hs->hs_ops)->hs_put == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0) && (unsigned long )(hs->hs_ops)->hs_put_locked == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0))) { return (-95); } else { } cfs_hash_for_each_enter(hs); cfs_hash_for_each_relax(hs, func, data); cfs_hash_for_each_exit(hs); return (0); } } static char const __kstrtab_cfs_hash_for_each_nolock[25U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '_', 'n', 'o', 'l', 'o', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_for_each_nolock ; struct kernel_symbol const __ksymtab_cfs_hash_for_each_nolock = {(unsigned long )(& cfs_hash_for_each_nolock), (char const *)(& __kstrtab_cfs_hash_for_each_nolock)}; int cfs_hash_for_each_empty(struct cfs_hash *hs , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { unsigned int i ; int tmp ; struct libcfs_debug_msg_data msgdata ; unsigned int tmp___0 ; int tmp___1 ; int tmp___2 ; { i = 0U; tmp = cfs_hash_with_no_lock(hs); if (tmp != 0) { return (-95); } else { } if ((unsigned long )(hs->hs_ops)->hs_get == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0) || ((unsigned long )(hs->hs_ops)->hs_put == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0) && (unsigned long )(hs->hs_ops)->hs_put_locked == (unsigned long )((void (*)(struct cfs_hash * , struct hlist_node * ))0))) { return (-95); } else { } cfs_hash_for_each_enter(hs); goto ldv_50993; ldv_50992: tmp___1 = cfs_cdebug_show(64U, 1U); if (tmp___1 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_for_each_empty"; msgdata.msg_line = 1682; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; tmp___0 = i; i = i + 1U; libcfs_debug_msg(& msgdata, "Try to empty hash: %s, loop: %u\n", (char *)(& hs->hs_name), tmp___0); } else { } ldv_50993: tmp___2 = cfs_hash_for_each_relax(hs, func, data); if (tmp___2 != 0) { goto ldv_50992; } else { } cfs_hash_for_each_exit(hs); return (0); } } static char const __kstrtab_cfs_hash_for_each_empty[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '_', 'e', 'm', 'p', 't', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_for_each_empty ; struct kernel_symbol const __ksymtab_cfs_hash_for_each_empty = {(unsigned long )(& cfs_hash_for_each_empty), (char const *)(& __kstrtab_cfs_hash_for_each_empty)}; void cfs_hash_hlist_for_each(struct cfs_hash *hs , unsigned int hindex , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { struct hlist_head *hhead ; struct hlist_node *hnode ; struct cfs_hash_bd bd ; int tmp ; { cfs_hash_for_each_enter(hs); cfs_hash_lock(hs, 0); if (1U << (int )hs->hs_cur_bits <= hindex) { goto out; } else { } cfs_hash_bd_index_set(hs, hindex, & bd); cfs_hash_bd_lock(hs, & bd, 0); hhead = cfs_hash_bd_hhead(hs, & bd); hnode = hhead->first; goto ldv_51016; ldv_51015: tmp = (*func)(hs, & bd, hnode, data); if (tmp != 0) { goto ldv_51014; } else { } hnode = hnode->next; ldv_51016: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { goto ldv_51015; } else { } ldv_51014: cfs_hash_bd_unlock(hs, & bd, 0); out: cfs_hash_unlock(hs, 0); cfs_hash_for_each_exit(hs); return; } } static char const __kstrtab_cfs_hash_hlist_for_each[24U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'h', 'l', 'i', 's', 't', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_hlist_for_each ; struct kernel_symbol const __ksymtab_cfs_hash_hlist_for_each = {(unsigned long )(& cfs_hash_hlist_for_each), (char const *)(& __kstrtab_cfs_hash_hlist_for_each)}; void cfs_hash_for_each_key(struct cfs_hash *hs , void const *key , int (*func)(struct cfs_hash * , struct cfs_hash_bd * , struct hlist_node * , void * ) , void *data ) { struct hlist_node *hnode ; struct cfs_hash_bd bds[2U] ; unsigned int i ; struct hlist_head *hlist ; struct hlist_head *tmp ; int tmp___0 ; int tmp___1 ; { cfs_hash_lock(hs, 0); cfs_hash_dual_bd_get_and_lock(hs, key, (struct cfs_hash_bd *)(& bds), 0); i = 0U; goto ldv_51041; ldv_51040: tmp = cfs_hash_bd_hhead(hs, (struct cfs_hash_bd *)(& bds) + (unsigned long )i); hlist = tmp; hnode = hlist->first; goto ldv_51039; ldv_51038: cfs_hash_bucket_validate(hs, (struct cfs_hash_bd *)(& bds) + (unsigned long )i, hnode); tmp___1 = cfs_hash_keycmp(hs, key, hnode); if (tmp___1 != 0) { tmp___0 = (*func)(hs, (struct cfs_hash_bd *)(& bds) + (unsigned long )i, hnode, data); if (tmp___0 != 0) { goto ldv_51037; } else { } } else { } hnode = hnode->next; ldv_51039: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { goto ldv_51038; } else { } ldv_51037: i = i + 1U; ldv_51041: ; if (i <= 1U && (unsigned long )bds[i].bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_51040; } else { } cfs_hash_dual_bd_unlock(hs, (struct cfs_hash_bd *)(& bds), 0); cfs_hash_unlock(hs, 0); return; } } static char const __kstrtab_cfs_hash_for_each_key[22U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'f', 'o', 'r', '_', 'e', 'a', 'c', 'h', '_', 'k', 'e', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_for_each_key ; struct kernel_symbol const __ksymtab_cfs_hash_for_each_key = {(unsigned long )(& cfs_hash_for_each_key), (char const *)(& __kstrtab_cfs_hash_for_each_key)}; void cfs_hash_rehash_cancel_locked(struct cfs_hash *hs ) { int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; int tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; { tmp = cfs_hash_with_rehash(hs); if (tmp == 0) { tmp___1 = 1; } else { tmp___0 = cfs_hash_with_no_lock(hs); if (tmp___0 != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_rehash_cancel_locked"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1771; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_hash_with_rehash(hs) && !cfs_hash_with_no_lock(hs)"); lbug_with_loc(& __msg_data); } else { } tmp___3 = cfs_hash_is_rehashing(hs); if (tmp___3 == 0) { return; } else { } tmp___4 = cfs_wi_deschedule(cfs_sched_rehash, & hs->hs_rehash_wi); if (tmp___4 != 0) { hs->hs_rehash_bits = 0U; return; } else { } i = 2; goto ldv_51062; ldv_51061: cfs_hash_unlock(hs, 1); tmp___6 = __is_po2((unsigned long long )(i >> 3)); tmp___7 = cfs_cdebug_show(tmp___6 != 0 ? 1024U : 64U, 1U); if (tmp___7 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_rehash_cancel_locked"; msgdata.msg_line = 1786; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; tmp___5 = __is_po2((unsigned long long )(i >> 3)); msgdata.msg_mask = tmp___5 != 0 ? 1024 : 64; libcfs_debug_msg(& msgdata, "hash %s is still rehashing, rescheded %d\n", (char *)(& hs->hs_name), i + -1); } else { } ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1787, 0); _cond_resched(); cfs_hash_lock(hs, 1); i = i + 1; ldv_51062: tmp___8 = cfs_hash_is_rehashing(hs); if (tmp___8 != 0) { goto ldv_51061; } else { } return; } } static char const __kstrtab_cfs_hash_rehash_cancel_locked[30U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'r', 'e', 'h', 'a', 's', 'h', '_', 'c', 'a', 'n', 'c', 'e', 'l', '_', 'l', 'o', 'c', 'k', 'e', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_rehash_cancel_locked ; struct kernel_symbol const __ksymtab_cfs_hash_rehash_cancel_locked = {(unsigned long )(& cfs_hash_rehash_cancel_locked), (char const *)(& __kstrtab_cfs_hash_rehash_cancel_locked)}; void cfs_hash_rehash_cancel(struct cfs_hash *hs ) { { cfs_hash_lock(hs, 1); cfs_hash_rehash_cancel_locked(hs); cfs_hash_unlock(hs, 1); return; } } static char const __kstrtab_cfs_hash_rehash_cancel[23U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'r', 'e', 'h', 'a', 's', 'h', '_', 'c', 'a', 'n', 'c', 'e', 'l', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_rehash_cancel ; struct kernel_symbol const __ksymtab_cfs_hash_rehash_cancel = {(unsigned long )(& cfs_hash_rehash_cancel), (char const *)(& __kstrtab_cfs_hash_rehash_cancel)}; int cfs_hash_rehash(struct cfs_hash *hs , int do_rehash ) { int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; int tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; { tmp = cfs_hash_with_rehash(hs); if (tmp == 0) { tmp___1 = 1; } else { tmp___0 = cfs_hash_with_no_lock(hs); if (tmp___0 != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); if (tmp___2 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_rehash"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1807; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_hash_with_rehash(hs) && !cfs_hash_with_no_lock(hs)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_lock(hs, 1); rc = cfs_hash_rehash_bits(hs); if (rc <= 0) { cfs_hash_unlock(hs, 1); return (rc); } else { } hs->hs_rehash_bits = (__u8 )rc; if (do_rehash == 0) { cfs_wi_schedule(cfs_sched_rehash, & hs->hs_rehash_wi); cfs_hash_unlock(hs, 1); return (0); } else { } cfs_hash_unlock(hs, 1); tmp___3 = cfs_hash_rehash_worker(& hs->hs_rehash_wi); return (tmp___3); } } static char const __kstrtab_cfs_hash_rehash[16U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'r', 'e', 'h', 'a', 's', 'h', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_rehash ; struct kernel_symbol const __ksymtab_cfs_hash_rehash = {(unsigned long )(& cfs_hash_rehash), (char const *)(& __kstrtab_cfs_hash_rehash)}; static int cfs_hash_rehash_bd(struct cfs_hash *hs , struct cfs_hash_bd *old ) { struct cfs_hash_bd new ; struct hlist_head *hhead ; struct hlist_node *hnode ; struct hlist_node *pos ; void *key ; int c ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { c = 0; old->bd_offset = 0U; goto ldv_51113; ldv_51112: hnode = hhead->first; goto ldv_51110; ldv_51109: key = cfs_hash_key(hs, hnode); tmp = ldv__builtin_expect((unsigned long )key == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_rehash_bd"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1846; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"key != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_bucket_validate(hs, old, hnode); cfs_hash_bd_from_key(hs, hs->hs_rehash_buckets, (unsigned int )hs->hs_rehash_bits, (void const *)key, & new); cfs_hash_bd_move_locked(hs, old, & new, hnode); c = c + 1; hnode = pos; ldv_51110: ; if ((unsigned long )hnode != (unsigned long )((struct hlist_node *)0)) { pos = hnode->next; goto ldv_51109; } else { } old->bd_offset = old->bd_offset + 1U; ldv_51113: ; if (old->bd_offset >> (int )hs->hs_bkt_bits == 0U) { hhead = cfs_hash_bd_hhead(hs, old); if ((unsigned long )hhead != (unsigned long )((struct hlist_head *)0)) { goto ldv_51112; } else { goto ldv_51114; } } else { } ldv_51114: ; return (c); } } static int cfs_hash_rehash_worker(cfs_workitem_t *wi ) { struct cfs_hash *hs ; cfs_workitem_t const *__mptr ; struct cfs_hash_bucket **bkts ; struct cfs_hash_bd bd ; unsigned int old_size ; unsigned int new_size ; int bsize ; int count ; int rc ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; int tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; struct libcfs_debug_msg_data msgdata ; int tmp___8 ; { __mptr = (cfs_workitem_t const *)wi; hs = (struct cfs_hash *)__mptr + 0xffffffffffffff78UL; count = 0; rc = 0; if ((unsigned long )hs == (unsigned long )((struct cfs_hash *)0)) { tmp___0 = 1; } else { tmp = cfs_hash_with_rehash(hs); if (tmp == 0) { tmp___0 = 1; } else { tmp___0 = 0; } } tmp___1 = ldv__builtin_expect((long )tmp___0, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_rehash_worker"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1876; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs != ((void *)0) && cfs_hash_with_rehash(hs)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_lock(hs, 0); tmp___2 = cfs_hash_is_rehashing(hs); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___0.msg_fn = "cfs_hash_rehash_worker"; __msg_data___0.msg_subsys = 1; __msg_data___0.msg_line = 1879; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"cfs_hash_is_rehashing(hs)"); lbug_with_loc(& __msg_data___0); } else { } old_size = 1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits); new_size = 1U << ((int )hs->hs_rehash_bits - (int )hs->hs_bkt_bits); cfs_hash_unlock(hs, 0); bkts = cfs_hash_buckets_realloc(hs, hs->hs_buckets, old_size, new_size); cfs_hash_lock(hs, 1); if ((unsigned long )bkts == (unsigned long )((struct cfs_hash_bucket **)0)) { rc = -12; goto out; } else { } if ((unsigned long )hs->hs_buckets == (unsigned long )bkts) { bkts = (struct cfs_hash_bucket **)0; goto out; } else { } rc = __cfs_hash_theta(hs); if ((int )hs->hs_min_theta <= rc && (int )hs->hs_max_theta >= rc) { old_size = new_size; new_size = 1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits); rc = -114; goto out; } else { } tmp___4 = ldv__builtin_expect((unsigned long )hs->hs_rehash_buckets != (unsigned long )((struct cfs_hash_bucket **)0), 0L); if (tmp___4 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data___1.msg_fn = "cfs_hash_rehash_worker"; __msg_data___1.msg_subsys = 1; __msg_data___1.msg_line = 1912; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_rehash_buckets == ((void *)0)"); lbug_with_loc(& __msg_data___1); } else { } hs->hs_rehash_buckets = bkts; rc = 0; i = 0; goto ldv_51138; ldv_51137: tmp___5 = cfs_hash_is_exiting(hs); if (tmp___5 != 0) { rc = -3; if (old_size < new_size) { goto ldv_51134; } else { } hs->hs_rehash_buckets = (struct cfs_hash_bucket **)0; old_size = new_size; new_size = 1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits); goto out; } else { } tmp___6 = cfs_hash_rehash_bd(hs, & bd); count = tmp___6 + count; if (count <= 1023) { goto ldv_51135; } else { tmp___7 = cfs_hash_is_iterating(hs); if (tmp___7 != 0) { goto ldv_51135; } else { } } count = 0; cfs_hash_unlock(hs, 1); ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c", 1937, 0); _cond_resched(); cfs_hash_lock(hs, 1); ldv_51135: i = i + 1; ldv_51138: ; if ((unsigned int )i >> ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits) == 0U) { bd.bd_bucket = *(hs->hs_buckets + (unsigned long )i); if ((unsigned long )bd.bd_bucket != (unsigned long )((struct cfs_hash_bucket *)0)) { goto ldv_51137; } else { goto ldv_51134; } } else { } ldv_51134: hs->hs_rehash_count = hs->hs_rehash_count + 1U; bkts = hs->hs_buckets; hs->hs_buckets = hs->hs_rehash_buckets; hs->hs_rehash_buckets = (struct cfs_hash_bucket **)0; hs->hs_cur_bits = hs->hs_rehash_bits; out: hs->hs_rehash_bits = 0U; if (rc == -3) { cfs_wi_exit(cfs_sched_rehash, wi); } else { } bsize = cfs_hash_bkt_size(hs); cfs_hash_unlock(hs, 1); if ((unsigned long )bkts != (unsigned long )((struct cfs_hash_bucket **)0)) { cfs_hash_buckets_free(bkts, bsize, (int )new_size, (int )old_size); } else { } if (rc != 0) { tmp___8 = cfs_cdebug_show(64U, 1U); if (tmp___8 != 0) { msgdata.msg_subsys = 1; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; msgdata.msg_fn = "cfs_hash_rehash_worker"; msgdata.msg_line = 1958; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "early quit of rehashing: %d\n", rc); } else { } } else { } return (rc == -3); } } void cfs_hash_rehash_key(struct cfs_hash *hs , void const *old_key , void *new_key , struct hlist_node *hnode ) { struct cfs_hash_bd bds[3U] ; struct cfs_hash_bd old_bds[2U] ; struct cfs_hash_bd new_bd ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; long tmp___1 ; { tmp = hlist_unhashed((struct hlist_node const *)hnode); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_rehash_key"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 1980; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!hlist_unhashed(hnode)"); lbug_with_loc(& __msg_data); } else { } cfs_hash_lock(hs, 0); cfs_hash_dual_bd_get(hs, old_key, (struct cfs_hash_bd *)(& old_bds)); cfs_hash_bd_get(hs, (void const *)new_key, & new_bd); bds[0] = old_bds[0]; bds[1] = old_bds[1]; bds[2] = new_bd; cfs_hash_bd_order((struct cfs_hash_bd *)(& bds) + 1UL, (struct cfs_hash_bd *)(& bds) + 2UL); cfs_hash_bd_order((struct cfs_hash_bd *)(& bds), (struct cfs_hash_bd *)(& bds) + 1UL); cfs_hash_multi_bd_lock(hs, (struct cfs_hash_bd *)(& bds), 3U, 1); tmp___1 = ldv__builtin_expect((unsigned long )old_bds[1].bd_bucket == (unsigned long )((struct cfs_hash_bucket *)0), 1L); if (tmp___1 != 0L) { cfs_hash_bd_move_locked(hs, (struct cfs_hash_bd *)(& old_bds), & new_bd, hnode); } else { cfs_hash_dual_bd_finddel_locked(hs, (struct cfs_hash_bd *)(& old_bds), old_key, hnode); cfs_hash_bd_add_locked(hs, & new_bd, hnode); } cfs_hash_keycpy(hs, (struct hlist_node *)new_key, (void *)hnode); cfs_hash_multi_bd_unlock(hs, (struct cfs_hash_bd *)(& bds), 3U, 1); cfs_hash_unlock(hs, 0); return; } } static char const __kstrtab_cfs_hash_rehash_key[20U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'r', 'e', 'h', 'a', 's', 'h', '_', 'k', 'e', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_rehash_key ; struct kernel_symbol const __ksymtab_cfs_hash_rehash_key = {(unsigned long )(& cfs_hash_rehash_key), (char const *)(& __kstrtab_cfs_hash_rehash_key)}; void cfs_hash_debug_header(struct seq_file *m ) { { seq_printf(m, "%-*s cur min max theta t-min t-max flags rehash count maxdep maxdepb distribution\n", 64, (char *)"name"); return; } } static char const __kstrtab_cfs_hash_debug_header[22U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'e', 'b', 'u', 'g', '_', 'h', 'e', 'a', 'd', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_debug_header ; struct kernel_symbol const __ksymtab_cfs_hash_debug_header = {(unsigned long )(& cfs_hash_debug_header), (char const *)(& __kstrtab_cfs_hash_debug_header)}; static struct cfs_hash_bucket **cfs_hash_full_bkts(struct cfs_hash *hs ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { if ((unsigned long )hs->hs_rehash_buckets == (unsigned long )((struct cfs_hash_bucket **)0)) { return (hs->hs_buckets); } else { } tmp = ldv__builtin_expect((unsigned int )hs->hs_rehash_bits == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_full_bkts"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 2025; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_rehash_bits != 0"); lbug_with_loc(& __msg_data); } else { } return ((int )hs->hs_rehash_bits > (int )hs->hs_cur_bits ? hs->hs_rehash_buckets : hs->hs_buckets); } } static unsigned int cfs_hash_full_nbkt(struct cfs_hash *hs ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; { if ((unsigned long )hs->hs_rehash_buckets == (unsigned long )((struct cfs_hash_bucket **)0)) { return (1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits)); } else { } tmp = ldv__builtin_expect((unsigned int )hs->hs_rehash_bits == 0U, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/hash.c"; __msg_data.msg_fn = "cfs_hash_full_nbkt"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 2037; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"hs->hs_rehash_bits != 0"); lbug_with_loc(& __msg_data); } else { } return ((int )hs->hs_rehash_bits > (int )hs->hs_cur_bits ? 1U << ((int )hs->hs_rehash_bits - (int )hs->hs_bkt_bits) : 1U << ((int )hs->hs_cur_bits - (int )hs->hs_bkt_bits)); } } void cfs_hash_debug_str(struct cfs_hash *hs , struct seq_file *m ) { int dist[8U] ; unsigned int tmp ; int maxdep ; int maxdepb ; int total ; int theta ; int i ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; struct cfs_hash_bd bd ; struct cfs_hash_bucket **tmp___6 ; unsigned long tmp___7 ; int _min1 ; int _max1 ; int _max2 ; int tmp___8 ; int _min2 ; unsigned int tmp___9 ; { dist[0] = 0; tmp = 1U; while (1) { if (tmp >= 8U) { break; } else { } dist[tmp] = 0; tmp = tmp + 1U; } maxdep = -1; maxdepb = -1; total = 0; cfs_hash_lock(hs, 0); theta = __cfs_hash_theta(hs); tmp___0 = __cfs_hash_theta_frac((int )hs->hs_max_theta); tmp___1 = __cfs_hash_theta_int((int )hs->hs_max_theta); tmp___2 = __cfs_hash_theta_frac((int )hs->hs_min_theta); tmp___3 = __cfs_hash_theta_int((int )hs->hs_min_theta); tmp___4 = __cfs_hash_theta_frac(theta); tmp___5 = __cfs_hash_theta_int(theta); seq_printf(m, "%-*s %5d %5d %5d %d.%03d %d.%03d %d.%03d 0x%02x %6d ", 64, (char *)(& hs->hs_name), 1 << (int )hs->hs_cur_bits, 1 << (int )hs->hs_min_bits, 1 << (int )hs->hs_max_bits, tmp___5, tmp___4, tmp___3, tmp___2, tmp___1, tmp___0, (int )hs->hs_flags, hs->hs_rehash_count); i = 0; goto ldv_51202; ldv_51201: tmp___6 = cfs_hash_full_bkts(hs); bd.bd_bucket = *(tmp___6 + (unsigned long )i); cfs_hash_bd_lock(hs, & bd, 0); if ((bd.bd_bucket)->hsb_depmax > maxdep) { maxdep = (bd.bd_bucket)->hsb_depmax; tmp___7 = ffz((unsigned long )(~ maxdep)); maxdepb = (int )tmp___7; } else { } total = (int )((bd.bd_bucket)->hsb_count + (__u32 )total); _max1 = theta; _max2 = 1; tmp___8 = fls((int )((bd.bd_bucket)->hsb_count / (__u32 )(_max1 > _max2 ? _max1 : _max2))); _min1 = tmp___8; _min2 = 7; dist[_min1 < _min2 ? _min1 : _min2] = dist[_min1 < _min2 ? _min1 : _min2] + 1; cfs_hash_bd_unlock(hs, & bd, 0); i = i + 1; ldv_51202: tmp___9 = cfs_hash_full_nbkt(hs); if ((unsigned int )i < tmp___9) { goto ldv_51201; } else { } seq_printf(m, "%7d %7d %7d ", total, maxdep, maxdepb); i = 0; goto ldv_51205; ldv_51204: seq_printf(m, "%d%c", dist[i], i == 7 ? 10 : 47); i = i + 1; ldv_51205: ; if (i <= 7) { goto ldv_51204; } else { } cfs_hash_unlock(hs, 0); return; } } static char const __kstrtab_cfs_hash_debug_str[19U] = { 'c', 'f', 's', '_', 'h', 'a', 's', 'h', '_', 'd', 'e', 'b', 'u', 'g', '_', 's', 't', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_hash_debug_str ; struct kernel_symbol const __ksymtab_cfs_hash_debug_str = {(unsigned long )(& cfs_hash_debug_str), (char const *)(& __kstrtab_cfs_hash_debug_str)}; void ldv_mutex_unlock_301(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_302(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_303(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_304(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_305(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_306(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_307(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_324(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_319(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_322(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_325(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_320(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_321(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_323(struct mutex *ldv_func_arg1 ) ; extern void fput(struct file * ) ; int libcfs_kkuc_msg_put(struct file *filp , void *payload ) ; int libcfs_kkuc_group_put(int group , void *payload ) ; int libcfs_kkuc_group_add(struct file *filp , int uid , int group , __u32 data ) ; int libcfs_kkuc_group_rem(int uid , int group ) ; int libcfs_kkuc_group_foreach(int group , int (*cb_func)(__u32 , void * ) , void *cb_arg ) ; int libcfs_kkuc_msg_put(struct file *filp , void *payload ) { struct kuc_hdr *kuch ; ssize_t count ; loff_t offset ; mm_segment_t fs ; int rc ; bool tmp ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___0 ; struct thread_info *tmp___1 ; struct thread_info *tmp___2 ; mm_segment_t __constr_expr_0 ; ssize_t tmp___3 ; struct thread_info *tmp___4 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___6 ; { kuch = (struct kuc_hdr *)payload; count = (ssize_t )kuch->kuc_msglen; offset = 0LL; rc = -38; if ((unsigned long )filp == (unsigned long )((struct file *)0)) { return (-9); } else { tmp = IS_ERR((void const *)filp); if ((int )tmp) { return (-9); } else { } } if ((unsigned int )kuch->kuc_magic != 6428U) { tmp___0 = cfs_cdebug_show(131072U, 32U); if (tmp___0 != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata.msg_fn = "libcfs_kkuc_msg_put"; msgdata.msg_line = 67; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "KernelComm: bad magic %x\n", (int )kuch->kuc_magic); } else { } return (-38); } else { } tmp___1 = current_thread_info(); fs = tmp___1->addr_limit; tmp___2 = current_thread_info(); __constr_expr_0.seg = 0xffffffffffffffffUL; tmp___2->addr_limit = __constr_expr_0; goto ldv_50063; ldv_50062: tmp___3 = vfs_write(filp, (char const *)payload, (size_t )count, & offset); rc = (int )tmp___3; if (rc < 0) { goto ldv_50061; } else { } count = count - (ssize_t )rc; payload = payload + (unsigned long )rc; rc = 0; ldv_50063: ; if (count > 0L) { goto ldv_50062; } else { } ldv_50061: tmp___4 = current_thread_info(); tmp___4->addr_limit = fs; if (rc < 0) { tmp___5 = cfs_cdebug_show(1024U, 32U); if (tmp___5 != 0) { msgdata___0.msg_subsys = 32; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata___0.msg_fn = "libcfs_kkuc_msg_put"; msgdata___0.msg_line = 85; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 1024; libcfs_debug_msg(& msgdata___0, "message send failed (%d)\n", rc); } else { } } else { tmp___6 = cfs_cdebug_show(4096U, 32U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 32; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata___1.msg_fn = "libcfs_kkuc_msg_put"; msgdata___1.msg_line = 87; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 4096; libcfs_debug_msg(& msgdata___1, "Sent message rc=%d, fp=%p\n", rc, filp); } else { } } return (rc); } } static char const __kstrtab_libcfs_kkuc_msg_put[20U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'k', 'u', 'c', '_', 'm', 's', 'g', '_', 'p', 'u', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kkuc_msg_put ; struct kernel_symbol const __ksymtab_libcfs_kkuc_msg_put = {(unsigned long )(& libcfs_kkuc_msg_put), (char const *)(& __kstrtab_libcfs_kkuc_msg_put)}; static struct list_head kkuc_groups[3U] = { {0, 0}, {0, 0}, {0, 0}}; static struct rw_semaphore kg_sem = {0L, {& kg_sem.wait_list, & kg_sem.wait_list}, {{{0}}, 3735899821U, 4294967295U, (void *)-1, {0, {0, 0}, "kg_sem.wait_lock", 0, 0UL}}, {{0}}, (struct task_struct *)0, {0, {0, 0}, "kg_sem", 0, 0UL}}; int libcfs_kkuc_group_add(struct file *filp , int uid , int group , __u32 data ) { struct kkuc_reg *reg ; struct libcfs_debug_msg_data msgdata ; int tmp ; void *tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; { if (group > 2) { tmp = cfs_cdebug_show(1024U, 32U); if (tmp != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata.msg_fn = "libcfs_kkuc_group_add"; msgdata.msg_line = 117; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Kernelcomm: bad group %d\n", group); } else { } return (-22); } else { } if ((unsigned long )filp == (unsigned long )((struct file *)0)) { return (-9); } else { } tmp___0 = kmalloc(40UL, 0U); reg = (struct kkuc_reg *)tmp___0; if ((unsigned long )reg == (unsigned long )((struct kkuc_reg *)0)) { return (-12); } else { } reg->kr_fp = filp; reg->kr_uid = uid; reg->kr_data = data; down_write(& kg_sem); if ((unsigned long )kkuc_groups[group].next == (unsigned long )((struct list_head *)0)) { INIT_LIST_HEAD((struct list_head *)(& kkuc_groups) + (unsigned long )group); } else { } list_add(& reg->kr_chain, (struct list_head *)(& kkuc_groups) + (unsigned long )group); up_write(& kg_sem); tmp___1 = cfs_cdebug_show(4096U, 32U); if (tmp___1 != 0) { msgdata___0.msg_subsys = 32; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata___0.msg_fn = "libcfs_kkuc_group_add"; msgdata___0.msg_line = 140; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 4096; libcfs_debug_msg(& msgdata___0, "Added uid=%d fp=%p to group %d\n", uid, filp, group); } else { } return (0); } } static char const __kstrtab_libcfs_kkuc_group_add[22U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'k', 'u', 'c', '_', 'g', 'r', 'o', 'u', 'p', '_', 'a', 'd', 'd', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_add ; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_add = {(unsigned long )(& libcfs_kkuc_group_add), (char const *)(& __kstrtab_libcfs_kkuc_group_add)}; int libcfs_kkuc_group_rem(int uid , int group ) { struct kkuc_reg *reg ; struct kkuc_reg *next ; struct kuc_hdr lh ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct list_head const *__mptr___1 ; { if ((unsigned long )kkuc_groups[group].next == (unsigned long )((struct list_head *)0)) { return (0); } else { } if (uid == 0) { lh.kuc_magic = 6428U; lh.kuc_transport = 1U; lh.kuc_msgtype = 1U; lh.kuc_msglen = 8U; libcfs_kkuc_group_put(group, (void *)(& lh)); } else { } down_write(& kg_sem); __mptr = (struct list_head const *)((struct list_head *)(& kkuc_groups) + (unsigned long )group)->next; reg = (struct kkuc_reg *)__mptr; __mptr___0 = (struct list_head const *)reg->kr_chain.next; next = (struct kkuc_reg *)__mptr___0; goto ldv_50119; ldv_50118: ; if (uid == 0 || reg->kr_uid == uid) { list_del(& reg->kr_chain); tmp = cfs_cdebug_show(4096U, 32U); if (tmp != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata.msg_fn = "libcfs_kkuc_group_rem"; msgdata.msg_line = 169; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 4096; libcfs_debug_msg(& msgdata, "Removed uid=%d fp=%p from group %d\n", reg->kr_uid, reg->kr_fp, group); } else { } if ((unsigned long )reg->kr_fp != (unsigned long )((struct file *)0)) { fput(reg->kr_fp); } else { } kfree((void const *)reg); } else { } reg = next; __mptr___1 = (struct list_head const *)next->kr_chain.next; next = (struct kkuc_reg *)__mptr___1; ldv_50119: ; if ((unsigned long )(& reg->kr_chain) != (unsigned long )((struct list_head *)(& kkuc_groups) + (unsigned long )group)) { goto ldv_50118; } else { } up_write(& kg_sem); return (0); } } static char const __kstrtab_libcfs_kkuc_group_rem[22U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'k', 'u', 'c', '_', 'g', 'r', 'o', 'u', 'p', '_', 'r', 'e', 'm', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_rem ; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_rem = {(unsigned long )(& libcfs_kkuc_group_rem), (char const *)(& __kstrtab_libcfs_kkuc_group_rem)}; int libcfs_kkuc_group_put(int group , void *payload ) { struct kkuc_reg *reg ; int rc ; int one_success ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { rc = 0; one_success = 0; down_read(& kg_sem); __mptr = (struct list_head const *)((struct list_head *)(& kkuc_groups) + (unsigned long )group)->next; reg = (struct kkuc_reg *)__mptr; goto ldv_50141; ldv_50140: ; if ((unsigned long )reg->kr_fp != (unsigned long )((struct file *)0)) { rc = libcfs_kkuc_msg_put(reg->kr_fp, payload); if (rc == 0) { one_success = 1; } else if (rc == -32) { fput(reg->kr_fp); reg->kr_fp = (struct file *)0; } else { } } else { } __mptr___0 = (struct list_head const *)reg->kr_chain.next; reg = (struct kkuc_reg *)__mptr___0; ldv_50141: ; if ((unsigned long )(& reg->kr_chain) != (unsigned long )((struct list_head *)(& kkuc_groups) + (unsigned long )group)) { goto ldv_50140; } else { } up_read(& kg_sem); if (one_success != 0) { rc = 0; } else { } return (rc); } } static char const __kstrtab_libcfs_kkuc_group_put[22U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'k', 'u', 'c', '_', 'g', 'r', 'o', 'u', 'p', '_', 'p', 'u', 't', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_put ; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_put = {(unsigned long )(& libcfs_kkuc_group_put), (char const *)(& __kstrtab_libcfs_kkuc_group_put)}; int libcfs_kkuc_group_foreach(int group , int (*cb_func)(__u32 , void * ) , void *cb_arg ) { struct kkuc_reg *reg ; int rc ; struct libcfs_debug_msg_data msgdata ; int tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { rc = 0; if (group > 2) { tmp = cfs_cdebug_show(1024U, 32U); if (tmp != 0) { msgdata.msg_subsys = 32; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/kernel_user_comm.c"; msgdata.msg_fn = "libcfs_kkuc_group_foreach"; msgdata.msg_line = 223; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 1024; libcfs_debug_msg(& msgdata, "Kernelcomm: bad group %d\n", group); } else { } return (-22); } else { } if ((unsigned long )kkuc_groups[group].next == (unsigned long )((struct list_head *)0)) { return (0); } else { } down_write(& kg_sem); __mptr = (struct list_head const *)((struct list_head *)(& kkuc_groups) + (unsigned long )group)->next; reg = (struct kkuc_reg *)__mptr; goto ldv_50165; ldv_50164: ; if ((unsigned long )reg->kr_fp != (unsigned long )((struct file *)0)) { rc = (*cb_func)(reg->kr_data, cb_arg); } else { } __mptr___0 = (struct list_head const *)reg->kr_chain.next; reg = (struct kkuc_reg *)__mptr___0; ldv_50165: ; if ((unsigned long )(& reg->kr_chain) != (unsigned long )((struct list_head *)(& kkuc_groups) + (unsigned long )group)) { goto ldv_50164; } else { } up_write(& kg_sem); return (rc); } } static char const __kstrtab_libcfs_kkuc_group_foreach[26U] = { 'l', 'i', 'b', 'c', 'f', 's', '_', 'k', 'k', 'u', 'c', '_', 'g', 'r', 'o', 'u', 'p', '_', 'f', 'o', 'r', 'e', 'a', 'c', 'h', '\000'}; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_foreach ; struct kernel_symbol const __ksymtab_libcfs_kkuc_group_foreach = {(unsigned long )(& libcfs_kkuc_group_foreach), (char const *)(& __kstrtab_libcfs_kkuc_group_foreach)}; void ldv_mutex_unlock_319(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_320(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_321(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_322(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_323(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_324(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_325(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_342(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_337(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_340(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_343(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_338(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_339(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_341(struct mutex *ldv_func_arg1 ) ; extern void get_random_bytes(void * , int ) ; void cfs_srand(unsigned int seed1 , unsigned int seed2 ) ; void cfs_get_random_bytes(void *buf , int size ) ; static unsigned int seed_x = 521288629U; static unsigned int seed_y = 362436069U; unsigned int cfs_rand(void) { { seed_x = (seed_x & 65535U) * 18030U + (seed_x >> 16); seed_y = (seed_y & 65535U) * 29013U + (seed_y >> 16); return ((seed_x << 16) + (seed_y & 65535U)); } } static char const __kstrtab_cfs_rand[9U] = { 'c', 'f', 's', '_', 'r', 'a', 'n', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_rand ; struct kernel_symbol const __ksymtab_cfs_rand = {(unsigned long )(& cfs_rand), (char const *)(& __kstrtab_cfs_rand)}; void cfs_srand(unsigned int seed1 , unsigned int seed2 ) { { if (seed1 != 0U) { seed_x = seed1; } else { } if (seed2 != 0U) { seed_y = seed2; } else { } return; } } static char const __kstrtab_cfs_srand[10U] = { 'c', 'f', 's', '_', 's', 'r', 'a', 'n', 'd', '\000'}; struct kernel_symbol const __ksymtab_cfs_srand ; struct kernel_symbol const __ksymtab_cfs_srand = {(unsigned long )(& cfs_srand), (char const *)(& __kstrtab_cfs_srand)}; void cfs_get_random_bytes(void *buf , int size ) { int *p ; int rem ; int tmp ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; int _min1 ; int _min2 ; unsigned int tmp___1 ; unsigned int tmp___2 ; unsigned int tmp___3 ; { p = (int *)buf; tmp___0 = ldv__builtin_expect(size < 0, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/prng.c"; __msg_data.msg_fn = "cfs_get_random_bytes"; __msg_data.msg_subsys = 1; __msg_data.msg_line = 115; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"size >= 0"); lbug_with_loc(& __msg_data); } else { } _min1 = (int )((long )buf) & 3; _min2 = size; rem = _min1 < _min2 ? _min1 : _min2; if (rem != 0) { get_random_bytes((void *)(& tmp), 4); tmp___1 = cfs_rand(); tmp = (int )(tmp___1 ^ (unsigned int )tmp); memcpy(buf, (void const *)(& tmp), (size_t )rem); p = (int *)buf + (unsigned long )rem; size = size - rem; } else { } goto ldv_50084; ldv_50083: get_random_bytes((void *)(& tmp), 4); tmp___2 = cfs_rand(); *p = (int )(tmp___2 ^ (unsigned int )tmp); size = (int )((unsigned int )size - 4U); p = p + 1; ldv_50084: ; if ((unsigned int )size > 3U) { goto ldv_50083; } else { } buf = (void *)p; if (size != 0) { get_random_bytes((void *)(& tmp), 4); tmp___3 = cfs_rand(); tmp = (int )(tmp___3 ^ (unsigned int )tmp); memcpy(buf, (void const *)(& tmp), (size_t )size); } else { } return; } } static char const __kstrtab_cfs_get_random_bytes[21U] = { 'c', 'f', 's', '_', 'g', 'e', 't', '_', 'r', 'a', 'n', 'd', 'o', 'm', '_', 'b', 'y', 't', 'e', 's', '\000'}; struct kernel_symbol const __ksymtab_cfs_get_random_bytes ; struct kernel_symbol const __ksymtab_cfs_get_random_bytes = {(unsigned long )(& cfs_get_random_bytes), (char const *)(& __kstrtab_cfs_get_random_bytes)}; void ldv_mutex_unlock_337(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_338(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_339(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_340(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_341(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_342(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_343(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_360(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_355(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_358(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_361(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_356(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_357(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_359(struct mutex *ldv_func_arg1 ) ; extern long prepare_to_wait_event(wait_queue_head_t * , wait_queue_t * , int ) ; extern void finish_wait(wait_queue_head_t * , wait_queue_t * ) ; extern void abort_exclusive_wait(wait_queue_head_t * , wait_queue_t * , unsigned int , void * ) ; static struct cfs_workitem_data cfs_wi_data ; __inline static void cfs_wi_sched_lock(cfs_wi_sched_t *sched ) { { spin_lock(& sched->ws_lock); return; } } __inline static void cfs_wi_sched_unlock(cfs_wi_sched_t *sched ) { { spin_unlock(& sched->ws_lock); return; } } __inline static int cfs_wi_sched_cansleep(cfs_wi_sched_t *sched ) { int tmp ; { cfs_wi_sched_lock(sched); if ((unsigned int )*((unsigned char *)sched + 227UL) != 0U) { cfs_wi_sched_unlock(sched); return (0); } else { } tmp = list_empty((struct list_head const *)(& sched->ws_runq)); if (tmp == 0) { cfs_wi_sched_unlock(sched); return (0); } else { } cfs_wi_sched_unlock(sched); return (1); } } void cfs_wi_exit(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___2 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___3 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___3 ; long tmp___5 ; struct libcfs_debug_msg_data __msg_data___4 ; int tmp___6 ; long tmp___7 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_exit"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 126; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned int )*((unsigned char *)sched + 227UL) != 0U, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_exit"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 127; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!sched->ws_stopping"); lbug_with_loc(& __msg_data___0); } else { } cfs_wi_sched_lock(sched); tmp___2 = ldv__builtin_expect((unsigned int )*((unsigned char *)wi + 32UL) == 0U, 0L); if (tmp___2 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_exit"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 131; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"wi->wi_running"); lbug_with_loc(& __msg_data___1); } else { } if ((unsigned int )*((unsigned char *)wi + 32UL) != 0U) { tmp___3 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_exit"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 133; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___2); } else { } list_del_init(& wi->wi_list); tmp___5 = ldv__builtin_expect(sched->ws_nscheduled <= 0, 0L); if (tmp___5 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___3.msg_fn = "cfs_wi_exit"; __msg_data___3.msg_subsys = 1024; __msg_data___3.msg_line = 136; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"sched->ws_nscheduled > 0"); lbug_with_loc(& __msg_data___3); } else { } sched->ws_nscheduled = sched->ws_nscheduled - 1; } else { } tmp___6 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___7 = ldv__builtin_expect(tmp___6 == 0, 0L); if (tmp___7 != 0L) { __msg_data___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___4.msg_fn = "cfs_wi_exit"; __msg_data___4.msg_subsys = 1024; __msg_data___4.msg_line = 140; __msg_data___4.msg_mask = 0; __msg_data___4.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___4.msg_mask = 262144; libcfs_debug_msg(& __msg_data___4, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___4); } else { } wi->wi_scheduled = 1U; cfs_wi_sched_unlock(sched); return; } } static char const __kstrtab_cfs_wi_exit[12U] = { 'c', 'f', 's', '_', 'w', 'i', '_', 'e', 'x', 'i', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_wi_exit ; struct kernel_symbol const __ksymtab_cfs_wi_exit = {(unsigned long )(& cfs_wi_exit), (char const *)(& __kstrtab_cfs_wi_exit)}; int cfs_wi_deschedule(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) { int rc ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___4 ; struct libcfs_debug_msg_data __msg_data___3 ; int tmp___5 ; long tmp___6 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_deschedule"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 157; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned int )*((unsigned char *)sched + 227UL) != 0U, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_deschedule"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 158; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!sched->ws_stopping"); lbug_with_loc(& __msg_data___0); } else { } cfs_wi_sched_lock(sched); rc = (unsigned int )*((unsigned char *)wi + 32UL) == 0U; if ((unsigned int )*((unsigned char *)wi + 32UL) != 0U) { tmp___2 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___3 = ldv__builtin_expect(tmp___2 != 0, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_deschedule"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 170; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___1); } else { } list_del_init(& wi->wi_list); tmp___4 = ldv__builtin_expect(sched->ws_nscheduled <= 0, 0L); if (tmp___4 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_deschedule"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 173; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"sched->ws_nscheduled > 0"); lbug_with_loc(& __msg_data___2); } else { } sched->ws_nscheduled = sched->ws_nscheduled - 1; wi->wi_scheduled = 0U; } else { } tmp___5 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___6 = ldv__builtin_expect(tmp___5 == 0, 0L); if (tmp___6 != 0L) { __msg_data___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___3.msg_fn = "cfs_wi_deschedule"; __msg_data___3.msg_subsys = 1024; __msg_data___3.msg_line = 179; __msg_data___3.msg_mask = 0; __msg_data___3.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___3.msg_mask = 262144; libcfs_debug_msg(& __msg_data___3, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___3); } else { } cfs_wi_sched_unlock(sched); return (rc); } } static char const __kstrtab_cfs_wi_deschedule[18U] = { 'c', 'f', 's', '_', 'w', 'i', '_', 'd', 'e', 's', 'c', 'h', 'e', 'd', 'u', 'l', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_wi_deschedule ; struct kernel_symbol const __ksymtab_cfs_wi_deschedule = {(unsigned long )(& cfs_wi_deschedule), (char const *)(& __kstrtab_cfs_wi_deschedule)}; void cfs_wi_schedule(struct cfs_wi_sched *sched , cfs_workitem_t *wi ) { struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___4 ; long tmp___5 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect(((unsigned long )tmp & 2096896UL) != 0UL, 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_schedule"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 196; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4)))))"); lbug_with_loc(& __msg_data); } else { } tmp___1 = ldv__builtin_expect((unsigned int )*((unsigned char *)sched + 227UL) != 0U, 0L); if (tmp___1 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_schedule"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 197; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!sched->ws_stopping"); lbug_with_loc(& __msg_data___0); } else { } cfs_wi_sched_lock(sched); if ((unsigned int )*((unsigned char *)wi + 32UL) == 0U) { tmp___2 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_schedule"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 202; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___1); } else { } wi->wi_scheduled = 1U; sched->ws_nscheduled = sched->ws_nscheduled + 1; if ((unsigned int )*((unsigned char *)wi + 32UL) == 0U) { list_add_tail(& wi->wi_list, & sched->ws_runq); __wake_up(& sched->ws_waitq, 3U, 1, (void *)0); } else { list_add(& wi->wi_list, & sched->ws_rerunq); } } else { } tmp___4 = list_empty((struct list_head const *)(& wi->wi_list)); tmp___5 = ldv__builtin_expect(tmp___4 != 0, 0L); if (tmp___5 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_schedule"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 214; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&wi->wi_list)"); lbug_with_loc(& __msg_data___2); } else { } cfs_wi_sched_unlock(sched); return; } } static char const __kstrtab_cfs_wi_schedule[16U] = { 'c', 'f', 's', '_', 'w', 'i', '_', 's', 'c', 'h', 'e', 'd', 'u', 'l', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_wi_schedule ; struct kernel_symbol const __ksymtab_cfs_wi_schedule = {(unsigned long )(& cfs_wi_schedule), (char const *)(& __kstrtab_cfs_wi_schedule)}; static int cfs_wi_scheduler(void *arg ) { struct cfs_wi_sched *sched ; struct libcfs_debug_msg_data __msg_data ; long tmp ; int nloops ; int rc ; cfs_workitem_t *wi ; struct list_head const *__mptr ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; long tmp___1 ; int tmp___2 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___3 ; int tmp___4 ; int tmp___5 ; int __ret ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp___6 ; int tmp___7 ; int tmp___8 ; { sched = (struct cfs_wi_sched *)arg; cfs_block_allsigs(); if ((unsigned long )sched->ws_cptab != (unsigned long )((struct cfs_cpt_table *)0)) { cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt); } else { } spin_lock(& cfs_wi_data.wi_glock); tmp = ldv__builtin_expect((int )((signed char )*((unsigned char *)sched + 227UL)) >= 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_scheduler"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 234; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"sched->ws_starting == 1"); lbug_with_loc(& __msg_data); } else { } sched->ws_starting = (unsigned char )((int )sched->ws_starting - 1); sched->ws_nthreads = sched->ws_nthreads + 1U; spin_unlock(& cfs_wi_data.wi_glock); cfs_wi_sched_lock(sched); goto ldv_50149; ldv_50159: nloops = 0; goto ldv_50144; ldv_50146: __mptr = (struct list_head const *)sched->ws_runq.next; wi = (cfs_workitem_t *)__mptr; tmp___0 = ldv__builtin_expect((long )((unsigned int )*((unsigned char *)wi + 32UL) == 0U || (unsigned int )*((unsigned char *)wi + 32UL) != 0U), 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_scheduler"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 251; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"wi->wi_scheduled && !wi->wi_running"); lbug_with_loc(& __msg_data___0); } else { } list_del_init(& wi->wi_list); tmp___1 = ldv__builtin_expect(sched->ws_nscheduled <= 0, 0L); if (tmp___1 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_scheduler"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 255; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"sched->ws_nscheduled > 0"); lbug_with_loc(& __msg_data___1); } else { } sched->ws_nscheduled = sched->ws_nscheduled - 1; wi->wi_running = 1U; wi->wi_scheduled = 0U; cfs_wi_sched_unlock(sched); nloops = nloops + 1; rc = (*(wi->wi_action))(wi); cfs_wi_sched_lock(sched); if (rc != 0) { goto ldv_50144; } else { } wi->wi_running = 0U; tmp___2 = list_empty((struct list_head const *)(& wi->wi_list)); if (tmp___2 != 0) { goto ldv_50144; } else { } tmp___3 = ldv__builtin_expect((unsigned int )*((unsigned char *)wi + 32UL) == 0U, 0L); if (tmp___3 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_scheduler"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 275; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"wi->wi_scheduled"); lbug_with_loc(& __msg_data___2); } else { } list_move_tail(& wi->wi_list, & sched->ws_runq); ldv_50144: tmp___4 = list_empty((struct list_head const *)(& sched->ws_runq)); if (tmp___4 == 0 && nloops <= 127) { goto ldv_50146; } else { } tmp___5 = list_empty((struct list_head const *)(& sched->ws_runq)); if (tmp___5 == 0) { cfs_wi_sched_unlock(sched); ___might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c", 285, 0); _cond_resched(); cfs_wi_sched_lock(sched); goto ldv_50149; } else { } cfs_wi_sched_unlock(sched); __ret = 0; __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c", 292, 0); tmp___8 = cfs_wi_sched_cansleep(sched); if (tmp___8 != 0) { __ret___0 = 0L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 1U; ldv_50156: tmp___6 = prepare_to_wait_event(& sched->ws_waitq, & __wait, 1); __int = tmp___6; tmp___7 = cfs_wi_sched_cansleep(sched); if (tmp___7 == 0) { goto ldv_50155; } else { } if (__int != 0L) { __ret___0 = __int; abort_exclusive_wait(& sched->ws_waitq, & __wait, 1U, (void *)0); goto __out___0; goto ldv_50155; } else { } schedule(); goto ldv_50156; ldv_50155: finish_wait(& sched->ws_waitq, & __wait); __out___0: __ret = (int )__ret___0; } else { } rc = __ret; cfs_wi_sched_lock(sched); ldv_50149: ; if ((unsigned int )*((unsigned char *)sched + 227UL) == 0U) { goto ldv_50159; } else { } cfs_wi_sched_unlock(sched); spin_lock(& cfs_wi_data.wi_glock); sched->ws_nthreads = sched->ws_nthreads - 1U; spin_unlock(& cfs_wi_data.wi_glock); return (0); } } void cfs_wi_sched_destroy(struct cfs_wi_sched *sched ) { int i ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; struct task_struct *tmp___7 ; long volatile __ret ; struct task_struct *tmp___8 ; struct task_struct *tmp___9 ; struct task_struct *tmp___10 ; struct task_struct *tmp___11 ; long tmp___12 ; struct libcfs_debug_msg_data __msg_data___2 ; long tmp___13 ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___14 ; long tmp___15 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___16 ; int tmp___17 ; long tmp___18 ; { tmp = ldv__builtin_expect(cfs_wi_data.wi_init == 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_sched_destroy"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 311; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_wi_data.wi_init"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(cfs_wi_data.wi_stopping != 0, 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_sched_destroy"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 312; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!cfs_wi_data.wi_stopping"); lbug_with_loc(& __msg_data___0); } else { } spin_lock(& cfs_wi_data.wi_glock); if ((unsigned int )*((unsigned char *)sched + 227UL) != 0U) { tmp___1 = cfs_cdebug_show(64U, 1024U); if (tmp___1 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata.msg_fn = "cfs_wi_sched_destroy"; msgdata.msg_line = 317; msgdata.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata.msg_mask = 64; libcfs_debug_msg(& msgdata, "%s is in progress of stopping\n", (char *)(& sched->ws_name)); } else { } spin_unlock(& cfs_wi_data.wi_glock); return; } else { } tmp___2 = list_empty((struct list_head const *)(& sched->ws_list)); tmp___3 = ldv__builtin_expect(tmp___2 != 0, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_sched_destroy"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 322; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"!list_empty(&sched->ws_list)"); lbug_with_loc(& __msg_data___1); } else { } sched->ws_stopping = 1U; spin_unlock(& cfs_wi_data.wi_glock); i = 2; __wake_up(& sched->ws_waitq, 3U, 0, (void *)0); spin_lock(& cfs_wi_data.wi_glock); goto ldv_50180; ldv_50179: i = i + 1; tmp___5 = __is_po2((unsigned long long )i); tmp___6 = cfs_cdebug_show(tmp___5 != 0 ? 1024U : 512U, 1024U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___0.msg_fn = "cfs_wi_sched_destroy"; msgdata___0.msg_line = 334; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; i = i + 1; tmp___4 = __is_po2((unsigned long long )i); msgdata___0.msg_mask = tmp___4 != 0 ? 1024 : 512; libcfs_debug_msg(& msgdata___0, "waiting for %d threads of WI sched[%s] to terminate\n", (int )sched->ws_nthreads, (char *)(& sched->ws_name)); } else { } spin_unlock(& cfs_wi_data.wi_glock); tmp___7 = get_current(); tmp___7->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___8 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___8->state): : "memory", "cc"); goto ldv_50173; case 2UL: tmp___9 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___9->state): : "memory", "cc"); goto ldv_50173; case 4UL: tmp___10 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___10->state): : "memory", "cc"); goto ldv_50173; case 8UL: tmp___11 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___11->state): : "memory", "cc"); goto ldv_50173; default: __xchg_wrong_size(); } ldv_50173: tmp___12 = cfs_time_seconds(1); schedule_timeout(tmp___12 / 20L); spin_lock(& cfs_wi_data.wi_glock); ldv_50180: ; if ((int )sched->ws_nthreads > 0) { goto ldv_50179; } else { } list_del(& sched->ws_list); spin_unlock(& cfs_wi_data.wi_glock); tmp___13 = ldv__builtin_expect(sched->ws_nscheduled != 0, 0L); if (tmp___13 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_sched_destroy"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 345; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"sched->ws_nscheduled == 0"); lbug_with_loc(& __msg_data___2); } else { } s = 248; tmp___15 = ldv__builtin_expect((unsigned long )sched == (unsigned long )((struct cfs_wi_sched *)0), 0L); if (tmp___15 != 0L) { tmp___14 = cfs_cdebug_show(131072U, 1024U); if (tmp___14 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___1.msg_fn = "cfs_wi_sched_destroy"; msgdata___1.msg_line = 347; msgdata___1.msg_cdls = & cdls; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'sched\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c", 347); } else { } goto ldv_50186; } else { } atomic_sub(s, & libcfs_kmemory); tmp___17 = cfs_cdebug_show(16U, 1024U); if (tmp___17 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___2.msg_fn = "cfs_wi_sched_destroy"; msgdata___2.msg_line = 347; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___16 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'sched\': %d at %p (tot %d).\n", s, sched, tmp___16); } else { } tmp___18 = ldv__builtin_expect(s > 8192, 0L); if (tmp___18 != 0L) { vfree((void const *)sched); } else { kfree((void const *)sched); } ldv_50186: ; return; } } static char const __kstrtab_cfs_wi_sched_destroy[21U] = { 'c', 'f', 's', '_', 'w', 'i', '_', 's', 'c', 'h', 'e', 'd', '_', 'd', 'e', 's', 't', 'r', 'o', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_wi_sched_destroy ; struct kernel_symbol const __ksymtab_cfs_wi_sched_destroy = {(unsigned long )(& cfs_wi_sched_destroy), (char const *)(& __kstrtab_cfs_wi_sched_destroy)}; int cfs_wi_sched_create(char *name , struct cfs_cpt_table *cptab , int cpt , int nthrs , struct cfs_wi_sched **sched_pp ) { struct cfs_wi_sched *sched ; int rc ; struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data___1 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; struct libcfs_debug_msg_data __msg_data___2 ; int tmp___4 ; long tmp___5 ; void *tmp___6 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___7 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___8 ; int tmp___9 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___10 ; int tmp___11 ; long tmp___12 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; char name___0[16U] ; struct task_struct *task ; struct task_struct *__k ; struct task_struct *tmp___13 ; bool tmp___14 ; int tmp___15 ; bool tmp___16 ; int tmp___17 ; long tmp___18 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___19 ; { tmp = ldv__builtin_expect(cfs_wi_data.wi_init == 0, 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data.msg_fn = "cfs_wi_sched_create"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 358; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"cfs_wi_data.wi_init"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(cfs_wi_data.wi_stopping != 0, 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___0.msg_fn = "cfs_wi_sched_create"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 359; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!cfs_wi_data.wi_stopping"); lbug_with_loc(& __msg_data___0); } else { } if ((unsigned long )cptab != (unsigned long )((struct cfs_cpt_table *)0) && cpt != -1) { if (cpt < 0) { tmp___2 = 1; } else { tmp___1 = cfs_cpt_number(cptab); if (tmp___1 <= cpt) { tmp___2 = 1; } else { tmp___2 = 0; } } } else { tmp___2 = 0; } tmp___3 = ldv__builtin_expect((long )tmp___2, 0L); if (tmp___3 != 0L) { __msg_data___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___1.msg_fn = "cfs_wi_sched_create"; __msg_data___1.msg_subsys = 1024; __msg_data___1.msg_line = 361; __msg_data___1.msg_mask = 0; __msg_data___1.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___1.msg_mask = 262144; libcfs_debug_msg(& __msg_data___1, "ASSERTION( %s ) failed: \n", (char *)"cptab == ((void *)0) || cpt == (-1) || (cpt >= 0 && cpt < cfs_cpt_number(cptab))"); lbug_with_loc(& __msg_data___1); } else { } tmp___4 = preempt_count(); tmp___5 = ldv__builtin_expect((long )(((unsigned long )tmp___4 & 2096896UL) != 0UL && 1), 0L); if (tmp___5 != 0L) { __msg_data___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; __msg_data___2.msg_fn = "cfs_wi_sched_create"; __msg_data___2.msg_subsys = 1024; __msg_data___2.msg_line = 363; __msg_data___2.msg_mask = 0; __msg_data___2.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___2.msg_mask = 262144; libcfs_debug_msg(& __msg_data___2, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*sched))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___2); } else { } tmp___6 = kmalloc(248UL, 80U); sched = (struct cfs_wi_sched *)tmp___6; tmp___12 = ldv__builtin_expect((unsigned long )sched == (unsigned long )((struct cfs_wi_sched *)0), 0L); if (tmp___12 != 0L) { tmp___7 = cfs_cdebug_show(131072U, 1024U); if (tmp___7 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata.msg_fn = "cfs_wi_sched_create"; msgdata.msg_line = 363; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(sched)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c", 363, 248); } else { } tmp___9 = cfs_cdebug_show(131072U, 1024U); if (tmp___9 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___0.msg_fn = "cfs_wi_sched_create"; msgdata___0.msg_line = 363; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___8 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___8); } else { } } else { memset((void *)sched, 0, 248UL); atomic_add(248, & libcfs_kmemory); tmp___11 = cfs_cdebug_show(16U, 1024U); if (tmp___11 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___1.msg_fn = "cfs_wi_sched_create"; msgdata___1.msg_line = 363; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___10 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(sched)\': %d at %p (tot %d).\n", 248, sched, tmp___10); } else { } } if ((unsigned long )sched == (unsigned long )((struct cfs_wi_sched *)0)) { return (-12); } else { } strncpy((char *)(& sched->ws_name), (char const *)name, 16UL); sched->ws_name[15] = 0; sched->ws_cptab = cptab; sched->ws_cpt = cpt; spinlock_check(& sched->ws_lock); __raw_spin_lock_init(& sched->ws_lock.__annonCompField17.rlock, "&(&sched->ws_lock)->rlock", & __key); __init_waitqueue_head(& sched->ws_waitq, "&sched->ws_waitq", & __key___0); INIT_LIST_HEAD(& sched->ws_runq); INIT_LIST_HEAD(& sched->ws_rerunq); INIT_LIST_HEAD(& sched->ws_list); rc = 0; goto ldv_50223; ldv_50226: spin_lock(& cfs_wi_data.wi_glock); goto ldv_50219; ldv_50218: spin_unlock(& cfs_wi_data.wi_glock); schedule(); spin_lock(& cfs_wi_data.wi_glock); ldv_50219: ; if ((int )sched->ws_starting > 0) { goto ldv_50218; } else { } sched->ws_starting = (unsigned char )((int )sched->ws_starting + 1); spin_unlock(& cfs_wi_data.wi_glock); if ((unsigned long )sched->ws_cptab != (unsigned long )((struct cfs_cpt_table *)0) && sched->ws_cpt >= 0) { snprintf((char *)(& name___0), 16UL, "%s_%02d_%02u", (char *)(& sched->ws_name), sched->ws_cpt, (int )sched->ws_nthreads); } else { snprintf((char *)(& name___0), 16UL, "%s_%02u", (char *)(& sched->ws_name), (int )sched->ws_nthreads); } tmp___13 = kthread_create_on_node(& cfs_wi_scheduler, (void *)sched, -1, "%s", (char *)(& name___0)); __k = tmp___13; tmp___14 = IS_ERR((void const *)__k); if (tmp___14) { tmp___15 = 0; } else { tmp___15 = 1; } if (tmp___15) { wake_up_process(__k); } else { } task = __k; tmp___16 = IS_ERR((void const *)task); if (tmp___16) { tmp___17 = 0; } else { tmp___17 = 1; } if (tmp___17) { nthrs = nthrs - 1; goto ldv_50223; } else { } tmp___18 = PTR_ERR((void const *)task); rc = (int )tmp___18; tmp___19 = cfs_cdebug_show(131072U, 1024U); if (tmp___19 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___2.msg_fn = "cfs_wi_sched_create"; msgdata___2.msg_line = 410; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "Failed to create thread for WI scheduler %s: %d\n", (char *)(& name___0), rc); } else { } spin_lock(& cfs_wi_data.wi_glock); list_add(& sched->ws_list, & cfs_wi_data.wi_scheds); sched->ws_starting = (unsigned char )((int )sched->ws_starting - 1); spin_unlock(& cfs_wi_data.wi_glock); cfs_wi_sched_destroy(sched); return (rc); ldv_50223: ; if (nthrs > 0) { goto ldv_50226; } else { } spin_lock(& cfs_wi_data.wi_glock); list_add(& sched->ws_list, & cfs_wi_data.wi_scheds); spin_unlock(& cfs_wi_data.wi_glock); *sched_pp = sched; return (0); } } static char const __kstrtab_cfs_wi_sched_create[20U] = { 'c', 'f', 's', '_', 'w', 'i', '_', 's', 'c', 'h', 'e', 'd', '_', 'c', 'r', 'e', 'a', 't', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_wi_sched_create ; struct kernel_symbol const __ksymtab_cfs_wi_sched_create = {(unsigned long )(& cfs_wi_sched_create), (char const *)(& __kstrtab_cfs_wi_sched_create)}; int cfs_wi_startup(void) { struct lock_class_key __key ; { memset((void *)(& cfs_wi_data), 0, 96UL); spinlock_check(& cfs_wi_data.wi_glock); __raw_spin_lock_init(& cfs_wi_data.wi_glock.__annonCompField17.rlock, "&(&cfs_wi_data.wi_glock)->rlock", & __key); INIT_LIST_HEAD(& cfs_wi_data.wi_scheds); cfs_wi_data.wi_init = 1; return (0); } } void cfs_wi_shutdown(void) { struct cfs_wi_sched *sched ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct task_struct *tmp ; long volatile __ret ; struct task_struct *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; struct task_struct *tmp___3 ; long tmp___4 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___5 ; long tmp___6 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; int tmp___10 ; { spin_lock(& cfs_wi_data.wi_glock); cfs_wi_data.wi_stopping = 1; spin_unlock(& cfs_wi_data.wi_glock); __mptr = (struct list_head const *)cfs_wi_data.wi_scheds.next; sched = (struct cfs_wi_sched *)__mptr; goto ldv_50252; ldv_50251: sched->ws_stopping = 1U; __wake_up(& sched->ws_waitq, 3U, 0, (void *)0); __mptr___0 = (struct list_head const *)sched->ws_list.next; sched = (struct cfs_wi_sched *)__mptr___0; ldv_50252: ; if ((unsigned long )(& sched->ws_list) != (unsigned long )(& cfs_wi_data.wi_scheds)) { goto ldv_50251; } else { } __mptr___1 = (struct list_head const *)cfs_wi_data.wi_scheds.next; sched = (struct cfs_wi_sched *)__mptr___1; goto ldv_50270; ldv_50269: spin_lock(& cfs_wi_data.wi_glock); goto ldv_50267; ldv_50266: spin_unlock(& cfs_wi_data.wi_glock); tmp = get_current(); tmp->task_state_change = 0UL; __ret = 2L; switch (8UL) { case 1UL: tmp___0 = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp___0->state): : "memory", "cc"); goto ldv_50260; case 2UL: tmp___1 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_50260; case 4UL: tmp___2 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_50260; case 8UL: tmp___3 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___3->state): : "memory", "cc"); goto ldv_50260; default: __xchg_wrong_size(); } ldv_50260: tmp___4 = cfs_time_seconds(1); schedule_timeout(tmp___4 / 20L); spin_lock(& cfs_wi_data.wi_glock); ldv_50267: ; if (*((unsigned int *)sched + 56UL) != 0U) { goto ldv_50266; } else { } spin_unlock(& cfs_wi_data.wi_glock); __mptr___2 = (struct list_head const *)sched->ws_list.next; sched = (struct cfs_wi_sched *)__mptr___2; ldv_50270: ; if ((unsigned long )(& sched->ws_list) != (unsigned long )(& cfs_wi_data.wi_scheds)) { goto ldv_50269; } else { } goto ldv_50281; ldv_50280: __mptr___3 = (struct list_head const *)cfs_wi_data.wi_scheds.next; sched = (struct cfs_wi_sched *)__mptr___3; list_del(& sched->ws_list); s = 248; tmp___6 = ldv__builtin_expect((unsigned long )sched == (unsigned long )((struct cfs_wi_sched *)0), 0L); if (tmp___6 != 0L) { tmp___5 = cfs_cdebug_show(131072U, 1024U); if (tmp___5 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata.msg_fn = "cfs_wi_shutdown"; msgdata.msg_line = 474; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'sched\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c", 474); } else { } goto ldv_50278; } else { } atomic_sub(s, & libcfs_kmemory); tmp___8 = cfs_cdebug_show(16U, 1024U); if (tmp___8 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/workitem.c"; msgdata___0.msg_fn = "cfs_wi_shutdown"; msgdata___0.msg_line = 474; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___7 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'sched\': %d at %p (tot %d).\n", s, sched, tmp___7); } else { } tmp___9 = ldv__builtin_expect(s > 8192, 0L); if (tmp___9 != 0L) { vfree((void const *)sched); } else { kfree((void const *)sched); } ldv_50278: ; ldv_50281: tmp___10 = list_empty((struct list_head const *)(& cfs_wi_data.wi_scheds)); if (tmp___10 == 0) { goto ldv_50280; } else { } cfs_wi_data.wi_stopping = 0; cfs_wi_data.wi_init = 0; return; } } void ldv_mutex_unlock_355(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_356(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_357(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_358(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_359(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_360(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_361(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_mutex_trylock_378(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_373(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_376(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_379(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_374(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_375(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_377(struct mutex *ldv_func_arg1 ) ; struct cfs_cpt_table *cfs_cpt_table ; static char const __kstrtab_cfs_cpt_table[14U] = { 'c', 'f', 's', '_', 'c', 'p', 't', '_', 't', 'a', 'b', 'l', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_cpt_table ; struct kernel_symbol const __ksymtab_cfs_cpt_table = {(unsigned long )(& cfs_cpt_table), (char const *)(& __kstrtab_cfs_cpt_table)}; void ldv_mutex_unlock_373(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_374(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_375(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_376(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_377(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_378(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_379(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_396(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_391(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_394(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_397(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_392(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_393(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_395(struct mutex *ldv_func_arg1 ) ; void *cfs_percpt_alloc(struct cfs_cpt_table *cptab , unsigned int size ) ; void cfs_percpt_free(void *vars ) ; int cfs_percpt_number(void *vars ) ; void *cfs_percpt_current(void *vars ) ; void *cfs_percpt_index(void *vars , int idx ) ; void *cfs_array_alloc(int count , unsigned int size ) ; void cfs_array_free(void *vars ) ; void cfs_percpt_free(void *vars ) { struct cfs_var_array *arr ; int i ; void * const *__mptr ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int s___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; { __mptr = (void * const *)vars; arr = (struct cfs_var_array *)__mptr + 0xfffffffffffffff0UL; i = 0; goto ldv_50067; ldv_50066: ; if ((unsigned long )arr->va_ptrs[i] != (unsigned long )((void *)0)) { s = (int )arr->va_size; tmp___0 = ldv__builtin_expect((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata.msg_fn = "cfs_percpt_free"; msgdata.msg_line = 58; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'arr->va_ptrs[i]\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 58); } else { } goto ldv_50064; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___0.msg_fn = "cfs_percpt_free"; msgdata___0.msg_line = 58; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'arr->va_ptrs[i]\': %d at %p (tot %d).\n", s, arr->va_ptrs[i], tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)arr->va_ptrs[i]); } else { kfree((void const *)arr->va_ptrs[i]); } ldv_50064: ; } else { } i = i + 1; ldv_50067: ; if ((unsigned int )i < arr->va_count) { goto ldv_50066; } else { } s___0 = (int )((unsigned int )((unsigned long )arr->va_count + 2UL) * 8U); tmp___5 = ldv__builtin_expect((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0), 0L); if (tmp___5 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___1.msg_fn = "cfs_percpt_free"; msgdata___1.msg_line = 62; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'arr\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 62); } else { } goto ldv_50072; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___7 = cfs_cdebug_show(16U, 1024U); if (tmp___7 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___2.msg_fn = "cfs_percpt_free"; msgdata___2.msg_line = 62; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'arr\': %d at %p (tot %d).\n", s___0, arr, tmp___6); } else { } tmp___8 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___8 != 0L) { vfree((void const *)arr); } else { kfree((void const *)arr); } ldv_50072: ; return; } } static char const __kstrtab_cfs_percpt_free[16U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_free ; struct kernel_symbol const __ksymtab_cfs_percpt_free = {(unsigned long )(& cfs_percpt_free), (char const *)(& __kstrtab_cfs_percpt_free)}; void *cfs_percpt_alloc(struct cfs_cpt_table *cptab , unsigned int size ) { struct cfs_var_array *arr ; int count ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___10 ; long tmp___11 ; int tmp___12 ; void *tmp___13 ; int tmp___14 ; void *tmp___15 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___16 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___17 ; int tmp___18 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___19 ; int tmp___20 ; long tmp___21 ; { count = cfs_cpt_number(cptab); tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; __msg_data.msg_fn = "cfs_percpt_alloc"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 86; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((__builtin_offsetof(struct cfs_var_array, va_ptrs[count]))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } if (((unsigned long )count + 2UL) * 8UL <= 8192UL) { tmp___1 = kmalloc(((unsigned long )count + 2UL) * 8UL, 80U); tmp___3 = tmp___1; } else { tmp___2 = vmalloc(((unsigned long )count + 2UL) * 8UL); tmp___3 = tmp___2; } arr = (struct cfs_var_array *)tmp___3; tmp___9 = ldv__builtin_expect((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0), 0L); if (tmp___9 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata.msg_fn = "cfs_percpt_alloc"; msgdata.msg_line = 86; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(arr)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 86, (int )((unsigned int )((unsigned long )count + 2UL) * 8U)); } else { } tmp___6 = cfs_cdebug_show(131072U, 1024U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___0.msg_fn = "cfs_percpt_alloc"; msgdata___0.msg_line = 86; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___5); } else { } } else { memset((void *)arr, 0, ((unsigned long )count + 2UL) * 8UL); atomic_add((int )((unsigned int )((unsigned long )count + 2UL) * 8U), & libcfs_kmemory); tmp___8 = cfs_cdebug_show(16U, 1024U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___1.msg_fn = "cfs_percpt_alloc"; msgdata___1.msg_line = 86; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___7 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(arr)\': %d at %p (tot %d).\n", (int )((unsigned int )((unsigned long )count + 2UL) * 8U), arr, tmp___7); } else { } } if ((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0)) { return ((void *)0); } else { } size = (size + 63U) & 4294967232U; arr->va_size = size; arr->va_count = (unsigned int )count; arr->va_cptab = cptab; i = 0; goto ldv_50102; ldv_50101: tmp___10 = preempt_count(); tmp___11 = ldv__builtin_expect((long )(((unsigned long )tmp___10 & 2096896UL) != 0UL && 1), 0L); if (tmp___11 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; __msg_data___0.msg_fn = "cfs_percpt_alloc"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 95; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((size)) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } if (size <= 8192U) { tmp___12 = cfs_cpt_spread_node(cptab, i); tmp___13 = kmalloc_node((size_t )size, 80U, tmp___12); arr->va_ptrs[i] = tmp___13; } else { tmp___14 = cfs_cpt_spread_node(cptab, i); tmp___15 = vmalloc_node((unsigned long )size, tmp___14); arr->va_ptrs[i] = tmp___15; } tmp___21 = ldv__builtin_expect((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0), 0L); if (tmp___21 != 0L) { tmp___16 = cfs_cdebug_show(131072U, 1024U); if (tmp___16 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___2.msg_fn = "cfs_percpt_alloc"; msgdata___2.msg_line = 95; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LNET: out of memory at %s:%d (tried to alloc \'(arr->va_ptrs[i])\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 95, (int )size); } else { } tmp___18 = cfs_cdebug_show(131072U, 1024U); if (tmp___18 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___3.msg_fn = "cfs_percpt_alloc"; msgdata___3.msg_line = 95; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___17 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "LNET: %d total bytes allocated by lnet\n", tmp___17); } else { } } else { memset(arr->va_ptrs[i], 0, (size_t )size); atomic_add((int )size, & libcfs_kmemory); tmp___20 = cfs_cdebug_show(16U, 1024U); if (tmp___20 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___4.msg_fn = "cfs_percpt_alloc"; msgdata___4.msg_line = 95; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___19 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___4, "alloc \'(arr->va_ptrs[i])\': %d at %p (tot %d).\n", (int )size, arr->va_ptrs[i], tmp___19); } else { } } if ((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0)) { cfs_percpt_free((void *)(& arr->va_ptrs)); return ((void *)0); } else { } i = i + 1; ldv_50102: ; if (i < count) { goto ldv_50101; } else { } return ((void *)(& arr->va_ptrs)); } } static char const __kstrtab_cfs_percpt_alloc[17U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_alloc ; struct kernel_symbol const __ksymtab_cfs_percpt_alloc = {(unsigned long )(& cfs_percpt_alloc), (char const *)(& __kstrtab_cfs_percpt_alloc)}; int cfs_percpt_number(void *vars ) { struct cfs_var_array *arr ; void * const *__mptr ; { __mptr = (void * const *)vars; arr = (struct cfs_var_array *)__mptr + 0xfffffffffffffff0UL; return ((int )arr->va_count); } } static char const __kstrtab_cfs_percpt_number[18U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'n', 'u', 'm', 'b', 'e', 'r', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_number ; struct kernel_symbol const __ksymtab_cfs_percpt_number = {(unsigned long )(& cfs_percpt_number), (char const *)(& __kstrtab_cfs_percpt_number)}; void *cfs_percpt_current(void *vars ) { struct cfs_var_array *arr ; int cpt ; void * const *__mptr ; { __mptr = (void * const *)vars; arr = (struct cfs_var_array *)__mptr + 0xfffffffffffffff0UL; cpt = cfs_cpt_current(arr->va_cptab, 0); if (cpt < 0) { return ((void *)0); } else { } return (arr->va_ptrs[cpt]); } } static char const __kstrtab_cfs_percpt_current[19U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'c', 'u', 'r', 'r', 'e', 'n', 't', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_current ; struct kernel_symbol const __ksymtab_cfs_percpt_current = {(unsigned long )(& cfs_percpt_current), (char const *)(& __kstrtab_cfs_percpt_current)}; void *cfs_percpt_index(void *vars , int idx ) { struct cfs_var_array *arr ; void * const *__mptr ; struct libcfs_debug_msg_data __msg_data ; long tmp ; { __mptr = (void * const *)vars; arr = (struct cfs_var_array *)__mptr + 0xfffffffffffffff0UL; tmp = ldv__builtin_expect((long )(idx < 0 || (unsigned int )idx >= arr->va_count), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; __msg_data.msg_fn = "cfs_percpt_index"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 146; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"idx >= 0 && idx < arr->va_count"); lbug_with_loc(& __msg_data); } else { } return (arr->va_ptrs[idx]); } } static char const __kstrtab_cfs_percpt_index[17U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'i', 'n', 'd', 'e', 'x', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_index ; struct kernel_symbol const __ksymtab_cfs_percpt_index = {(unsigned long )(& cfs_percpt_index), (char const *)(& __kstrtab_cfs_percpt_index)}; void cfs_array_free(void *vars ) { struct cfs_var_array *arr ; int i ; void * const *__mptr ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp ; long tmp___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___1 ; int tmp___2 ; long tmp___3 ; int s___0 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___4 ; long tmp___5 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___6 ; int tmp___7 ; long tmp___8 ; { __mptr = (void * const *)vars; arr = (struct cfs_var_array *)__mptr + 0xfffffffffffffff0UL; i = 0; goto ldv_50171; ldv_50170: ; if ((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0)) { goto ldv_50163; } else { } s = (int )arr->va_size; tmp___0 = ldv__builtin_expect((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0), 0L); if (tmp___0 != 0L) { tmp = cfs_cdebug_show(131072U, 1024U); if (tmp != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata.msg_fn = "cfs_array_free"; msgdata.msg_line = 166; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'arr->va_ptrs[i]\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 166); } else { } goto ldv_50168; } else { } atomic_sub(s, & libcfs_kmemory); tmp___2 = cfs_cdebug_show(16U, 1024U); if (tmp___2 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___0.msg_fn = "cfs_array_free"; msgdata___0.msg_line = 166; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___1 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'arr->va_ptrs[i]\': %d at %p (tot %d).\n", s, arr->va_ptrs[i], tmp___1); } else { } tmp___3 = ldv__builtin_expect(s > 8192, 0L); if (tmp___3 != 0L) { vfree((void const *)arr->va_ptrs[i]); } else { kfree((void const *)arr->va_ptrs[i]); } ldv_50168: ; ldv_50163: i = i + 1; ldv_50171: ; if ((unsigned int )i < arr->va_count) { goto ldv_50170; } else { } s___0 = (int )((unsigned int )((unsigned long )arr->va_count + 2UL) * 8U); tmp___5 = ldv__builtin_expect((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0), 0L); if (tmp___5 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___1.msg_fn = "cfs_array_free"; msgdata___1.msg_line = 169; msgdata___1.msg_cdls = & cdls___0; msgdata___1.msg_mask = 131072; libcfs_debug_msg(& msgdata___1, "LIBCFS: free NULL \'arr\' (%d bytes) at %s:%d\n", s___0, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 169); } else { } goto ldv_50176; } else { } atomic_sub(s___0, & libcfs_kmemory); tmp___7 = cfs_cdebug_show(16U, 1024U); if (tmp___7 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___2.msg_fn = "cfs_array_free"; msgdata___2.msg_line = 169; msgdata___2.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___2.msg_mask = 16; tmp___6 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___2, "kfreed \'arr\': %d at %p (tot %d).\n", s___0, arr, tmp___6); } else { } tmp___8 = ldv__builtin_expect(s___0 > 8192, 0L); if (tmp___8 != 0L) { vfree((void const *)arr); } else { kfree((void const *)arr); } ldv_50176: ; return; } } static char const __kstrtab_cfs_array_free[15U] = { 'c', 'f', 's', '_', 'a', 'r', 'r', 'a', 'y', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_array_free ; struct kernel_symbol const __ksymtab_cfs_array_free = {(unsigned long )(& cfs_array_free), (char const *)(& __kstrtab_cfs_array_free)}; void *cfs_array_alloc(int count , unsigned int size ) { struct cfs_var_array *arr ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___4 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___5 ; int tmp___6 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___7 ; int tmp___8 ; long tmp___9 ; struct libcfs_debug_msg_data __msg_data___0 ; int tmp___10 ; long tmp___11 ; void *tmp___12 ; void *tmp___13 ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___14 ; struct cfs_debug_limit_state cdls___2 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___15 ; int tmp___16 ; struct libcfs_debug_msg_data msgdata___4 ; int tmp___17 ; int tmp___18 ; long tmp___19 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; __msg_data.msg_fn = "cfs_array_alloc"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 184; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((__builtin_offsetof(struct cfs_var_array, va_ptrs[count]))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } if (((unsigned long )count + 2UL) * 8UL <= 8192UL) { tmp___1 = kmalloc(((unsigned long )count + 2UL) * 8UL, 80U); tmp___3 = tmp___1; } else { tmp___2 = vmalloc(((unsigned long )count + 2UL) * 8UL); tmp___3 = tmp___2; } arr = (struct cfs_var_array *)tmp___3; tmp___9 = ldv__builtin_expect((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0), 0L); if (tmp___9 != 0L) { tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata.msg_fn = "cfs_array_alloc"; msgdata.msg_line = 184; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(arr)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 184, (int )((unsigned int )((unsigned long )count + 2UL) * 8U)); } else { } tmp___6 = cfs_cdebug_show(131072U, 1024U); if (tmp___6 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___0.msg_fn = "cfs_array_alloc"; msgdata___0.msg_line = 184; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___5); } else { } } else { memset((void *)arr, 0, ((unsigned long )count + 2UL) * 8UL); atomic_add((int )((unsigned int )((unsigned long )count + 2UL) * 8U), & libcfs_kmemory); tmp___8 = cfs_cdebug_show(16U, 1024U); if (tmp___8 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___1.msg_fn = "cfs_array_alloc"; msgdata___1.msg_line = 184; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___7 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(arr)\': %d at %p (tot %d).\n", (int )((unsigned int )((unsigned long )count + 2UL) * 8U), arr, tmp___7); } else { } } if ((unsigned long )arr == (unsigned long )((struct cfs_var_array *)0)) { return ((void *)0); } else { } arr->va_count = (unsigned int )count; arr->va_size = size; i = 0; goto ldv_50205; ldv_50204: tmp___10 = preempt_count(); tmp___11 = ldv__builtin_expect((long )(((unsigned long )tmp___10 & 2096896UL) != 0UL && 1), 0L); if (tmp___11 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; __msg_data___0.msg_fn = "cfs_array_alloc"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 192; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((size)) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data___0); } else { } if (size <= 8192U) { tmp___12 = kmalloc((size_t )size, 80U); arr->va_ptrs[i] = tmp___12; } else { tmp___13 = vmalloc((unsigned long )size); arr->va_ptrs[i] = tmp___13; } tmp___19 = ldv__builtin_expect((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0), 0L); if (tmp___19 != 0L) { tmp___14 = cfs_cdebug_show(131072U, 1024U); if (tmp___14 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___2.msg_fn = "cfs_array_alloc"; msgdata___2.msg_line = 192; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LNET: out of memory at %s:%d (tried to alloc \'(arr->va_ptrs[i])\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c", 192, (int )size); } else { } tmp___16 = cfs_cdebug_show(131072U, 1024U); if (tmp___16 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___3.msg_fn = "cfs_array_alloc"; msgdata___3.msg_line = 192; msgdata___3.msg_cdls = & cdls___2; msgdata___3.msg_mask = 131072; tmp___15 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "LNET: %d total bytes allocated by lnet\n", tmp___15); } else { } } else { memset(arr->va_ptrs[i], 0, (size_t )size); atomic_add((int )size, & libcfs_kmemory); tmp___18 = cfs_cdebug_show(16U, 1024U); if (tmp___18 != 0) { msgdata___4.msg_subsys = 1024; msgdata___4.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_mem.c"; msgdata___4.msg_fn = "cfs_array_alloc"; msgdata___4.msg_line = 192; msgdata___4.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___4.msg_mask = 16; tmp___17 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___4, "alloc \'(arr->va_ptrs[i])\': %d at %p (tot %d).\n", (int )size, arr->va_ptrs[i], tmp___17); } else { } } if ((unsigned long )arr->va_ptrs[i] == (unsigned long )((void *)0)) { cfs_array_free((void *)(& arr->va_ptrs)); return ((void *)0); } else { } i = i + 1; ldv_50205: ; if (i < count) { goto ldv_50204; } else { } return ((void *)(& arr->va_ptrs)); } } static char const __kstrtab_cfs_array_alloc[16U] = { 'c', 'f', 's', '_', 'a', 'r', 'r', 'a', 'y', '_', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_array_alloc ; struct kernel_symbol const __ksymtab_cfs_array_alloc = {(unsigned long )(& cfs_array_alloc), (char const *)(& __kstrtab_cfs_array_alloc)}; void ldv_mutex_unlock_391(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_392(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_393(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_394(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_395(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_396(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_397(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void rep_nop(void) { { __asm__ volatile ("rep; nop": : : "memory"); return; } } __inline static void cpu_relax(void) { { rep_nop(); return; } } int ldv_mutex_trylock_414(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_409(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_412(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_415(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_410(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_411(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_413(struct mutex *ldv_func_arg1 ) ; struct cfs_percpt_lock *cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab ) ; void cfs_percpt_lock_free(struct cfs_percpt_lock *pcl ) ; void cfs_percpt_lock(struct cfs_percpt_lock *pcl , int index ) ; void cfs_percpt_unlock(struct cfs_percpt_lock *pcl , int index ) ; atomic_t **cfs_percpt_atomic_alloc(struct cfs_cpt_table *cptab , int init_val ) ; void cfs_percpt_atomic_free(atomic_t **refs ) ; int cfs_percpt_atomic_summary(atomic_t **refs ) ; void cfs_percpt_lock_free(struct cfs_percpt_lock *pcl ) { struct libcfs_debug_msg_data __msg_data ; long tmp ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___0 ; int s ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___1 ; long tmp___2 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; long tmp___5 ; { tmp = ldv__builtin_expect((unsigned long )pcl->pcl_locks == (unsigned long )((spinlock_t **)0), 0L); if (tmp != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data.msg_fn = "cfs_percpt_lock_free"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 42; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"pcl->pcl_locks != ((void *)0)"); lbug_with_loc(& __msg_data); } else { } tmp___0 = ldv__builtin_expect(pcl->pcl_locked != 0U, 0L); if (tmp___0 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data___0.msg_fn = "cfs_percpt_lock_free"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 43; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!pcl->pcl_locked"); lbug_with_loc(& __msg_data___0); } else { } cfs_percpt_free((void *)pcl->pcl_locks); s = 24; tmp___2 = ldv__builtin_expect((unsigned long )pcl == (unsigned long )((struct cfs_percpt_lock *)0), 0L); if (tmp___2 != 0L) { tmp___1 = cfs_cdebug_show(131072U, 1024U); if (tmp___1 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata.msg_fn = "cfs_percpt_lock_free"; msgdata.msg_line = 46; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LIBCFS: free NULL \'pcl\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c", 46); } else { } goto ldv_50057; } else { } atomic_sub(s, & libcfs_kmemory); tmp___4 = cfs_cdebug_show(16U, 1024U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata___0.msg_fn = "cfs_percpt_lock_free"; msgdata___0.msg_line = 46; msgdata___0.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___0.msg_mask = 16; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "kfreed \'pcl\': %d at %p (tot %d).\n", s, pcl, tmp___3); } else { } tmp___5 = ldv__builtin_expect(s > 8192, 0L); if (tmp___5 != 0L) { vfree((void const *)pcl); } else { kfree((void const *)pcl); } ldv_50057: ; return; } } static char const __kstrtab_cfs_percpt_lock_free[21U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'l', 'o', 'c', 'k', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_lock_free ; struct kernel_symbol const __ksymtab_cfs_percpt_lock_free = {(unsigned long )(& cfs_percpt_lock_free), (char const *)(& __kstrtab_cfs_percpt_lock_free)}; struct cfs_percpt_lock *cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab ) { struct cfs_percpt_lock *pcl ; spinlock_t *lock ; int i ; struct libcfs_debug_msg_data __msg_data ; int tmp ; long tmp___0 ; void *tmp___1 ; struct cfs_debug_limit_state cdls ; struct libcfs_debug_msg_data msgdata ; int tmp___2 ; struct cfs_debug_limit_state cdls___0 ; struct libcfs_debug_msg_data msgdata___0 ; int tmp___3 ; int tmp___4 ; struct libcfs_debug_msg_data msgdata___1 ; int tmp___5 ; int tmp___6 ; long tmp___7 ; void *tmp___8 ; int s ; struct cfs_debug_limit_state cdls___1 ; struct libcfs_debug_msg_data msgdata___2 ; int tmp___9 ; long tmp___10 ; struct libcfs_debug_msg_data msgdata___3 ; int tmp___11 ; int tmp___12 ; long tmp___13 ; struct lock_class_key __key ; int tmp___14 ; { tmp = preempt_count(); tmp___0 = ldv__builtin_expect((long )(((unsigned long )tmp & 2096896UL) != 0UL && 1), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data.msg_fn = "cfs_percpt_lock_alloc"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 65; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"!((preempt_count() & ((((1UL << (4))-1) << ((0 + 8) + 8)) | (((1UL << (8))-1) << (0 + 8)) | (((1UL << (1))-1) << (((0 + 8) + 8) + 4))))) || (((sizeof(*pcl))) <= (2 << 12) && (((((( gfp_t)0x10u) | (( gfp_t)0x40u)))) & (( gfp_t)0x10u)) == 0)"); lbug_with_loc(& __msg_data); } else { } tmp___1 = kmalloc(24UL, 80U); pcl = (struct cfs_percpt_lock *)tmp___1; tmp___7 = ldv__builtin_expect((unsigned long )pcl == (unsigned long )((struct cfs_percpt_lock *)0), 0L); if (tmp___7 != 0L) { tmp___2 = cfs_cdebug_show(131072U, 1024U); if (tmp___2 != 0) { msgdata.msg_subsys = 1024; msgdata.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata.msg_fn = "cfs_percpt_lock_alloc"; msgdata.msg_line = 65; msgdata.msg_cdls = & cdls; msgdata.msg_mask = 131072; libcfs_debug_msg(& msgdata, "LNET: out of memory at %s:%d (tried to alloc \'(pcl)\' = %d)\n", (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c", 65, 24); } else { } tmp___4 = cfs_cdebug_show(131072U, 1024U); if (tmp___4 != 0) { msgdata___0.msg_subsys = 1024; msgdata___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata___0.msg_fn = "cfs_percpt_lock_alloc"; msgdata___0.msg_line = 65; msgdata___0.msg_cdls = & cdls___0; msgdata___0.msg_mask = 131072; tmp___3 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___0, "LNET: %d total bytes allocated by lnet\n", tmp___3); } else { } } else { memset((void *)pcl, 0, 24UL); atomic_add(24, & libcfs_kmemory); tmp___6 = cfs_cdebug_show(16U, 1024U); if (tmp___6 != 0) { msgdata___1.msg_subsys = 1024; msgdata___1.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata___1.msg_fn = "cfs_percpt_lock_alloc"; msgdata___1.msg_line = 65; msgdata___1.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___1.msg_mask = 16; tmp___5 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___1, "alloc \'(pcl)\': %d at %p (tot %d).\n", 24, pcl, tmp___5); } else { } } if ((unsigned long )pcl == (unsigned long )((struct cfs_percpt_lock *)0)) { return ((struct cfs_percpt_lock *)0); } else { } pcl->pcl_cptab = cptab; tmp___8 = cfs_percpt_alloc(cptab, 72U); pcl->pcl_locks = (spinlock_t **)tmp___8; if ((unsigned long )pcl->pcl_locks == (unsigned long )((spinlock_t **)0)) { s = 24; tmp___10 = ldv__builtin_expect((unsigned long )pcl == (unsigned long )((struct cfs_percpt_lock *)0), 0L); if (tmp___10 != 0L) { tmp___9 = cfs_cdebug_show(131072U, 1024U); if (tmp___9 != 0) { msgdata___2.msg_subsys = 1024; msgdata___2.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata___2.msg_fn = "cfs_percpt_lock_alloc"; msgdata___2.msg_line = 72; msgdata___2.msg_cdls = & cdls___1; msgdata___2.msg_mask = 131072; libcfs_debug_msg(& msgdata___2, "LIBCFS: free NULL \'pcl\' (%d bytes) at %s:%d\n", s, (char *)"/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c", 72); } else { } goto ldv_50082; } else { } atomic_sub(s, & libcfs_kmemory); tmp___12 = cfs_cdebug_show(16U, 1024U); if (tmp___12 != 0) { msgdata___3.msg_subsys = 1024; msgdata___3.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; msgdata___3.msg_fn = "cfs_percpt_lock_alloc"; msgdata___3.msg_line = 72; msgdata___3.msg_cdls = (struct cfs_debug_limit_state *)0; msgdata___3.msg_mask = 16; tmp___11 = atomic_read((atomic_t const *)(& libcfs_kmemory)); libcfs_debug_msg(& msgdata___3, "kfreed \'pcl\': %d at %p (tot %d).\n", s, pcl, tmp___11); } else { } tmp___13 = ldv__builtin_expect(s > 8192, 0L); if (tmp___13 != 0L) { vfree((void const *)pcl); } else { kfree((void const *)pcl); } ldv_50082: ; return ((struct cfs_percpt_lock *)0); } else { } i = 0; goto ldv_50086; ldv_50085: spinlock_check(lock); __raw_spin_lock_init(& lock->__annonCompField17.rlock, "&(lock)->rlock", & __key); i = i + 1; ldv_50086: tmp___14 = cfs_percpt_number((void *)pcl->pcl_locks); if (tmp___14 > i) { lock = *(pcl->pcl_locks + (unsigned long )i); if ((unsigned long )lock != (unsigned long )((spinlock_t *)0)) { goto ldv_50085; } else { goto ldv_50087; } } else { } ldv_50087: ; return (pcl); } } static char const __kstrtab_cfs_percpt_lock_alloc[22U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'l', 'o', 'c', 'k', '_', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_lock_alloc ; struct kernel_symbol const __ksymtab_cfs_percpt_lock_alloc = {(unsigned long )(& cfs_percpt_lock_alloc), (char const *)(& __kstrtab_cfs_percpt_lock_alloc)}; void cfs_percpt_lock(struct cfs_percpt_lock *pcl , int index ) { int ncpt ; int tmp ; int i ; struct libcfs_debug_msg_data __msg_data ; long tmp___0 ; long tmp___1 ; struct libcfs_debug_msg_data __msg_data___0 ; long tmp___2 ; { tmp = cfs_cpt_number(pcl->pcl_cptab); ncpt = tmp; tmp___0 = ldv__builtin_expect((long )(index < -1 || index >= ncpt), 0L); if (tmp___0 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data.msg_fn = "cfs_percpt_lock"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 98; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"index >= CFS_PERCPT_LOCK_EX && index < ncpt"); lbug_with_loc(& __msg_data); } else { } if (ncpt == 1) { index = 0; } else { goto ldv_50104; ldv_50103: cpu_relax(); ldv_50104: ; if (pcl->pcl_locked != 0U) { goto ldv_50103; } else { } } tmp___1 = ldv__builtin_expect(index != -1, 1L); if (tmp___1 != 0L) { spin_lock(*(pcl->pcl_locks + (unsigned long )index)); return; } else { } i = 0; goto ldv_50108; ldv_50107: spin_lock(*(pcl->pcl_locks + (unsigned long )i)); if (i == 0) { tmp___2 = ldv__builtin_expect(pcl->pcl_locked != 0U, 0L); if (tmp___2 != 0L) { __msg_data___0.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data___0.msg_fn = "cfs_percpt_lock"; __msg_data___0.msg_subsys = 1024; __msg_data___0.msg_line = 116; __msg_data___0.msg_mask = 0; __msg_data___0.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data___0.msg_mask = 262144; libcfs_debug_msg(& __msg_data___0, "ASSERTION( %s ) failed: \n", (char *)"!pcl->pcl_locked"); lbug_with_loc(& __msg_data___0); } else { } pcl->pcl_locked = 1U; } else { } i = i + 1; ldv_50108: ; if (i < ncpt) { goto ldv_50107; } else { } return; } } static char const __kstrtab_cfs_percpt_lock[16U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'l', 'o', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_lock ; struct kernel_symbol const __ksymtab_cfs_percpt_lock = {(unsigned long )(& cfs_percpt_lock), (char const *)(& __kstrtab_cfs_percpt_lock)}; void cfs_percpt_unlock(struct cfs_percpt_lock *pcl , int index ) { int ncpt ; int tmp ; int i ; long tmp___0 ; struct libcfs_debug_msg_data __msg_data ; long tmp___1 ; { tmp = cfs_cpt_number(pcl->pcl_cptab); ncpt = tmp; index = ncpt != 1 ? index : 0; tmp___0 = ldv__builtin_expect(index != -1, 1L); if (tmp___0 != 0L) { spin_unlock(*(pcl->pcl_locks + (unsigned long )index)); return; } else { } i = ncpt + -1; goto ldv_50127; ldv_50126: ; if (i == 0) { tmp___1 = ldv__builtin_expect(pcl->pcl_locked == 0U, 0L); if (tmp___1 != 0L) { __msg_data.msg_file = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/7235/dscv_tempdir/dscv/ri/32_7a/drivers/staging/lustre/lustre/libcfs/libcfs_lock.c"; __msg_data.msg_fn = "cfs_percpt_unlock"; __msg_data.msg_subsys = 1024; __msg_data.msg_line = 141; __msg_data.msg_mask = 0; __msg_data.msg_cdls = (struct cfs_debug_limit_state *)0; __msg_data.msg_mask = 262144; libcfs_debug_msg(& __msg_data, "ASSERTION( %s ) failed: \n", (char *)"pcl->pcl_locked"); lbug_with_loc(& __msg_data); } else { } pcl->pcl_locked = 0U; } else { } spin_unlock(*(pcl->pcl_locks + (unsigned long )i)); i = i - 1; ldv_50127: ; if (i >= 0) { goto ldv_50126; } else { } return; } } static char const __kstrtab_cfs_percpt_unlock[18U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'u', 'n', 'l', 'o', 'c', 'k', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_unlock ; struct kernel_symbol const __ksymtab_cfs_percpt_unlock = {(unsigned long )(& cfs_percpt_unlock), (char const *)(& __kstrtab_cfs_percpt_unlock)}; void cfs_percpt_atomic_free(atomic_t **refs ) { { cfs_percpt_free((void *)refs); return; } } static char const __kstrtab_cfs_percpt_atomic_free[23U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'a', 't', 'o', 'm', 'i', 'c', '_', 'f', 'r', 'e', 'e', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_free ; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_free = {(unsigned long )(& cfs_percpt_atomic_free), (char const *)(& __kstrtab_cfs_percpt_atomic_free)}; atomic_t **cfs_percpt_atomic_alloc(struct cfs_cpt_table *cptab , int init_val ) { atomic_t **refs ; atomic_t *ref ; int i ; void *tmp ; int tmp___0 ; { tmp = cfs_percpt_alloc(cptab, 4U); refs = (atomic_t **)tmp; if ((unsigned long )refs == (unsigned long )((atomic_t **)0)) { return ((atomic_t **)0); } else { } i = 0; goto ldv_50155; ldv_50154: atomic_set(ref, init_val); i = i + 1; ldv_50155: tmp___0 = cfs_percpt_number((void *)refs); if (tmp___0 > i) { ref = *(refs + (unsigned long )i); if ((unsigned long )ref != (unsigned long )((atomic_t *)0)) { goto ldv_50154; } else { goto ldv_50156; } } else { } ldv_50156: ; return (refs); } } static char const __kstrtab_cfs_percpt_atomic_alloc[24U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'a', 't', 'o', 'm', 'i', 'c', '_', 'a', 'l', 'l', 'o', 'c', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_alloc ; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_alloc = {(unsigned long )(& cfs_percpt_atomic_alloc), (char const *)(& __kstrtab_cfs_percpt_atomic_alloc)}; int cfs_percpt_atomic_summary(atomic_t **refs ) { atomic_t *ref ; int i ; int val ; int tmp ; int tmp___0 ; { val = 0; i = 0; goto ldv_50172; ldv_50171: tmp = atomic_read((atomic_t const *)ref); val = tmp + val; i = i + 1; ldv_50172: tmp___0 = cfs_percpt_number((void *)refs); if (tmp___0 > i) { ref = *(refs + (unsigned long )i); if ((unsigned long )ref != (unsigned long )((atomic_t *)0)) { goto ldv_50171; } else { goto ldv_50173; } } else { } ldv_50173: ; return (val); } } static char const __kstrtab_cfs_percpt_atomic_summary[26U] = { 'c', 'f', 's', '_', 'p', 'e', 'r', 'c', 'p', 't', '_', 'a', 't', 'o', 'm', 'i', 'c', '_', 's', 'u', 'm', 'm', 'a', 'r', 'y', '\000'}; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_summary ; struct kernel_symbol const __ksymtab_cfs_percpt_atomic_summary = {(unsigned long )(& cfs_percpt_atomic_summary), (char const *)(& __kstrtab_cfs_percpt_atomic_summary)}; void ldv_mutex_unlock_409(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_410(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_411(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_412(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_413(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_414(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_415(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static void ldv_error(void) { { ERROR: ; {reach_error();} } } __inline static int ldv_undef_int_negative(void) { int ret ; int tmp ; { tmp = ldv_undef_int(); ret = tmp; if (ret >= 0) { ldv_stop(); } else { } return (ret); } } bool ldv_is_err(void const *ptr ) { { return ((unsigned long )ptr > 2012UL); } } void *ldv_err_ptr(long error ) { { return ((void *)(2012L - error)); } } long ldv_ptr_err(void const *ptr ) { { return ((long )(2012UL - (unsigned long )ptr)); } } bool ldv_is_err_or_null(void const *ptr ) { bool tmp ; int tmp___0 ; { if ((unsigned long )ptr == (unsigned long )((void const *)0)) { tmp___0 = 1; } else { tmp = ldv_is_err(ptr); if ((int )tmp) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((bool )tmp___0); } } static int ldv_mutex_cfs_trace_thread_mutex = 1; int ldv_mutex_lock_interruptible_cfs_trace_thread_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_cfs_trace_thread_mutex = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_cfs_trace_thread_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_cfs_trace_thread_mutex = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_cfs_trace_thread_mutex(struct mutex *lock ) { { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } ldv_mutex_cfs_trace_thread_mutex = 2; return; } } int ldv_mutex_trylock_cfs_trace_thread_mutex(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_cfs_trace_thread_mutex = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_cfs_trace_thread_mutex(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_cfs_trace_thread_mutex = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_cfs_trace_thread_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cfs_trace_thread_mutex == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_cfs_trace_thread_mutex(struct mutex *lock ) { { if (ldv_mutex_cfs_trace_thread_mutex != 2) { ldv_error(); } else { } ldv_mutex_cfs_trace_thread_mutex = 1; return; } } void ldv_usb_lock_device_cfs_trace_thread_mutex(void) { { ldv_mutex_lock_cfs_trace_thread_mutex((struct mutex *)0); return; } } int ldv_usb_trylock_device_cfs_trace_thread_mutex(void) { int tmp ; { tmp = ldv_mutex_trylock_cfs_trace_thread_mutex((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_cfs_trace_thread_mutex(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_cfs_trace_thread_mutex((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_cfs_trace_thread_mutex(void) { { ldv_mutex_unlock_cfs_trace_thread_mutex((struct mutex *)0); return; } } static int ldv_mutex_cpt_mutex_of_cfs_cpt_data = 1; int ldv_mutex_lock_interruptible_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_cpt_mutex_of_cfs_cpt_data = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_cpt_mutex_of_cfs_cpt_data = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } ldv_mutex_cpt_mutex_of_cfs_cpt_data = 2; return; } } int ldv_mutex_trylock_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_cpt_mutex_of_cfs_cpt_data = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_cpt_mutex_of_cfs_cpt_data(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_cpt_mutex_of_cfs_cpt_data = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data(struct mutex *lock ) { { if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 2) { ldv_error(); } else { } ldv_mutex_cpt_mutex_of_cfs_cpt_data = 1; return; } } void ldv_usb_lock_device_cpt_mutex_of_cfs_cpt_data(void) { { ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data((struct mutex *)0); return; } } int ldv_usb_trylock_device_cpt_mutex_of_cfs_cpt_data(void) { int tmp ; { tmp = ldv_mutex_trylock_cpt_mutex_of_cfs_cpt_data((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_cpt_mutex_of_cfs_cpt_data(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_cpt_mutex_of_cfs_cpt_data((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_cpt_mutex_of_cfs_cpt_data(void) { { ldv_mutex_unlock_cpt_mutex_of_cfs_cpt_data((struct mutex *)0); return; } } static int ldv_mutex_i_mutex_of_inode = 1; int ldv_mutex_lock_interruptible_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_i_mutex_of_inode = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_i_mutex_of_inode = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_i_mutex_of_inode(struct mutex *lock ) { { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } ldv_mutex_i_mutex_of_inode = 2; return; } } int ldv_mutex_trylock_i_mutex_of_inode(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_i_mutex_of_inode = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_i_mutex_of_inode(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_i_mutex_of_inode = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_i_mutex_of_inode(struct mutex *lock ) { { if (ldv_mutex_i_mutex_of_inode != 2) { ldv_error(); } else { } ldv_mutex_i_mutex_of_inode = 1; return; } } void ldv_usb_lock_device_i_mutex_of_inode(void) { { ldv_mutex_lock_i_mutex_of_inode((struct mutex *)0); return; } } int ldv_usb_trylock_device_i_mutex_of_inode(void) { int tmp ; { tmp = ldv_mutex_trylock_i_mutex_of_inode((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_i_mutex_of_inode(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_i_mutex_of_inode((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_i_mutex_of_inode(void) { { ldv_mutex_unlock_i_mutex_of_inode((struct mutex *)0); return; } } static int ldv_mutex_lock = 1; int ldv_mutex_lock_interruptible_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_lock = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_lock = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_lock(struct mutex *lock ) { { if (ldv_mutex_lock != 1) { ldv_error(); } else { } ldv_mutex_lock = 2; return; } } int ldv_mutex_trylock_lock(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_lock != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_lock = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_lock(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_lock != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_lock = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_lock(struct mutex *lock ) { { if (ldv_mutex_lock != 2) { ldv_error(); } else { } ldv_mutex_lock = 1; return; } } void ldv_usb_lock_device_lock(void) { { ldv_mutex_lock_lock((struct mutex *)0); return; } } int ldv_usb_trylock_device_lock(void) { int tmp ; { tmp = ldv_mutex_trylock_lock((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_lock(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_lock((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_lock(void) { { ldv_mutex_unlock_lock((struct mutex *)0); return; } } static int ldv_mutex_mutex_of_device = 1; int ldv_mutex_lock_interruptible_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_mutex_of_device = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_mutex_of_device = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_mutex_of_device(struct mutex *lock ) { { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } ldv_mutex_mutex_of_device = 2; return; } } int ldv_mutex_trylock_mutex_of_device(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_mutex_of_device = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_mutex_of_device(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_mutex_of_device = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_mutex_of_device(struct mutex *lock ) { { if (ldv_mutex_mutex_of_device != 2) { ldv_error(); } else { } ldv_mutex_mutex_of_device = 1; return; } } void ldv_usb_lock_device_mutex_of_device(void) { { ldv_mutex_lock_mutex_of_device((struct mutex *)0); return; } } int ldv_usb_trylock_device_mutex_of_device(void) { int tmp ; { tmp = ldv_mutex_trylock_mutex_of_device((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_mutex_of_device(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_mutex_of_device((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_mutex_of_device(void) { { ldv_mutex_unlock_mutex_of_device((struct mutex *)0); return; } } void ldv_check_final_state(void) { { if (ldv_mutex_cfs_trace_thread_mutex != 1) { ldv_error(); } else { } if (ldv_mutex_cpt_mutex_of_cfs_cpt_data != 1) { ldv_error(); } else { } if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } if (ldv_mutex_lock != 1) { ldv_error(); } else { } if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } return; } } #include "model/linux-4.2-rc1.tar.xz-32_7a-drivers--staging--lustre--lustre--libcfs--libcfs.ko-entry_point_true-unreach-call.cil.out.env.c" #include "model/common.env.c"