1. 13 8月, 2014 4 次提交
    • J
      perf: Add queued work to remove orphaned child events · fadfe7be
      Jiri Olsa 提交于
      In cases when the  owner task exits before the workload and the
      workload made some forks, all the events stay in until the last
      workload process exits. Thats' because each child event holds
      parent reference.
      
      We want to release all children events once the parent is gone,
      because at that time there's no process to read them anyway, so
      they're just eating resources.
      
      This removal  races with process exit, which removes all events
      and fork, which clone events.  To be clear of those two, adding
      work queue to remove orphaned child for context in case such
      event is detected.
      
      Using delayed work queue (with delay == 1), because we queue this
      work under perf scheduler callbacks. Normal work queue tries to wake
      up the queue process, which deadlocks on rq->lock in this place.
      
      Also preventing clones from abandoned parent event.
      Signed-off-by: NJiri Olsa <jolsa@kernel.org>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: http://lkml.kernel.org/r/1406896382-18404-4-git-send-email-jolsa@kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      fadfe7be
    • J
      perf: Set owner pointer for kernel events · f8697762
      Jiri Olsa 提交于
      Adding fake EVENT_OWNER_KERNEL owner pointer value for kernel perf
      events, so we could distinguish it from user events, which needs
      special care in following patch.
      Signed-off-by: NJiri Olsa <jolsa@kernel.org>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: http://lkml.kernel.org/r/1406896382-18404-3-git-send-email-jolsa@kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      f8697762
    • P
      perf/x86/intel: Update Intel models · 0f7c29ce
      Peter Zijlstra 提交于
      The model number descriptions got a bit messy, clean them up.
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: http://lkml.kernel.org/n/tip-oo3xclxdoy8s7ubssn929vaj@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      0f7c29ce
    • I
      Merge tag 'perf-core-for-mingo' of... · 1a91eac6
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      User visible fixes and changes:
      
        * Show better error message in case we fail to open counters due to EBUSY error,
          for instance, when oprofile is running. (Jiri Olsa)
      
        * Honour -w in the report tools (report, top), allowing to specify the widths
          for the histogram entries columns. (Namhyung Kim)
      
        * Don't run workload if not told to, as happens when the user has no
          permission for profiling and even then the specified workload ends
          up running (Arnaldo Carvalho de Melo)
      
        * Do not ignore mmap events in 'perf kmem report'. This tool was using
          the kernel mmaps in the running machine instead of processing the mmap
          records from the perf.data file. (Namhyung Kim)
      
        * Properly show submicrosecond times in 'perf kvm stat' (Christian Borntraeger)
      
        * Honour existing 'perf record' --time/-T command line option (Andi Kleen)
      
        * Make sure --symfs usage includes the path separator (Arnaldo Carvalho de Melo)
      
      Development infrastructure fixes and changes:
      
        * Fix arm64 build error (Mark Salter)
      
        * Fix make PYTHON override (Namhyung Kim)
      
        * Rename ordered_samples to ordered_events and allow setting a queue
          size for ordering events (Jiri Olsa)
      
        * Default to python version 2 (Thomas Ilsche)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      1a91eac6
  2. 12 8月, 2014 29 次提交
  3. 08 8月, 2014 1 次提交
  4. 05 8月, 2014 6 次提交
    • L
      Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 98a96f20
      Linus Torvalds 提交于
      Pull x86 vdso updates from Ingo Molnar:
       "Further simplifications and improvements to the VDSO code, by Andy
        Lutomirski"
      
      * 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86_64/vsyscall: Fix warn_bad_vsyscall log output
        x86/vdso: Set VM_MAYREAD for the vvar vma
        x86, vdso: Get rid of the fake section mechanism
        x86, vdso: Move the vvar area before the vdso text
      98a96f20
    • L
      Merge branch 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5637a2a3
      Linus Torvalds 提交于
      Pull x86 UV TLB update from Ingo Molnar:
       "UV TLB shootdown logic updates for version of the UV architecture"
      
      * 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/uv: Update the UV3 TLB shootdown logic
      5637a2a3
    • L
      Merge branch 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d782cebd
      Linus Torvalds 提交于
      Pull RAS updates from Ingo Molnar:
       "The main changes in this cycle are:
      
         - RAS tracing/events infrastructure, by Gong Chen.
      
         - Various generalizations of the APEI code to make it available to
           non-x86 architectures, by Tomasz Nowicki"
      
      * 'x86-ras-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/ras: Fix build warnings in <linux/aer.h>
        acpi, apei, ghes: Factor out ioremap virtual memory for IRQ and NMI context.
        acpi, apei, ghes: Make NMI error notification to be GHES architecture extension.
        apei, mce: Factor out APEI architecture specific MCE calls.
        RAS, extlog: Adjust init flow
        trace, eMCA: Add a knob to adjust where to save event log
        trace, RAS: Add eMCA trace event interface
        RAS, debugfs: Add debugfs interface for RAS subsystem
        CPER: Adjust code flow of some functions
        x86, MCE: Robustify mcheck_init_device
        trace, AER: Move trace into unified interface
        trace, RAS: Add basic RAS trace event
        x86, MCE: Kill CPU_POST_DEAD
      d782cebd
    • L
      Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8556d44f
      Linus Torvalds 提交于
      Pull x86 platform updates from Ingo Molnar:
       "The main changes in this cycle are:
      
         - Intel SOC driver updates, by Aubrey Li.
      
         - TS5500 platform updates, by Vivien Didelot"
      
      * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/pmc_atom: Silence shift wrapping warnings in pmc_sleep_tmr_show()
        x86/pmc_atom: Expose PMC device state and platform sleep state
        x86/pmc_atom: Eisable a few S0ix wake up events for S0ix residency
        x86/platform: New Intel Atom SOC power management controller driver
        x86/platform/ts5500: Add support for TS-5400 boards
        x86/platform/ts5500: Add a 'name' sysfs attribute
        x86/platform/ts5500: Use the DEVICE_ATTR_RO() macro
      8556d44f
    • L
      Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ce474796
      Linus Torvalds 提交于
      Pull x86 mm changes from Ingo Molnar:
       "The main change in this cycle is the rework of the TLB range flushing
        code, to simplify, fix and consolidate the code.  By Dave Hansen"
      
      * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm: Set TLB flush tunable to sane value (33)
        x86/mm: New tunable for single vs full TLB flush
        x86/mm: Add tracepoints for TLB flushes
        x86/mm: Unify remote INVLPG code
        x86/mm: Fix missed global TLB flush stat
        x86/mm: Rip out complicated, out-of-date, buggy TLB flushing
        x86/mm: Clean up the TLB flushing code
        x86/smep: Be more informative when signalling an SMEP fault
      ce474796
    • L
      Merge branch 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 76f09aa4
      Linus Torvalds 提交于
      Pull EFI changes from Ingo Molnar:
       "Main changes in this cycle are:
      
         - arm64 efi stub fixes, preservation of FP/SIMD registers across
           firmware calls, and conversion of the EFI stub code into a static
           library - Ard Biesheuvel
      
         - Xen EFI support - Daniel Kiper
      
         - Support for autoloading the efivars driver - Lee, Chun-Yi
      
         - Use the PE/COFF headers in the x86 EFI boot stub to request that
           the stub be loaded with CONFIG_PHYSICAL_ALIGN alignment - Michael
           Brown
      
         - Consolidate all the x86 EFI quirks into one file - Saurabh Tangri
      
         - Additional error logging in x86 EFI boot stub - Ulf Winkelvos
      
         - Support loading initrd above 4G in EFI boot stub - Yinghai Lu
      
         - EFI reboot patches for ACPI hardware reduced platforms"
      
      * 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (31 commits)
        efi/arm64: Handle missing virtual mapping for UEFI System Table
        arch/x86/xen: Silence compiler warnings
        xen: Silence compiler warnings
        x86/efi: Request desired alignment via the PE/COFF headers
        x86/efi: Add better error logging to EFI boot stub
        efi: Autoload efivars
        efi: Update stale locking comment for struct efivars
        arch/x86: Remove efi_set_rtc_mmss()
        arch/x86: Replace plain strings with constants
        xen: Put EFI machinery in place
        xen: Define EFI related stuff
        arch/x86: Remove redundant set_bit(EFI_MEMMAP) call
        arch/x86: Remove redundant set_bit(EFI_SYSTEM_TABLES) call
        efi: Introduce EFI_PARAVIRT flag
        arch/x86: Do not access EFI memory map if it is not available
        efi: Use early_mem*() instead of early_io*()
        arch/ia64: Define early_memunmap()
        x86/reboot: Add EFI reboot quirk for ACPI Hardware Reduced flag
        efi/reboot: Allow powering off machines using EFI
        efi/reboot: Add generic wrapper around EfiResetSystem()
        ...
      76f09aa4