| /linux/arch/s390/include/asm/ |
| H A D | preempt.h | 24 static __always_inline int preempt_count(void) in preempt_count() function 46 old = READ_ONCE(get_lowcore()->preempt_count); in preempt_count_set() 49 } while (!arch_try_cmpxchg(&get_lowcore()->preempt_count, &old, new)); in preempt_count_set() 63 __atomic64_and(~PREEMPT_NEED_RESCHED, (long *)&get_lowcore()->preempt_count); in set_preempt_need_resched() 68 __atomic64_or(PREEMPT_NEED_RESCHED, (long *)&get_lowcore()->preempt_count); in clear_preempt_need_resched() 73 return !(READ_ONCE(get_lowcore()->preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched() 86 lc_preempt = offsetof(struct lowcore, preempt_count); in __preempt_count_add() 91 : "+m" (((struct lowcore *)0)->preempt_count) in __preempt_count_add() 98 __atomic64_add(val, (long *)&get_lowcore()->preempt_count); in __preempt_count_add() 117 lc_preempt = offsetof(struct lowcore, preempt_count); in __preempt_count_dec_and_test() [all …]
|
| /linux/include/linux/ |
| H A D | preempt.h | 120 unsigned long pc = preempt_count(); in interrupt_context_level() 136 #define nmi_count() (preempt_count() & NMI_MASK) 137 #define hardirq_count() (preempt_count() & HARDIRQ_MASK) 140 # define irq_count() ((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) | softirq_count()) 142 # define softirq_count() (preempt_count() & SOFTIRQ_MASK) 143 # define irq_count() (preempt_count() & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_MASK)) 158 # define in_task() (!((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) | in_serving_softirq())) 160 # define in_task() (!(preempt_count() & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET))) 212 #define in_atomic() (preempt_count() != 0) 218 #define in_atomic_preempt_off() (preempt_count() != PREEMPT_DISABLE_OFFSET) [all …]
|
| H A D | hardirq.h | 114 preempt_count_set(preempt_count() | NMI_MASK); \ 121 preempt_count_set(preempt_count() & ~NMI_MASK); \
|
| /linux/include/asm-generic/ |
| H A D | preempt.h | 9 static __always_inline int preempt_count(void) in preempt_count() function 11 return READ_ONCE(current_thread_info()->preempt_count); in preempt_count() 16 return ¤t_thread_info()->preempt_count; in preempt_count_ptr() 28 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 32 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 91 return unlikely(preempt_count() == preempt_offset && in should_resched()
|
| /linux/tools/testing/radix-tree/ |
| H A D | main.c | 244 nr_allocated, preempt_count); in single_thread_tests() 248 nr_allocated, preempt_count); in single_thread_tests() 252 nr_allocated, preempt_count); in single_thread_tests() 256 nr_allocated, preempt_count); in single_thread_tests() 260 nr_allocated, preempt_count); in single_thread_tests() 264 nr_allocated, preempt_count); in single_thread_tests() 269 nr_allocated, preempt_count); in single_thread_tests() 273 nr_allocated, preempt_count); in single_thread_tests() 281 nr_allocated, preempt_count); in single_thread_tests() 324 nr_allocated, preempt_count); in main()
|
| /linux/tools/testing/shared/linux/ |
| H A D | preempt.h | 5 extern int preempt_count; 7 #define preempt_disable() uatomic_inc(&preempt_count) 8 #define preempt_enable() uatomic_dec(&preempt_count)
|
| /linux/arch/arm64/include/asm/ |
| H A D | preempt.h | 10 static inline int preempt_count(void) in preempt_count() function 22 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 26 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 80 u64 pc = READ_ONCE(current_thread_info()->preempt_count); in should_resched()
|
| H A D | thread_info.h | 30 u64 preempt_count; /* 0 => preemptible, <0 => bug */ member 122 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_experimental.h | 396 int preempt_count; member 423 if (bpf_core_field_exists(pcpu_hot.preempt_count)) in get_preempt_count() 425 bpf_this_cpu_ptr(&pcpu_hot))->preempt_count; in get_preempt_count() 429 return bpf_get_current_task_btf()->thread_info.preempt_count; in get_preempt_count() 431 return bpf_get_lowcore()->preempt_count; in get_preempt_count() 433 return bpf_get_current_task_btf()->thread_info.preempt_count; in get_preempt_count() 435 return bpf_get_current_task_btf()->thread_info.preempt_count; in get_preempt_count()
|
| /linux/lib/ |
| H A D | smp_processor_id.c | 16 if (likely(preempt_count())) in check_preemption_disabled() 44 what1, what2, preempt_count() - 1, current->comm, current->pid); in check_preemption_disabled()
|
| /linux/arch/um/include/asm/ |
| H A D | thread_info.h | 22 int preempt_count; /* 0 => preemptable, member 30 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/m68k/include/asm/ |
| H A D | thread_info.h | 30 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 39 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/nios2/include/asm/ |
| H A D | thread_info.h | 40 int preempt_count; /* 0 => preemptable,<0 => BUG */ member 54 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/hexagon/include/asm/ |
| H A D | thread_info.h | 35 int preempt_count; /* 0=>preemptible,<0=>BUG */ member 63 .preempt_count = 1, \
|
| /linux/arch/arc/include/asm/ |
| H A D | thread_info.h | 41 int preempt_count; /* 0 => preemptible, <0 => BUG */ member 56 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/openrisc/include/asm/ |
| H A D | thread_info.h | 47 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 67 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/riscv/include/asm/ |
| H A D | thread_info.h | 55 int preempt_count; /* 0=>preemptible, <0=>BUG */ member 97 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/kernel/trace/ |
| H A D | trace_irqsoff.c | 122 if (!irqs_disabled_flags(*flags) && !preempt_count()) in func_prolog_dec() 467 if (preempt_trace(preempt_count()) || irq_trace()) in start_critical_timings() 475 if (preempt_trace(preempt_count()) || irq_trace()) in stop_critical_timings() 638 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_on() 645 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_off() 686 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_on() 692 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_off()
|
| /linux/arch/parisc/include/asm/ |
| H A D | thread_info.h | 11 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member 20 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/loongarch/include/asm/ |
| H A D | thread_info.h | 28 int preempt_count; /* 0 => preemptible, <0 => BUG */ member 41 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/csky/include/asm/ |
| H A D | thread_info.h | 17 int preempt_count; member 27 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/xtensa/include/asm/ |
| H A D | thread_info.h | 53 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 90 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/microblaze/include/asm/ |
| H A D | thread_info.h | 64 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 77 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/sh/include/asm/ |
| H A D | thread_info.h | 32 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 59 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /linux/arch/alpha/include/asm/ |
| H A D | thread_info.h | 25 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 43 .preempt_count = INIT_PREEMPT_COUNT, \
|