Commit 218d372
committed
fgraph: Keep track of when fgraph_ops are registered or not
Add a warning if unregister_ftrace_graph() is called without ever
registering it, or if register_ftrace_graph() is called twice. This can
detect errors when they happen and not later when there's a side effect:
Link: https://lore.kernel.org/all/[email protected]/
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 437889b commit 218d372
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1328 | 1332 | | |
1329 | 1333 | | |
1330 | 1334 | | |
| |||
1401 | 1405 | | |
1402 | 1406 | | |
1403 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
1404 | 1412 | | |
1405 | 1413 | | |
1406 | 1414 | | |
1407 | | - | |
| 1415 | + | |
1408 | 1416 | | |
1409 | 1417 | | |
1410 | 1418 | | |
1411 | | - | |
| 1419 | + | |
1412 | 1420 | | |
1413 | 1421 | | |
1414 | | - | |
| 1422 | + | |
1415 | 1423 | | |
1416 | 1424 | | |
1417 | 1425 | | |
| |||
1434 | 1442 | | |
1435 | 1443 | | |
1436 | 1444 | | |
| 1445 | + | |
| 1446 | + | |
1437 | 1447 | | |
0 commit comments