diff options
| -rw-r--r-- | Documentation/kprobes.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt index 1762b81fcdf2..741fe66d6eca 100644 --- a/Documentation/kprobes.txt +++ b/Documentation/kprobes.txt | |||
| @@ -542,9 +542,11 @@ Kprobes does not use mutexes or allocate memory except during | |||
| 542 | registration and unregistration. | 542 | registration and unregistration. |
| 543 | 543 | ||
| 544 | Probe handlers are run with preemption disabled. Depending on the | 544 | Probe handlers are run with preemption disabled. Depending on the |
| 545 | architecture, handlers may also run with interrupts disabled. In any | 545 | architecture and optimization state, handlers may also run with |
| 546 | case, your handler should not yield the CPU (e.g., by attempting to | 546 | interrupts disabled (e.g., kretprobe handlers and optimized kprobe |
| 547 | acquire a semaphore). | 547 | handlers run without interrupt disabled on x86/x86-64). In any case, |
| 548 | your handler should not yield the CPU (e.g., by attempting to acquire | ||
| 549 | a semaphore). | ||
| 548 | 550 | ||
| 549 | Since a return probe is implemented by replacing the return | 551 | Since a return probe is implemented by replacing the return |
| 550 | address with the trampoline's address, stack backtraces and calls | 552 | address with the trampoline's address, stack backtraces and calls |
