Lines Matching refs:tp
830 static void free_synth_tracepoint(struct tracepoint *tp) in free_synth_tracepoint() argument
832 if (!tp) in free_synth_tracepoint()
835 kfree(tp->name); in free_synth_tracepoint()
836 kfree(tp); in free_synth_tracepoint()
841 struct tracepoint *tp; in alloc_synth_tracepoint() local
843 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in alloc_synth_tracepoint()
844 if (!tp) in alloc_synth_tracepoint()
847 tp->name = kstrdup(name, GFP_KERNEL); in alloc_synth_tracepoint()
848 if (!tp->name) { in alloc_synth_tracepoint()
849 kfree(tp); in alloc_synth_tracepoint()
853 return tp; in alloc_synth_tracepoint()
890 event->tp = alloc_synth_tracepoint(event->name); in register_synth_event()
891 if (IS_ERR(event->tp)) { in register_synth_event()
892 ret = PTR_ERR(event->tp); in register_synth_event()
893 event->tp = NULL; in register_synth_event()
910 call->tp = event->tp; in register_synth_event()
954 free_synth_tracepoint(event->tp); in free_synth_event()