lkml.org 
[lkml]   [2004]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[profile]: [14/23] parisc profiling cleanups
    Date
    Convert PA-RISC to use profiling_on() and profile_tick().

    Index: prof-2.6.7/arch/parisc/kernel/time.c
    ===================================================================
    --- prof-2.6.7.orig/arch/parisc/kernel/time.c 2004-06-15 22:20:27.000000000 -0700
    +++ prof-2.6.7/arch/parisc/kernel/time.c 2004-06-22 07:25:54.908815760 -0700
    @@ -54,16 +54,7 @@
    #if 0
    extern unsigned long prof_cpu_mask;
    #endif
    - extern char _stext;
    -
    profile_hook(regs);
    -
    - if (user_mode(regs))
    - return;
    -
    - if (!prof_buffer)
    - return;
    -
    #if 0
    /* FIXME: when we have irq affinity to cpu, we need to
    * only look at the cpus specified in this mask
    @@ -72,17 +63,8 @@
    if (!((1 << smp_processor_id()) & prof_cpu_mask))
    return;
    #endif
    -
    - pc -= (unsigned long) &_stext;
    - pc >>= prof_shift;
    - /*
    - * Don't ignore out-of-bounds PC values silently,
    - * put them into the last histogram slot, so if
    - * present, they will show up as a sharp peak.
    - */
    - if (pc > prof_len - 1)
    - pc = prof_len - 1;
    - atomic_inc((atomic_t *)&prof_buffer[pc]);
    + if (!user_mode(regs))
    + profile_tick(pc);
    }

    irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 14:04    [W:0.020 / U:31.100 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site