Lines Matching refs:tp_mod
611 struct tp_module *tp_mod; in register_tracepoint_module_notifier() local
618 list_for_each_entry(tp_mod, &tracepoint_module_list, list) in register_tracepoint_module_notifier() local
619 (void) nb->notifier_call(nb, MODULE_STATE_COMING, tp_mod); in register_tracepoint_module_notifier()
635 struct tp_module *tp_mod; in unregister_tracepoint_module_notifier() local
642 list_for_each_entry(tp_mod, &tracepoint_module_list, list) in unregister_tracepoint_module_notifier() local
643 (void) nb->notifier_call(nb, MODULE_STATE_GOING, tp_mod); in unregister_tracepoint_module_notifier()
662 struct tp_module *tp_mod; in tracepoint_module_coming() local
676 tp_mod = kmalloc(sizeof(struct tp_module), GFP_KERNEL); in tracepoint_module_coming()
677 if (!tp_mod) { in tracepoint_module_coming()
681 tp_mod->mod = mod; in tracepoint_module_coming()
682 list_add_tail(&tp_mod->list, &tracepoint_module_list); in tracepoint_module_coming()
684 MODULE_STATE_COMING, tp_mod); in tracepoint_module_coming()
692 struct tp_module *tp_mod; in tracepoint_module_going() local
698 list_for_each_entry(tp_mod, &tracepoint_module_list, list) { in tracepoint_module_going()
699 if (tp_mod->mod == mod) { in tracepoint_module_going()
701 MODULE_STATE_GOING, tp_mod); in tracepoint_module_going()
702 list_del(&tp_mod->list); in tracepoint_module_going()
703 kfree(tp_mod); in tracepoint_module_going()