1. 15 Feb, 2011 4 commits
    • Robert Richter's avatar
      oprofile, s390: Rework hwsampler implementation · a0d76247
      Robert Richter authored
      This patch is a rework of the hwsampler oprofile implementation that
      has been applied recently. Now there are less non-architectural
      changes. The only changes are:
      
      * introduction of oprofile_add_ext_hw_sample(), and
      * removal of section attributes of oprofile_timer_init/_exit().
      
      To setup hwsampler for oprofile we need to modify start()/stop()
      callbacks and additional hwsampler control files in oprofilefs. We do
      not reinitialize the timer or hwsampler mode by restarting calling
      init/exit() anymore, instead hwsampler_running is used to switch the
      mode directly in oprofile_hwsampler_start/_stop(). For locking reasons
      there is also hwsampler_file that reflects the value in oprofilefs.
      
      The overall diffstat of the oprofile s390 hwsampler implemenation
      shows the low impact to non-architectural code:
      
       arch/Kconfig                         |    3 +
       arch/s390/Kconfig                    |    1 +
       arch/s390/oprofile/Makefile          |    2 +-
       arch/s390/oprofile/hwsampler.c       | 1256 ++++++++++++++++++++++++++++++++++
       arch/s390/oprofile/hwsampler.h       |  113 +++
       arch/s390/oprofile/hwsampler_files.c |  162 +++++
       arch/s390/oprofile/init.c            |    6 +-
       drivers/oprofile/cpu_buffer.c        |   24 +-
       drivers/oprofile/timer_int.c         |    4 +-
       include/linux/oprofile.h             |    7 +
       10 files changed, 1567 insertions(+), 11 deletions(-)
      Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
      a0d76247
    • Heinz Graalfs's avatar
      oprofile, s390: Enhance OProfile to support System zs hardware sampling feature · 997dbb49
      Heinz Graalfs authored
      OProfile is enhanced to export all files for controlling System z's
      hardware sampling, and to invoke hwsampler exported functions to
      initialize and use System z's hardware sampling.
      
      The patch invokes hwsampler_setup() during oprofile init and exports
      following hwsampler files under oprofilefs if hwsampler's setup
      succeeded:
      
      A new directory for hardware sampling based files
      
       /dev/oprofile/hwsampling/
      
      The userland daemon must explicitly write to the following files
      to disable (or enable) hardware based sampling
      
       /dev/oprofile/hwsampling/hwsampler
      
      to modify the actual sampling rate
      
       /dev/oprofile/hwsampling/hw_interval
      
      to modify the amount of sampling memory (measured in 4K pages)
      
       /dev/oprofile/hwsampling/hw_sdbt_blocks
      
      The following files are read only and show
      the possible minimum sampling rate
      
       /dev/oprofile/hwsampling/hw_min_interval
      
      the possible maximum sampling rate
      
       /dev/oprofile/hwsampling/hw_max_interval
      
      The patch splits the oprofile_timer_[init/exit] function so that it
      can be also called through user context (oprofilefs) to avoid kernel
      oops.
      
      Applied with following changes:
      * whitespace changes in Makefile and timer_int.c
      Signed-off-by: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
      Signed-off-by: default avatarMaran Pakkirisamy <maranp@linux.vnet.ibm.com>
      Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
      Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
      997dbb49
    • Heinz Graalfs's avatar
      oprofile, s390: Add support for hardware based sampling on System z processors · ec6a3df1
      Heinz Graalfs authored
      This adds support for hardware based sampling on System z processors
      (models z10 and up).
      
      System z's hardware sampling is described in detail in:
      
         SA23-2260-01 "The Load-Program-Parameter and CPU-Measurement Facilities"
      
      The patch introduces
      
       - support for System z's hardware sampler in OProfile's kernel module
       - it adds functions that control all hardware sampling related
         operations as:
         - checking if hardware sampling feature is available, i.e.: on
           System z models z10 and up, in LPAR mode only, and authorised
           during LPAR activation
         - allocating memory for the hardware sampling feature
         - starting/stopping hardware sampling
      
      All functions required to start and stop hardware sampling have to be
      invoked by the oprofile kernel module as provided by the other patches
      of this patch set.
      
      In case hardware based sampling cannot be setup standard timer based
      sampling is used by OProfile.
      
      Applied with following changes:
      * enable compilation in Makefile
      Signed-off-by: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
      Signed-off-by: default avatarMaran Pakkirisamy <maranp@linux.vnet.ibm.com>
      Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
      Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
      ec6a3df1
    • Heinz Graalfs's avatar
      oprofile: Introduce new oprofile sample add function (oprofile_add_ext_hw_sample) · 54ebbe7b
      Heinz Graalfs authored
      This patch introduces a new oprofile sample add function
      (oprofile_add_ext_hw_sample) that can also take task_struct as an
      argument, which is used by the hwsampler kernel module when copying
      hardware samples to OProfile buffers.
      
      Applied with following changes:
      * removed #include <linux/module.h>
      * whitespace changes
      * removed conditional compilation (CONFIG_HAVE_HWSAMPLER)
      * modified order of functions
      * fix missing function definition in header file
      Signed-off-by: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
      Signed-off-by: default avatarMaran Pakkirisamy <maranp@linux.vnet.ibm.com>
      Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
      Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
      54ebbe7b
  2. 26 Jan, 2011 2 commits
  3. 22 Jan, 2011 2 commits
    • Linus Torvalds's avatar
      Linux 2.6.38-rc2 · 1bae4ce2
      Linus Torvalds authored
      1bae4ce2
    • Linus Torvalds's avatar
      Merge branch 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 13a3cec8
      Linus Torvalds authored
      * 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (101 commits)
        [media] staging/lirc: fix mem leaks and ptr err usage
        [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
        [media] hdpvr: enable IR part
        [media] rc/mceusb: timeout should be in ns, not us
        [media] v4l2-device: fix 'use-after-freed' oops
        [media] v4l2-dev: don't memset video_device.dev
        [media] zoran: use video_device_alloc instead of kmalloc
        [media] w9966: zero device state after a detach
        [media] v4l: Fix a use-before-set in the control framework
        [media] v4l: Include linux/videodev2.h in media/v4l2-ctrls.h
        [media] DocBook/v4l: update V4L2 revision and update copyright years
        [media] DocBook/v4l: fix validation error in dev-rds.xml
        [media] v4l2-ctrls: queryctrl shouldn't attempt to replace V4L2_CID_PRIVATE_BASE IDs
        [media] v4l2-ctrls: fix missing 'read-only' check
        [media] pvrusb2: Provide more information about IR units to lirc_zilog and ir-kbd-i2c
        [media] ir-kbd-i2c: Add back defaults setting for Zilog Z8's at addr 0x71
        [media] lirc_zilog: Update TODO.lirc_zilog
        [media] lirc_zilog: Add Andy Walls to copyright notice and authors list
        [media] lirc_zilog: Remove useless struct i2c_driver.command function
        [media] lirc_zilog: Remove unneeded tests for existence of the IR Tx function
        ...
      13a3cec8
  4. 21 Jan, 2011 32 commits