Lines Matching refs:tp_mod
590 struct tp_module *tp_mod; in register_tracepoint_module_notifier() local
597 list_for_each_entry(tp_mod, &tracepoint_module_list, list) in register_tracepoint_module_notifier() local
598 (void) nb->notifier_call(nb, MODULE_STATE_COMING, tp_mod); in register_tracepoint_module_notifier()
614 struct tp_module *tp_mod; in unregister_tracepoint_module_notifier() local
621 list_for_each_entry(tp_mod, &tracepoint_module_list, list) in unregister_tracepoint_module_notifier() local
622 (void) nb->notifier_call(nb, MODULE_STATE_GOING, tp_mod); in unregister_tracepoint_module_notifier()
641 struct tp_module *tp_mod; in tracepoint_module_coming() local
655 tp_mod = kmalloc(sizeof(struct tp_module), GFP_KERNEL); in tracepoint_module_coming()
656 if (!tp_mod) { in tracepoint_module_coming()
660 tp_mod->mod = mod; in tracepoint_module_coming()
661 list_add_tail(&tp_mod->list, &tracepoint_module_list); in tracepoint_module_coming()
663 MODULE_STATE_COMING, tp_mod); in tracepoint_module_coming()
671 struct tp_module *tp_mod; in tracepoint_module_going() local
677 list_for_each_entry(tp_mod, &tracepoint_module_list, list) { in tracepoint_module_going()
678 if (tp_mod->mod == mod) { in tracepoint_module_going()
680 MODULE_STATE_GOING, tp_mod); in tracepoint_module_going()
681 list_del(&tp_mod->list); in tracepoint_module_going()
682 kfree(tp_mod); in tracepoint_module_going()