1. 13 3月, 2017 3 次提交
  2. 07 3月, 2017 4 次提交
    • N
      perf c2c: Fix display bug when using pipe · 1936feae
      Namhyung Kim 提交于
      Currently 'perf c2c report' determines display mode using the --stdio
      option, but it could be a problem if stdout is not a tty since
      setup_browser falls back to stdio in this case.
      
      But perf c2c didn't know this and tried to use TUI browser anyway.  It
      should check "use_browser" variable instead.
      
      For example, the following command showed nothing and broke terminal
      setting.  Now it's fixed..
      
        $ perf c2c report | head
        =================================================
                    Trace Event Information
        =================================================
          Total records                     :        136
          Locked Load/Store Operations      :          6
          Load Operations                   :         62
          Loads - uncacheable               :          0
          Loads - IO                        :          1
          Loads - Miss                      :          7
          Loads - no mapping                :          2
      
      Committer notes:
      
      When trying it without a proper perf.data file it results in a stuck
      terminal, just as Namhyung reported above:
      
        [acme@jouet ~]$ perf c2c report | head
        WARNING: no sample cpu value[acme@jouet ~]$
      
      One has to kill it from some other xterm. Confirm that this patch fixes
      it:
      
      After:
      
        $ perf c2c report | head
        WARNING: no sample cpu value=================================================
                    Trace Event Information
        =================================================
          Total records                     :         14
          Locked Load/Store Operations      :          0
          Load Operations                   :          0
          Loads - uncacheable               :          0
          Loads - IO                        :          0
          Loads - Miss                      :          0
          Loads - no mapping                :          0
        $
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Acked-by: NJiri Olsa <jolsa@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: kernel-team@lge.com
      Link: http://lkml.kernel.org/r/20170307150851.22304-6-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      1936feae
    • N
      perf c2c: Clarify help message of --stats option · f75d2895
      Namhyung Kim 提交于
      As it is not strictly asking for only stdio output, but will imply using
      it.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Acked-by: NJiri Olsa <jolsa@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: kernel-team@lge.com
      Link: http://lkml.kernel.org/r/20170307150851.22304-5-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f75d2895
    • N
      perf report: Hide tip message when -q option is given · 8b53dbef
      Namhyung Kim 提交于
      The tip message at the end was printed regardless of the -q option.
      
      Originally, the message suggested only '-s comm,dso' option for higher
      level view when no sort option and parent option were given.
      
      Now it shows random help message regardless of the options so the
      condition can be simplified to honor the -q option.
      
      Committer notes:
      
      Before:
      
        $ perf report --stdio -q
          42.77%  ls       ls                [.] _init
          13.21%  ls       ld-2.24.so        [.] match_symbol
          12.55%  ls       libc-2.24.so      [.] __strcoll_l
          11.94%  ls       libc-2.24.so      [.] _init
      
        #
        # (Tip: Show current config key-value pairs: perf config --list)
        #
        $
      
      After:
      
        $ perf report --stdio -q
          42.77%  ls       ls                [.] _init
          13.21%  ls       ld-2.24.so        [.] match_symbol
          12.55%  ls       libc-2.24.so      [.] __strcoll_l
          11.94%  ls       libc-2.24.so      [.] _init
      
        $
      
      We still have those two extra lines tho (that git commit insists in
      turning into one, or git commit --amend doesn't make me add), food for
      another patch...
      Reported-and-Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: kernel-team@lge.com
      Link: http://lkml.kernel.org/r/20170307150851.22304-2-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8b53dbef
    • I
      Merge tag 'perf-core-for-mingo-4.11-20170306' of... · 84e5b549
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo-4.11-20170306' 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:
      
      New features:
      
      - Allow sorting by symbol_size in 'perf report' and 'perf top' (Charles Baylis)
      
        E.g.:
      
        # perf report -s symbol_size,symbol
      
        Samples: 9K of event 'cycles:k', Event count (approx.): 2870461623
        Overhead  Symbol size  Symbol
          14.55%          326  [k] flush_tlb_mm_range
           7.20%         1045  [k] filemap_map_pages
           5.82%          124  [k] vma_interval_tree_insert
           5.18%         2430  [k] unmap_page_range
           2.57%          571  [k] vma_interval_tree_remove
           1.94%          494  [k] page_add_file_rmap
           1.82%          740  [k] page_remove_rmap
           1.66%         1017  [k] release_pages
           1.57%         1636  [k] update_blocked_averages
           1.57%           76  [k] unlock_page
      
      - Add support for -p/--pid, -a/--all-cpus and -C/--cpu in 'perf ftrace' (Namhyung Kim)
      
      Change in behaviour:
      
      - Make system wide (-a) the default option if no target was specified and one
        of following conditions is met:
      
        - No workload specified (current behaviour)
      
        - A workload is specified but all requested events are system wide ones,
          like uncore ones. (Jiri Olsa)
      
      Fixes:
      
      - Add missing initialization to the instruction decoder used in the
        intel PT/BTS code, which was causing lots of failures in 'perf test',
        looking for a value when there was none (Adrian Hunter)
      
      Infrastructure changes:
      
      - Add arch code needed to adopt the kernel's refcount_t to aid in
        catching bugs when using atomic_t as a reference counter, basically
        cmpxchg related functions (Arnaldo Carvalho de Melo)
      
      - Convert the code using atomic_t as reference counts to refcount_t
        (Elena Rashetova)
      
      - Add feature test for sched_getcpu() to more easily check for its
        presence in the many libc implementations and accross different
        versions of such C libraries (Arnaldo Carvalho de Melo)
      
      - Issue a HW watchdog disable hint in 'perf stat' for when some of the
        requested events can't get counted because a PMU counter is taken by that
        watchdog (Borislav Petkov).
      
      - Add mapping for Intel's KnightsMill PMU events (Karol Wachowski)
      
      Documentation changes:
      
      - Clarify the term 'convergence' in:
      
         perf bench numa numa-mem -h --show_convergence (Jiri Olsa)
      
      Kernel code changes:
      
      - Ensure probe location is at function entry in kretprobes (Naveen N. Rao)
      
      - Allow return probes with offsets and absolute addresses (Naveen N. Rao)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      84e5b549
  3. 06 3月, 2017 2 次提交
  4. 05 3月, 2017 5 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 8d70eeb8
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
      
       1) Fix double-free in batman-adv, from Sven Eckelmann.
      
       2) Fix packet stats for fast-RX path, from Joannes Berg.
      
       3) Netfilter's ip_route_me_harder() doesn't handle request sockets
          properly, fix from Florian Westphal.
      
       4) Fix sendmsg deadlock in rxrpc, from David Howells.
      
       5) Add missing RCU locking to transport hashtable scan, from Xin Long.
      
       6) Fix potential packet loss in mlxsw driver, from Ido Schimmel.
      
       7) Fix race in NAPI handling between poll handlers and busy polling,
          from Eric Dumazet.
      
       8) TX path in vxlan and geneve need proper RCU locking, from Jakub
          Kicinski.
      
       9) SYN processing in DCCP and TCP need to disable BH, from Eric
          Dumazet.
      
      10) Properly handle net_enable_timestamp() being invoked from IRQ
          context, also from Eric Dumazet.
      
      11) Fix crash on device-tree systems in xgene driver, from Alban Bedel.
      
      12) Do not call sk_free() on a locked socket, from Arnaldo Carvalho de
          Melo.
      
      13) Fix use-after-free in netvsc driver, from Dexuan Cui.
      
      14) Fix max MTU setting in bonding driver, from WANG Cong.
      
      15) xen-netback hash table can be allocated from softirq context, so use
          GFP_ATOMIC. From Anoob Soman.
      
      16) Fix MAC address change bug in bgmac driver, from Hari Vyas.
      
      17) strparser needs to destroy strp_wq on module exit, from WANG Cong.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (69 commits)
        strparser: destroy workqueue on module exit
        sfc: fix IPID endianness in TSOv2
        sfc: avoid max() in array size
        rds: remove unnecessary returned value check
        rxrpc: Fix potential NULL-pointer exception
        nfp: correct DMA direction in XDP DMA sync
        nfp: don't tell FW about the reserved buffer space
        net: ethernet: bgmac: mac address change bug
        net: ethernet: bgmac: init sequence bug
        xen-netback: don't vfree() queues under spinlock
        xen-netback: keep a local pointer for vif in backend_disconnect()
        netfilter: nf_tables: don't call nfnetlink_set_err() if nfnetlink_send() fails
        netfilter: nft_set_rbtree: incorrect assumption on lower interval lookups
        netfilter: nf_conntrack_sip: fix wrong memory initialisation
        can: flexcan: fix typo in comment
        can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer
        can: gs_usb: fix coding style
        can: gs_usb: Don't use stack memory for USB transfers
        ixgbe: Limit use of 2K buffers on architectures with 256B or larger cache lines
        ixgbe: update the rss key on h/w, when ethtool ask for it
        ...
      8d70eeb8
    • L
      Merge tag 'kvm-4.11-2' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2d62e076
      Linus Torvalds 提交于
      Pull more KVM updates from Radim Krčmář:
       "Second batch of KVM changes for the 4.11 merge window:
      
        PPC:
         - correct assumption about ASDR on POWER9
         - fix MMIO emulation on POWER9
      
        x86:
         - add a simple test for ioperm
         - cleanup TSS (going through KVM tree as the whole undertaking was
           caused by VMX's use of TSS)
         - fix nVMX interrupt delivery
         - fix some performance counters in the guest
      
        ... and two cleanup patches"
      
      * tag 'kvm-4.11-2' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: nVMX: Fix pending events injection
        x86/kvm/vmx: remove unused variable in segment_base()
        selftests/x86: Add a basic selftest for ioperm
        x86/asm: Tidy up TSS limit code
        kvm: convert kvm.users_count from atomic_t to refcount_t
        KVM: x86: never specify a sample period for virtualized in_tx_cp counters
        KVM: PPC: Book3S HV: Don't use ASDR for real-mode HPT faults on POWER9
        KVM: PPC: Book3S HV: Fix software walk of guest process page tables
      2d62e076
    • L
      Merge tag 'docs-4.11-fixes' of git://git.lwn.net/linux · be834aaf
      Linus Torvalds 提交于
      Pull documentation fixes from Jonathan Corbet:
       "A few fixes for the docs tree, including one for a 4.11 build
        regression"
      
      * tag 'docs-4.11-fixes' of git://git.lwn.net/linux:
        Documentation/sphinx: fix primary_domain configuration
        docs: Fix htmldocs build failure
        doc/ko_KR/memory-barriers: Update control-dependencies section
        pcieaer doc: update the link
        Documentation: Update path to sysrq.txt
      be834aaf
    • L
      Merge tag 'staging-4.11-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 91aff98b
      Linus Torvalds 提交于
      Pull staging/IIO driver fixes from Greg KH:
       "Here are a few small staging and IIO driver fixes for issues that
        showed up after the big set if changes you merged last week.
      
        Nothing major, just small bugs resolved in some IIO drivers, a lustre
        allocation fix, and some RaspberryPi driver fixes for reported
        problems, as well as a MAINTAINERS entry update.
      
        All of these have been in linux-next for a week with no reported
        issues"
      
      * tag 'staging-4.11-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: fsl-mc: fix warning in DT ranges parser
        MAINTAINERS: Remove Noralf Trønnes as fbtft maintainer
        staging: vchiq_2835_arm: Make cache-line-size a required DT property
        staging: bcm2835/mmal-vchiq: unlock on error in buffer_from_host()
        staging/lustre/lnet: Fix allocation size for sv_cpt_data
        iio: adc: xilinx: Fix error handling
        iio: 104-quad-8: Fix off-by-one error when addressing flag register
        iio: adc: handle unknow of_device_id data
      91aff98b
    • L
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 33a8b3e9
      Linus Torvalds 提交于
      Pull crypto fixes from Herbert Xu:
      
       - vmalloc stack regression in CCM
      
       - Build problem in CRC32 on ARM
      
       - Memory leak in cavium
      
       - Missing Kconfig dependencies in atmel and mediatek
      
       - XTS Regression on some platforms (s390 and ppc)
      
       - Memory overrun in CCM test vector
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: vmx - Use skcipher for xts fallback
        crypto: vmx - Use skcipher for cbc fallback
        crypto: testmgr - Pad aes_ccm_enc_tv_template vector
        crypto: arm/crc32 - add build time test for CRC instruction support
        crypto: arm/crc32 - fix build error with outdated binutils
        crypto: ccm - move cbcmac input off the stack
        crypto: xts - Propagate NEED_FALLBACK bit
        crypto: api - Add crypto_requires_off helper
        crypto: atmel - CRYPTO_DEV_MEDIATEK should depend on HAS_DMA
        crypto: atmel - CRYPTO_DEV_ATMEL_TDES and CRYPTO_DEV_ATMEL_SHA should depend on HAS_DMA
        crypto: cavium - fix leak on curr if curr->head fails to be allocated
        crypto: cavium - Fix couple of static checker errors
      33a8b3e9
  5. 04 3月, 2017 26 次提交