Skip to content
  • Emilio G. Cota's avatar
    996e8d9a
    qsp: add qsp_reset · 996e8d9a
    Emilio G. Cota authored
    
    
    I first implemented this by deleting all entries in the global
    hash table. But doing that safely slows down profiling, since
    we'd need to introduce rcu_read_lock/unlock in the fast path.
    
    What's implemented here avoids messing with the thread-local
    data in the global hash table. It achieves this by taking a snapshot
    of the current state, so that subsequent reports present the delta
    wrt to the snapshot.
    
    Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    996e8d9a
    qsp: add qsp_reset
    Emilio G. Cota authored
    
    
    I first implemented this by deleting all entries in the global
    hash table. But doing that safely slows down profiling, since
    we'd need to introduce rcu_read_lock/unlock in the fast path.
    
    What's implemented here avoids messing with the thread-local
    data in the global hash table. It achieves this by taking a snapshot
    of the current state, so that subsequent reports present the delta
    wrt to the snapshot.
    
    Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading