Skip to content
  • Steven Rostedt's avatar
    ftrace: release functions from hash · bd95b88d
    Steven Rostedt authored
    
    
    The x86 architecture uses a static recording of mcount caller locations
    and is not affected by this patch.
    
    For architectures still using the dynamic ftrace daemon, this patch is
    critical. It removes the race between the recording of a function that
    calls mcount, the unloading of a module, and the ftrace daemon updating
    the call sites.
    
    This patch adds the releasing of the hash functions that the daemon uses
    to update the mcount call sites. When a module is unloaded, not only
    are the replaced call site table update, but now so is the hash recorded
    functions that the ftrace daemon will use.
    
    Again, architectures that implement MCOUNT_RECORD are not affected by
    this (which currently only x86 has).
    
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    bd95b88d