• Steven Rostedt's avatar
    ftrace: add necessary locking for ftrace records · 99ecdc43
    Steven Rostedt authored
    The new design of pre-recorded mcounts and updating the code outside of
    kstop_machine has changed the way the records themselves are protected.
    
    This patch uses the ftrace_lock to protect the records. Note, the lock
    still does not need to be taken within calls that are only called via
    kstop_machine, since the that code can not run while the spin lock is held.
    
    Also removed the hash_lock needed for the daemon when MCOUNT_RECORD is
    configured. Also did a slight cleanup of an unused variable.
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    99ecdc43
ftrace.c 38.8 KB