21 Jul, 2007

1 commit

  • From: Maynard Johnson

    This patch updates the existing arch/powerpc/oprofile/op_model_cell.c
    to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory
    was added to arch/powerpc/oprofile to hold Cell-specific SPU profiling code.
    Exports spu_set_profile_private_kref and spu_get_profile_private_kref which
    are used by OProfile to store private profile information in spufs data
    structures.

    Also incorporated several fixes from other patches (rrn). Check pointer
    returned from kzalloc. Eliminated unnecessary cast. Better error
    handling and cleanup in the related area. 64-bit unsigned long parameter
    was being demoted to 32-bit unsigned int and eventually promoted back to
    unsigned long.

    Signed-off-by: Carl Love
    Signed-off-by: Maynard Johnson
    Signed-off-by: Bob Nelson
    Signed-off-by: Arnd Bergmann
    Acked-by: Paul Mackerras

    Bob Nelson
     

10 Jul, 2007

1 commit

  • Oprofile enhanced instruction sampling support.

    When performing instruction sampling, the mmcra[SLOT] field can be used to
    more accurately identify the address of the sampled instruction.

    Tested on power4, js20, power5 and power5+.

    Signed-off-by: Will Schmidt
    cc: Maynard Johnson
    Signed-off-by: Paul Mackerras

    will schmidt
     

07 Feb, 2007

1 commit

  • Clean up the ctr_read/write a bit. It's currently defined in the
    include but only used in one C file each. The only exception is the
    classic version, so keep that in the include and define in the C file
    as appropriate.

    Signed-off-by: Olof Johansson
    Signed-off-by: Paul Mackerras

    Olof Johansson
     

01 Nov, 2006

1 commit

  • Fixed a compile error in building the 85xx support with oprofile, and in
    the process cleaned up some issues with the fsl_booke performance monitor
    code.

    * Reorganized FSL Book-E performance monitoring code so that the 7450
    wouldn't be built if the e500 was, and cleaned it up so it was more
    self-contained.

    * Added a cpu_setup function for FSL Book-E. The original
    cpu_setup function prototype had no arguments, assuming that
    the reg_setup function would copy the required information into
    variables which represented the registers. This was silly for
    e500, since it has 1 register per counter (rather than 3 for
    all counters), so the code has been restructured to have
    cpu_setup take the current counter config array as an argument,
    with op_powerpc_setup() invoking op_powerpc_cpu_setup() through
    on_each_cpu(), and op_powerpc_cpu_setup() invoking the
    model-specific cpu_setup function with an argument. The
    argument is ignored on all other platforms at present.

    * Fixed a confusing line where a trinary operator only had two
    arguments

    Signed-off-by: Andrew Fleming
    Signed-off-by: Paul Mackerras

    Andy Fleming
     

23 Oct, 2006

1 commit

  • 970GX cputable entry from Steve Winiecki.

    Signed-off-by: Jake Moilanen

    arch/powerpc/kernel/cputable.c | 15 +++++++++++++++
    arch/powerpc/oprofile/op_model_power4.c | 2 +-
    include/asm-powerpc/reg.h | 1 +
    3 files changed, 17 insertions(+), 1 deletion(-)
    Signed-off-by: Paul Mackerras

    Jake Moilanen
     

09 Jun, 2006

1 commit


29 Mar, 2006

2 commits


22 Mar, 2006

1 commit

  • It has been decreed that platform numbers are evil, so as a step in that
    direction, replace platform_is_lpar() with a FW_FEATURE_LPAR bit.

    Currently FW_FEATURE_LPAR really means i/pSeries LPAR, in the future we might
    have to clean that up if we need to be more specific about what LPAR actually
    means. But that's another patch ...

    Signed-off-by: Michael Ellerman
    Signed-off-by: Paul Mackerras

    Michael Ellerman
     

09 Jan, 2006

1 commit

  • There's a bunch of code that compares an address with KERNELBASE to see if
    it's a "kernel address", ie. >= KERNELBASE. The proper test is actually to
    compare with PAGE_OFFSET, since we're going to change KERNELBASE soon.

    So replace all of them with an is_kernel_addr() macro that does that.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Paul Mackerras

    Michael Ellerman
     

11 Nov, 2005

1 commit

  • This patch moves the vdso's to arch/powerpc, adds support for the 32
    bits vdso to the 32 bits kernel, rename systemcfg (finally !), and adds
    some new (still untested) routines to both vdso's: clock_gettime() with
    support for CLOCK_REALTIME and CLOCK_MONOTONIC, clock_getres() (same
    clocks) and get_tbfreq() for glibc to retreive the timebase frequency.

    Tom,Steve: The implementation of get_tbfreq() I've done for 32 bits
    returns a long long (r3, r4) not a long. This is such that if we ever
    add support for >4Ghz timebases on ppc32, the userland interface won't
    have to change.

    I have tested gettimeofday() using some glibc patches in both ppc32 and
    ppc64 kernels using 32 bits userland (I haven't had a chance to test a
    64 bits userland yet, but the implementation didn't change and was
    tested earlier). I haven't tested yet the new functions.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     

10 Nov, 2005

1 commit

  • This patch merges platform codes. systemcfg->platform is no longer used,
    systemcfg use in general is deprecated as much as possible (and renamed
    _systemcfg before it gets completely moved elsewhere in a future patch),
    _machine is now used on ppc64 along as ppc32. Platform codes aren't gone
    yet but we are getting a step closer. A bunch of asm code in head[_64].S
    is also turned into C code.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Paul Mackerras
     

08 Nov, 2005

1 commit


21 Sep, 2005

1 commit