• Thomas Gleixner's avatar
    perf session: Fix list sort algorithm · a1225dec
    Thomas Gleixner authored
    The homebrewn sort algorithm fails to sort in time order. One of the problem
    spots is that it fails to deal with equal timestamps correctly.
    
    My first gut reaction was to replace the fancy list with an rbtree, but the
    performance is 3 times worse.
    
    Rewrite it so it works.
    
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <20101130163819.908482530@linutronix.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    a1225dec
session.c 22.8 KB