函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\trace\trace_uprobe.c Create Date:2022-07-27 13:56:28
首页 Copyright©Brick

1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
static void __probe_event_disable(struct trace_probe *tp)
{
    struct trace_probe *pos;
    struct trace_uprobe *tu;
 
    tu = container_of(tp, struct trace_uprobe, tp);
    WARN_ON(!uprobe_filter_is_empty(tu->tp.event->filter));
 
    list_for_each_entry(pos, trace_probe_probe_list(tp), list) {
        tu = container_of(pos, struct trace_uprobe, tp);
        if (!tu->inode)
            continue;
 
        uprobe_unregister(tu->inode, tu->offset, &tu->consumer);
        tu->inode = NULL;
    }
}