Commit faacb36
tracing: Simplify creation and deletion of synthetic events
Since the event_mutex and synth_event_mutex ordering issue
is gone, we can skip existing event check when adding or
deleting events, and some redundant code in error path.
This changes release_all_synth_events() to abort the process
when it hits any error and returns the error code. It succeeds
only if it has no error.
Link: http://lkml.kernel.org/r/154140847194.17322.17960275728005067803.stgit@devbox
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent fc800a1 commit faacb36
1 file changed
+18
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | 1011 | | |
1024 | 1012 | | |
1025 | 1013 | | |
| |||
1052 | 1040 | | |
1053 | 1041 | | |
1054 | 1042 | | |
1055 | | - | |
1056 | 1043 | | |
1057 | 1044 | | |
1058 | 1045 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1064 | 1053 | | |
1065 | 1054 | | |
1066 | 1055 | | |
| |||
1100 | 1089 | | |
1101 | 1090 | | |
1102 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1103 | 1097 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | 1098 | | |
1114 | 1099 | | |
1115 | 1100 | | |
1116 | 1101 | | |
1117 | 1102 | | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | 1103 | | |
1122 | 1104 | | |
1123 | | - | |
1124 | 1105 | | |
1125 | | - | |
| 1106 | + | |
1126 | 1107 | | |
1127 | 1108 | | |
1128 | 1109 | | |
| |||
1141 | 1122 | | |
1142 | 1123 | | |
1143 | 1124 | | |
1144 | | - | |
1145 | | - | |
1146 | 1125 | | |
1147 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1148 | 1131 | | |
1149 | 1132 | | |
1150 | 1133 | | |
| |||
0 commit comments