Skip to content
  • Abhishek Sagar's avatar
    ftrace: prevent freeing of all failed updates · 0eb96701
    Abhishek Sagar authored
    
    
    Prevent freeing of records which cause problems and correspond to function from
    core kernel text. A new flag, FTRACE_FL_CONVERTED is used to mark a record
    as "converted". All other records are patched lazily to NOPs. Failed records
    now also remain on frace_hash table. Each invocation of ftrace_record_ip now
    checks whether the traced function has ever been recorded (including past
    failures) and doesn't re-record it again.
    
    Signed-off-by: default avatarAbhishek Sagar <sagar.abhishek@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    0eb96701