• S
    ftrace: Implement cached modules tracing on module load · d7fbf8df
    Steven Rostedt (VMware) 提交于
    If a module is cached in the set_ftrace_filter, and that module is loaded,
    then enable tracing on that module as if the cached module text was written
    into set_ftrace_filter just as the module is loaded.
    
      # echo ":mod:kvm_intel" >
      # cat /sys/kernel/tracing/set_ftrace_filter
     #### all functions enabled ####
     :mod:kvm_intel
      # modprobe kvm_intel
      # cat /sys/kernel/tracing/set_ftrace_filter
     vmx_get_rflags [kvm_intel]
     vmx_get_pkru [kvm_intel]
     vmx_get_interrupt_shadow [kvm_intel]
     vmx_rdtscp_supported [kvm_intel]
     vmx_invpcid_supported [kvm_intel]
     [..]
    Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
    d7fbf8df
ftrace.c 158.5 KB