Defined in 4 files as a function:
- arch/arm64/include/asm/preempt.h, line 15 (as a function)
- arch/s390/include/asm/preempt.h, line 42 (as a function)
- arch/x86/include/asm/preempt.h, line 48 (as a function)
- include/asm-generic/preempt.h, line 19 (as a function)
Referenced in 7 files:
- include/linux/hardirq.h
- init/main.c, line 1366
- kernel/exit.c, line 1083
- kernel/sched/core.c
- kernel/softirq.c, line 651
- kernel/time/timer.c, line 1762
- lib/locking-selftest.c, line 1470
Smatch caller information:
kernel/time/timer.c call_timer_fn() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | pc | r preempt_count |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |
kernel/exit.c make_task_dead() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 9223372036854775808 |
| NOCHECK_CALL |
lib/locking-selftest.c dotest() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | pc | r preempt_count |
| NOCHECK_CALL |
init/main.c do_one_initcall() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | pc | r preempt_count |
| NOCHECK_CALL |
kernel/softirq.c handle_softirqs() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | pc | r preempt_count |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL |
kernel/sched/core.c finish_task_switch() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 9223372036854775810 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |
kernel/sched/core.c schedule_debug() -> preempt_count_set()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pc | 9223372036854775809 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |