Commit 120fd74
kprobes: Allow probing on any address belonging to ftrace
On certain architectures, ftrace can reserve multiple instructions at
function entry. Rather than rejecting kprobe on addresses other than the
exact ftrace call instruction, use the address returned by ftrace to
probe at the correct address when CONFIG_KPROBES_ON_FTRACE is enabled.
Signed-off-by: Naveen N. Rao <[email protected]>1 parent 1640856 commit 120fd74
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1500 | 1504 | | |
1501 | 1505 | | |
1502 | 1506 | | |
| |||
1507 | 1511 | | |
1508 | 1512 | | |
1509 | 1513 | | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1510 | 1522 | | |
1511 | 1523 | | |
1512 | 1524 | | |
| |||
0 commit comments