Repository navigation
Commit fdb65fe
tracing: Turn event/id->i_private into call->event.type
commit 1a11126 upstream.
event_id_read() is racy, ftrace_event_call can be already freed
by trace_remove_event_call() callers.
Change event_create_dir() to pass "data = call->event.type", this
is all event_id_read() needs. ftrace_event_id_fops no longer needs
tracing_open_generic().
We add the new helper, event_file_data(), to read ->i_private, it
will have more users.
Note: currently ACCESS_ONCE() and "id != 0" check are not needed,
but we are going to change event_remove/rmdir to clear ->i_private.
Link: http://lkml.kernel.org/r/20130726172532.GA3605@redhat.com
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 29632b1 commit fdb65fe
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
| |||
960 | 965 | | |
961 | 966 | | |
962 | 967 | | |
963 | | - | |
| 968 | + | |
964 | 969 | | |
965 | 970 | | |
966 | 971 | | |
967 | 972 | | |
968 | 973 | | |
969 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
970 | 978 | | |
971 | 979 | | |
972 | 980 | | |
973 | 981 | | |
974 | 982 | | |
975 | | - | |
| 983 | + | |
976 | 984 | | |
977 | 985 | | |
978 | 986 | | |
| |||
1263 | 1271 | | |
1264 | 1272 | | |
1265 | 1273 | | |
1266 | | - | |
1267 | 1274 | | |
1268 | 1275 | | |
1269 | 1276 | | |
| |||
1511 | 1518 | | |
1512 | 1519 | | |
1513 | 1520 | | |
1514 | | - | |
1515 | | - | |
| 1521 | + | |
| 1522 | + | |
1516 | 1523 | | |
1517 | 1524 | | |
1518 | 1525 | | |
| |||
0 commit comments