/linux-4.1.27/include/linux/ |
D | preempt_mask.h | 53 #define hardirq_count() (preempt_count() & HARDIRQ_MASK) 54 #define softirq_count() (preempt_count() & SOFTIRQ_MASK) 55 #define irq_count() (preempt_count() & (HARDIRQ_MASK | SOFTIRQ_MASK \ 72 #define in_nmi() (preempt_count() & NMI_MASK) 110 #define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != 0) 117 ((preempt_count() & ~PREEMPT_ACTIVE) != PREEMPT_DISABLE_OFFSET) 120 # define preemptible() (preempt_count() == 0 && !irqs_disabled())
|
D | bit_spinlock.h | 93 return preempt_count(); in bit_spin_is_locked()
|
D | rcupdate.h | 512 return lockdep_opinion || preempt_count() != 0 || irqs_disabled(); in rcu_read_lock_sched_held() 539 return preempt_count() != 0 || irqs_disabled(); in rcu_read_lock_sched_held()
|
D | ftrace_event.h | 67 unsigned char preempt_count; member
|
/linux-4.1.27/include/asm-generic/ |
D | preempt.h | 8 static __always_inline int preempt_count(void) in preempt_count() function 10 return current_thread_info()->preempt_count; in preempt_count() 15 return ¤t_thread_info()->preempt_count; in preempt_count_ptr() 27 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 31 task_thread_info(p)->preempt_count = PREEMPT_ENABLED; \ 76 return unlikely(preempt_count() == preempt_offset && in should_resched()
|
/linux-4.1.27/arch/sh/kernel/ |
D | irq.c | 94 irqctx->tinfo.preempt_count = in handle_one_irq() 95 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | in handle_one_irq() 96 (curctx->tinfo.preempt_count & SOFTIRQ_MASK); in handle_one_irq() 128 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; in irq_ctx_init() 136 irqctx->tinfo.preempt_count = 0; in irq_ctx_init()
|
D | asm-offsets.c | 26 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/metag/kernel/ |
D | irq.c | 87 irqctx->tinfo.preempt_count = in do_IRQ() 88 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | in do_IRQ() 89 (curctx->tinfo.preempt_count & SOFTIRQ_MASK); in do_IRQ() 136 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; in irq_ctx_init() 144 irqctx->tinfo.preempt_count = 0; in irq_ctx_init()
|
/linux-4.1.27/arch/cris/include/asm/ |
D | thread_info.h | 33 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 54 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/lib/ |
D | smp_processor_id.c | 15 if (likely(preempt_count())) in check_preemption_disabled() 43 what1, what2, preempt_count() - 1, current->comm, current->pid); in check_preemption_disabled()
|
D | locking-selftest.c | 972 unsigned long saved_preempt_count = preempt_count(); in dotest()
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | thread_info.h | 30 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 40 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/score/include/asm/ |
D | thread_info.h | 36 int preempt_count; member 56 .preempt_count = 1, \
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | thread_info.h | 42 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 57 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/c6x/include/asm/ |
D | thread_info.h | 45 int preempt_count; /* 0 = preemptable, <0 = BUG */ member 59 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/arc/include/asm/ |
D | thread_info.h | 43 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 60 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/frv/include/asm/ |
D | thread_info.h | 37 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 63 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/um/include/asm/ |
D | thread_info.h | 19 int preempt_count; /* 0 => preemptable, member 32 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/nios2/include/asm/ |
D | thread_info.h | 44 int preempt_count; /* 0 => preemptable,<0 => BUG */ member 62 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/openrisc/include/asm/ |
D | thread_info.h | 53 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 77 .preempt_count = 1, \
|
/linux-4.1.27/arch/hexagon/include/asm/ |
D | thread_info.h | 52 int preempt_count; /* 0=>preemptible,<0=>BUG */ member 81 .preempt_count = 1, \
|
/linux-4.1.27/arch/s390/include/asm/ |
D | thread_info.h | 35 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 50 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | thread_info_32.h | 32 int preempt_count; /* 0 => preemptable, member 62 .preempt_count = INIT_PREEMPT_COUNT, \
|
D | thread_info_64.h | 46 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 119 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/avr32/include/asm/ |
D | thread_info.h | 25 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 39 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/m32r/include/asm/ |
D | thread_info.h | 30 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 54 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/xtensa/include/asm/ |
D | thread_info.h | 50 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 76 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | thread_info.h | 15 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member 24 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/kernel/trace/ |
D | trace_irqsoff.c | 43 return ((trace_type & TRACER_PREEMPT_OFF) && preempt_count()); in preempt_trace() 148 trace_function(tr, ip, parent_ip, flags, preempt_count()); in irqsoff_tracer_call() 188 pc = preempt_count(); in irqsoff_graph_entry() 205 pc = preempt_count(); in irqsoff_graph_return() 326 pc = preempt_count(); in check_critical_timing() 391 __trace_function(tr, ip, parent_ip, flags, preempt_count()); in start_critical_timing() 425 __trace_function(tr, ip, parent_ip, flags, preempt_count()); in stop_critical_timing()
|
D | trace_sched_wakeup.c | 87 *pc = preempt_count(); in func_prolog_preempt_disable() 450 pc = preempt_count(); in probe_wakeup_sched_switch() 544 pc = preempt_count(); in probe_wakeup()
|
D | trace_mmiotrace.c | 305 int pc = preempt_count(); in __trace_mmiotrace_rw() 335 int pc = preempt_count(); in __trace_mmiotrace_map()
|
D | trace_functions.c | 137 pc = preempt_count(); in function_trace_call() 180 pc = preempt_count(); in function_stack_trace_call()
|
D | trace_syscalls.c | 325 pc = preempt_count(); in ftrace_syscall_enter() 370 pc = preempt_count(); in ftrace_syscall_exit()
|
D | trace_selftest.c | 875 if (preempt_count()) { in trace_selftest_startup_preemptoff() 937 if (preempt_count()) { in trace_selftest_startup_preemptirqsoff()
|
D | trace_branch.c | 61 pc = preempt_count(); in probe_likely_condition()
|
D | trace_event_perf.c | 277 pc = preempt_count(); in perf_trace_buf_prepare()
|
D | trace_output.c | 470 if (entry->preempt_count) in trace_print_lat_fmt() 471 trace_seq_printf(s, "%x", entry->preempt_count); in trace_print_lat_fmt() 614 entry->preempt_count, iter->idx); in trace_print_lat_context()
|
D | trace_functions_graph.c | 343 pc = preempt_count(); in trace_graph_entry() 428 pc = preempt_count(); in trace_graph_return()
|
D | trace.c | 524 pc = preempt_count(); in __trace_puts() 574 pc = preempt_count(); in __trace_bputs() 1632 entry->preempt_count = pc & 0xff; in tracing_generic_entry_update() 1918 flags, skip, preempt_count(), NULL); in trace_dump_stack() 1978 ftrace_trace_userstack(tr, flags, preempt_count()); in __trace_userstack() 2147 pc = preempt_count(); in trace_vbprintk() 2203 pc = preempt_count(); in __trace_array_vprintk() 5129 irq_flags, preempt_count()); in tracing_mark_write()
|
D | trace_kprobe.c | 935 pc = preempt_count(); in __kprobe_trace_func() 983 pc = preempt_count(); in __kretprobe_trace_func()
|
D | trace_events.c | 163 __common_field(unsigned char, preempt_count); in trace_define_common_fields() 200 fbuffer->pc = preempt_count(); in ftrace_event_buffer_reserve() 2887 pc = preempt_count(); in function_test_events_call()
|
D | blktrace.c | 80 pc = preempt_count(); in trace_note() 234 pc = preempt_count(); in __blk_add_trace()
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | thread_info.h | 49 int preempt_count; /* 0 => preemptable, <0 => bug */ member 57 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/metag/include/asm/ |
D | thread_info.h | 34 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 72 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | thread_info.h | 46 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 78 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | irq.c | 532 irqtp->preempt_count = curtp->preempt_count; in do_IRQ() 581 tp->preempt_count = 0; in exc_lvl_ctx_init() 587 tp->preempt_count = 0; in exc_lvl_ctx_init() 592 tp->preempt_count = HARDIRQ_OFFSET; in exc_lvl_ctx_init()
|
D | machine_kexec_64.c | 342 kexec_stack.thread_info.preempt_count = HARDIRQ_OFFSET; in default_machine_kexec()
|
D | asm-offsets.c | 162 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/unicore32/include/asm/ |
D | thread_info.h | 69 int preempt_count; /* 0 => preemptable */ member 86 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/mips/include/asm/ |
D | thread_info.h | 29 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 48 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/tile/include/asm/ |
D | thread_info.h | 33 int preempt_count; /* 0 => preemptable, member 55 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | thread_info.h | 23 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | thread_info.h | 71 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 85 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/arm/include/asm/ |
D | thread_info.h | 52 int preempt_count; /* 0 => preemptable, <0 => bug */ member 75 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/sh/include/asm/ |
D | thread_info.h | 33 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 61 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | thread_info.h | 43 int preempt_count; /* 0 => preemptable, member 58 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | thread_info.h | 28 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member 45 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-4.1.27/arch/m32r/kernel/ |
D | asm-offsets.c | 10 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in foo()
|
/linux-4.1.27/arch/avr32/kernel/ |
D | asm-offsets.c | 17 OFFSET(TI_preempt_count, thread_info, preempt_count); in foo()
|
/linux-4.1.27/kernel/ |
D | softirq.c | 117 if (preempt_count() == cnt) { in __local_bh_disable_ip() 268 prev_count = preempt_count(); in __do_softirq() 275 if (unlikely(prev_count != preempt_count())) { in __do_softirq() 278 prev_count, preempt_count()); in __do_softirq()
|
D | stop_machine.c | 479 WARN_ONCE(preempt_count(), in cpu_stopper_thread()
|
D | exit.c | 712 preempt_count()); in do_exit()
|
D | workqueue.c | 2088 current->comm, preempt_count(), task_pid_nr(current), in process_one_work()
|
/linux-4.1.27/arch/openrisc/kernel/ |
D | asm-offsets.c | 55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/x86/include/asm/ |
D | preempt.h | 20 static __always_inline int preempt_count(void) in preempt_count() function
|
/linux-4.1.27/arch/powerpc/platforms/cell/ |
D | smp.c | 86 task_thread_info(paca[lcpu].__current)->preempt_count = 0; in smp_startup_cpu()
|
/linux-4.1.27/arch/cris/kernel/ |
D | asm-offsets.c | 40 ENTRY(preempt_count); in main()
|
/linux-4.1.27/arch/arc/kernel/ |
D | asm-offsets.c | 34 offsetof(struct thread_info, preempt_count)); in main()
|
D | entry.S | 207 ; bump thread_info->preempt_count (Disable preemption) 690 ; decrement thread_info->preempt_count (re-enable preemption)
|
/linux-4.1.27/arch/tile/kernel/ |
D | asm-offsets.c | 62 offsetof(struct thread_info, preempt_count)); in foo()
|
/linux-4.1.27/arch/nios2/kernel/ |
D | asm-offsets.c | 83 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); in main()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | smp.c | 118 task_thread_info(paca[lcpu].__current)->preempt_count = 0; in smp_startup_cpu()
|
/linux-4.1.27/arch/frv/kernel/ |
D | asm-offsets.c | 40 OFFSET(TI_PREEMPT_COUNT, thread_info, preempt_count); in foo()
|
/linux-4.1.27/arch/m68k/kernel/ |
D | asm-offsets.c | 41 DEFINE(TINFO_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/mn10300/kernel/ |
D | asm-offsets.c | 28 OFFSET(TI_preempt_count, thread_info, preempt_count); in foo()
|
D | entry.S | 179 mov (TI_preempt_count,a2),d0 # non-zero preempt_count ?
|
/linux-4.1.27/arch/unicore32/kernel/ |
D | asm-offsets.c | 42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/init/ |
D | main.c | 779 int count = preempt_count(); in do_one_initcall() 793 if (preempt_count() != count) { in do_one_initcall()
|
/linux-4.1.27/arch/xtensa/kernel/ |
D | asm-offsets.c | 85 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in main()
|
/linux-4.1.27/arch/c6x/kernel/ |
D | asm-offsets.c | 103 OFFSET(THREAD_INFO_PREEMPT_COUNT, thread_info, preempt_count); in foo()
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | asm-offsets.c | 94 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/kernel/time/ |
D | timer.c | 1131 int count = preempt_count(); in call_timer_fn() 1158 if (count != preempt_count()) { in call_timer_fn() 1160 fn, count, preempt_count()); in call_timer_fn()
|
/linux-4.1.27/arch/score/kernel/ |
D | asm-offsets.c | 106 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in output_thread_info_defines()
|
/linux-4.1.27/arch/blackfin/kernel/ |
D | asm-offsets.c | 49 OFFSET(TI_PREEMPT, thread_info, preempt_count); in main()
|
/linux-4.1.27/arch/arm64/kernel/ |
D | asm-offsets.c | 37 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/arm/kernel/ |
D | asm-offsets.c | 67 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | traps_32.c | 438 TI_PREEMPT != offsetof(struct thread_info, preempt_count) ||
|
D | traps_64.c | 2701 preempt_count) || in trap_init()
|
/linux-4.1.27/arch/s390/kernel/ |
D | asm-offsets.c | 40 DEFINE(__TI_precount, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/kernel/sched/ |
D | core.c | 2565 if (DEBUG_LOCKS_WARN_ON((preempt_count() < 0))) in preempt_count_add() 2573 DEBUG_LOCKS_WARN_ON((preempt_count() & PREEMPT_MASK) >= in preempt_count_add() 2576 if (preempt_count() == val) { in preempt_count_add() 2593 if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) in preempt_count_sub() 2599 !(preempt_count() & PREEMPT_MASK))) in preempt_count_sub() 2603 if (preempt_count() == val) in preempt_count_sub() 2621 prev->comm, prev->pid, preempt_count()); in __schedule_bug() 2769 if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { in __schedule() 2957 BUG_ON(preempt_count() || !irqs_disabled()); in preempt_schedule_irq() 7284 int nested = (preempt_count() & ~PREEMPT_ACTIVE) + rcu_preempt_depth(); in preempt_count_equals()
|
/linux-4.1.27/Documentation/ |
D | preempt-locking.txt | 74 preempt_count() return the preempt counter
|
/linux-4.1.27/arch/x86/kernel/ |
D | kvm.c | 143 n.halted = is_idle_task(current) || preempt_count() > 1; in kvm_async_pf_task_wait()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | asm-offsets.c | 40 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in foo()
|
D | mca.c | 1820 ti->preempt_count = 1; in format_mca_init_stack()
|
/linux-4.1.27/include/trace/events/ |
D | sched.h | 106 if (preempt_count() & PREEMPT_ACTIVE) in __trace_sched_switch_state()
|
/linux-4.1.27/arch/parisc/kernel/ |
D | asm-offsets.c | 248 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
|
/linux-4.1.27/arch/mips/kernel/ |
D | asm-offsets.c | 98 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in output_thread_info_defines()
|
/linux-4.1.27/kernel/rcu/ |
D | rcutorture.c | 289 if (!preempt_count() && in rcu_read_delay()
|
/linux-4.1.27/mm/ |
D | memory.c | 3732 if (preempt_count()) in print_vma_addr()
|