trace_probe.c (cecdd52a3dd312564f81a39df08378b7b39a2654) | trace_probe.c (cae16f2c2e11c60c888715f4d98c12740683d6a2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Common code for probe-based Dynamic events. 4 * 5 * This code was copied from kernel/trace/trace_kprobe.c written by 6 * Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> 7 * 8 * Updates to make this generic: --- 1158 unchanged lines hidden (view full) --- 1167{ 1168 struct event_file_link *link; 1169 1170 link = trace_probe_get_file_link(tp, file); 1171 if (!link) 1172 return -ENOENT; 1173 1174 list_del_rcu(&link->list); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Common code for probe-based Dynamic events. 4 * 5 * This code was copied from kernel/trace/trace_kprobe.c written by 6 * Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> 7 * 8 * Updates to make this generic: --- 1158 unchanged lines hidden (view full) --- 1167{ 1168 struct event_file_link *link; 1169 1170 link = trace_probe_get_file_link(tp, file); 1171 if (!link) 1172 return -ENOENT; 1173 1174 list_del_rcu(&link->list); |
1175 kvfree_rcu(link); | 1175 kvfree_rcu_mightsleep(link); |
1176 1177 if (list_empty(&tp->event->files)) 1178 trace_probe_clear_flag(tp, TP_FLAG_TRACE); 1179 1180 return 0; 1181} 1182 1183/* --- 85 unchanged lines hidden --- | 1176 1177 if (list_empty(&tp->event->files)) 1178 trace_probe_clear_flag(tp, TP_FLAG_TRACE); 1179 1180 return 0; 1181} 1182 1183/* --- 85 unchanged lines hidden --- |