1. 22 12月, 2009 1 次提交
  2. 21 12月, 2009 2 次提交
  3. 20 12月, 2009 10 次提交
  4. 19 12月, 2009 15 次提交
  5. 18 12月, 2009 12 次提交
    • A
      perf session: Make events_stats u64 to avoid overflow on 32-bit arches · b5b60fda
      Arnaldo Carvalho de Melo 提交于
      Pekka Enberg reported weird percentages in perf report. It
      turns out we are overflowing a 32-bit variables in struct
      events_stats on 32-bit architectures.
      
      Before:
      
       [acme@ana linux-2.6-tip]$ perf report -i pekka.perf.data 2> /dev/null | head -10
         281.96%       Xorg                        b710a561  [.] 0x000000b710a561
         140.15%       Xorg  [kernel]                        [k] __initramfs_end
          51.56%   metacity  libgobject-2.0.so.0.2000.1      [.] 0x00000000026e46
          35.12%  evolution  libcairo.so.2.10800.6           [.] 0x000000000203bd
          33.84%   metacity  libpthread-2.9.so               [.] 0x00000000007a3d
      
      After:
      
       [acme@ana linux-2.6-tip]$ perf report -i pekka.perf.data 2> /dev/null | head -10
          30.04%       Xorg                       b710a561   [.] 0x000000b710a561
          14.93%       Xorg  [kernel]                        [k] __initramfs_end
           5.49%   metacity  libgobject-2.0.so.0.2000.1      [.] 0x00000000026e46
           3.74%  evolution  libcairo.so.2.10800.6           [.] 0x000000000203bd
           3.61%   metacity  libpthread-2.9.so               [.] 0x00000000007a3d
      Reported-by: NPekka Enberg <penberg@cs.helsinki.fi>
      Tested-by: NPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1261148583-20395-1-git-send-email-acme@infradead.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      b5b60fda
    • F
      hw-breakpoints: Fix hardware breakpoints -> perf events dependency · 99e8c5a3
      Frederic Weisbecker 提交于
      The kbuild's select command doesn't propagate through the config
      dependencies.
      
      Hence the current rules of hardware breakpoint's config can't
      ensure perf can never be disabled under us.
      
      We have:
      
      config X86
      	selects HAVE_HW_BREAKPOINTS
      
      config HAVE_HW_BREAKPOINTS
      	select PERF_EVENTS
      
      config PERF_EVENTS
      	[...]
      
      x86 will select the breakpoints but that won't propagate to perf
      events. The user can still disable the latter, but it is
      necessary for the breakpoints.
      
      What we need is:
      
       - x86 selects HAVE_HW_BREAKPOINTS and PERF_EVENTS
       - HAVE_HW_BREAKPOINTS depends on PERF_EVENTS
      
      so that we ensure PERF_EVENTS is enabled and frozen for x86.
      
      This fixes the following kind of build errors:
      
       In file included from arch/x86/kernel/hw_breakpoint.c:31:
       include/linux/hw_breakpoint.h: In function 'hw_breakpoint_addr':
       include/linux/hw_breakpoint.h:39: error: 'struct perf_event' has no member named 'attr'
      
      v2: Select also ANON_INODES from x86, required for perf
      Reported-by: NCyrill Gorcunov <gorcunov@gmail.com>
      Reported-by: NMichal Marek <mmarek@suse.cz>
      Reported-by: NAndrew Randrianasulu <randrik_a@yahoo.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: K.Prasad <prasad@linux.vnet.ibm.com>
      LKML-Reference: <1261010034-7786-1-git-send-regression-fweisbec@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      99e8c5a3
    • D
      alpha: Convert BUG() to use unreachable() · acadbfb9
      David Daney 提交于
      Use the new unreachable() macro instead of for(;;);
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      CC: Richard Henderson <rth@twiddle.net>
      CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      CC: linux-alpha@vger.kernel.org
      Signed-off-by: NMatt Turner <mattst88@gmail.com>
      acadbfb9
    • M
      alpha: Add minimal support for software performance events · a582e6f0
      Michael Cree 提交于
      In the kernel the patch enables configuration of the perf event
      option, adds the perf_event_open syscall, and includes a minimal
      architecture specific asm/perf_event.h header file.
      Signed-off-by: NMichael Cree <mcree@orcon.net.nz>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NMatt Turner <mattst88@gmail.com>
      a582e6f0
    • D
      alpha: Wire up missing/new syscalls · 21797c59
      Daniele Calore 提交于
      This wire up the: fallocate, timerfd_create, timerfd_settime,
      timerfd_gettime, signalfd4, eventfd2, epoll_create1, dup3, pipe2,
      inotify_init1, preadv, pwritev and rt_tgsigqueueinfo syscalls for
      the alpha port.
      
      For umount2, alpha have an "old" and "new" version called: oldumount and
      umount; so ignore umount2.
      
      Rebased on top of 6e17e8b9 by Matt
      Turner.
      Signed-off-by: NDaniele Calore <orkaan@orkaan.org>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Signed-off-by: NMatt Turner <mattst88@gmail.com>
      21797c59
    • S
      x86, irq: Allow 0xff for /proc/irq/[n]/smp_affinity on an 8-cpu system · 18374d89
      Suresh Siddha 提交于
      John Blackwood reported:
      > on an older Dell PowerEdge 6650 system with 8 cpus (4 are hyper-threaded),
      > and  32 bit (x86) kernel, once you change the irq smp_affinity of an irq
      > to be less than all cpus in the system, you can never change really the
      > irq smp_affinity back to be all cpus in the system (0xff) again,
      > even though no error status is returned on the "/bin/echo ff >
      > /proc/irq/[n]/smp_affinity" operation.
      >
      > This is due to that fact that BAD_APICID has the same value as
      > all cpus (0xff) on 32bit kernels, and thus the value returned from
      > set_desc_affinity() via the cpu_mask_to_apicid_and() function is treated
      > as a failure in set_ioapic_affinity_irq_desc(), and no affinity changes
      > are made.
      
      set_desc_affinity() is already checking if the incoming cpu mask
      intersects with the cpu online mask or not. So there is no need
      for the apic op cpu_mask_to_apicid_and() to check again
      and return BAD_APICID.
      
      Remove the BAD_APICID return value from cpu_mask_to_apicid_and()
      and also fix set_desc_affinity() to return -1 instead of using BAD_APICID
      to represent error conditions (as cpu_mask_to_apicid_and() can return
      logical or physical apicid values and BAD_APICID is really to represent
      bad physical apic id).
      Reported-by: NJohn Blackwood <john.blackwood@ccur.com>
      Root-caused-by: NJohn Blackwood <john.blackwood@ccur.com>
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      LKML-Reference: <1261103386.2535.409.camel@sbs-t61>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      18374d89
    • L
      Linux 2.6.33-rc1 · 55639353
      Linus Torvalds 提交于
      55639353
    • L
      Merge branch 'cpumask-cleanups' of... · 55db493b
      Linus Torvalds 提交于
      Merge branch 'cpumask-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
      
      * 'cpumask-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
        cpumask: rename tsk_cpumask to tsk_cpus_allowed
        cpumask: don't recommend set_cpus_allowed hack in Documentation/cpu-hotplug.txt
        cpumask: avoid dereferencing struct cpumask
        cpumask: convert drivers/idle/i7300_idle.c to cpumask_var_t
        cpumask: use modern cpumask style in drivers/scsi/fcoe/fcoe.c
        cpumask: avoid deprecated function in mm/slab.c
        cpumask: use cpu_online in kernel/perf_event.c
      55db493b
    • L
      Merge branch 'for-linus' of... · efc8e7f4
      Linus Torvalds 提交于
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
        Keys: KEYCTL_SESSION_TO_PARENT needs TIF_NOTIFY_RESUME architecture support
        NOMMU: Optimise away the {dac_,}mmap_min_addr tests
        security/min_addr.c: make init_mmap_min_addr() static
        keys: PTR_ERR return of wrong pointer in keyctl_get_security()
      efc8e7f4
    • L
      Merge branch 'omap-fixes-for-linus' of... · b5c96f89
      Linus Torvalds 提交于
      Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
      
      * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
        OMAP3: serial - fix bug introduced in
        mfd: twl: fix twl4030 rename for remaining driver, board files
        USB ehci: replace mach header with plat
        omap3: Allow EHCI to be built on OMAP3
      b5c96f89
    • L
      Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · e82b1dae
      Linus Torvalds 提交于
      * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        hwmon: (w83627hf) Fix for "No such device"
        hwmon: (sht15) Off-by-one error in array index + incorrect constants
        hwmon: Add driver for VIA CPU core temperature
        hwmon: (smsc47m1) Enable device if needed
        hwmon: (smsc47m1) Fail module loading on error
        hwmon: (smsc47m1) Only request I/O ports we really use
        hwmon: New driver for AMD Family 10h/11h CPUs
      e82b1dae
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · fc6f0700
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (40 commits)
        [SCSI] 3w-9xxx fix bug in sgl loading
        [SCSI] fcoe, libfc: adds enable/disable for fcoe interface
        [SCSI] libfc: reduce hold time on SCSI host lock
        [SCSI] libfc: remote port gets stuck in restart state without really restarting
        [SCSI] pm8001: misc code cleanup
        [SCSI] pm8001: enable read HBA SAS address from VPD
        [SCSI] pm8001: do not reset local sata as it will not be found if reset
        [SCSI] pm8001: bit set pm8001_ha->flags
        [SCSI] pm8001:fix potential NULL pointer dereference
        [SCSI] pm8001: set SSC down-spreading only to get less errors on some 6G device.
        [SCSI] pm8001: fix endian issues with SAS address
        [SCSI] pm8001: enhance error handle for IO patch
        [SCSI] pm8001: Fix for sata io circular lock dependency.
        [SCSI] hpsa: add driver for HP Smart Array controllers.
        [SCSI] cxgb3i: always use negative errno in case of error
        [SCSI] bnx2i: minor code cleanup and update driver version
        [SCSI] bnx2i: Task management ABORT TASK fixes
        [SCSI] bnx2i: update CQ arming algorith for 5771x chipsets
        [SCSI] bnx2i: Adjust sq_size module parametr to power of 2 only if a non-zero value is specified
        [SCSI] bnx2i: Add 5771E device support to bnx2i driver
        ...
      fc6f0700