1. 27 May, 2021 1 commit
  2. 26 May, 2021 1 commit
  3. 25 May, 2021 1 commit
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.13-2021-05-24' of... · a050a6d2
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.13-2021-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tool fixes from Arnaldo Carvalho de Melo:
      
       - Fix 'perf script' decoding of Intel PT traces for abort handling and
         sample instruction bytes.
      
       - Add missing PERF_IP_FLAG_CHARS for VM-Entry and VM-Exit to Intel PT
         'perf script' decoder.
      
       - Fixes for the python based Intel PT trace viewer GUI.
      
       - Sync UAPI copies (unwire quotactl_path, some comment fixes).
      
       - Fix handling of missing kernel software events, such as the recently
         added 'cgroup-switches', and add the trivial glue for it in the
         tooling side, since it was added in this merge window.
      
       - Add missing initialization of zstd_data in 'perf buildid-list',
         detected with valgrind's memcheck.
      
       - Remove needless event enable/disable when all events uses BPF.
      
       - Fix libpfm4 support (63) test error for nested event groups.
      
      * tag 'perf-tools-fixes-for-v5.13-2021-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf stat: Skip evlist__[enable|disable] when all events uses BPF
        perf script: Add missing PERF_IP_FLAG_CHARS for VM-Entry and VM-Exit
        perf scripts python: exported-sql-viewer.py: Fix warning display
        perf scripts python: exported-sql-viewer.py: Fix Array TypeError
        perf scripts python: exported-sql-viewer.py: Fix copy to clipboard from Top Calls by elapsed Time report
        tools headers UAPI: Sync files changed by the quotactl_path unwiring
        tools headers UAPI: Sync linux/perf_event.h with the kernel sources
        tools headers UAPI: Sync linux/fs.h with the kernel sources
        perf parse-events: Check if the software events array slots are populated
        perf tools: Add 'cgroup-switches' software event
        perf intel-pt: Remove redundant setting of ptq->insn_len
        perf intel-pt: Fix sample instruction bytes
        perf intel-pt: Fix transaction abort handling
        perf test: Fix libpfm4 support (63) test error for nested event groups
        tools arch kvm: Sync kvm headers with the kernel sources
        perf buildid-list: Initialize zstd_data
      a050a6d2
  4. 24 May, 2021 4 commits
    • Linus Torvalds's avatar
      Merge branch 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 1434a312
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
      
       - "cgroup_disable=" boot param was being applied too late confusing
         some subsystems. Fix it by moving application to __setup() time.
      
       - Comment spelling fixes. Included here to lower the chance of trivial
         future merge conflicts.
      
      * 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: fix spelling mistakes
        cgroup: disable controllers at parse time
      1434a312
    • Linus Torvalds's avatar
      Merge branch 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 5df7ae7b
      Linus Torvalds authored
      Pull workqueue fix from Tejun Heo:
       "One commit to fix spurious workqueue stall warnings across VM
        suspensions"
      
      * 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        wq: handle VM suspension in stall detection
      5df7ae7b
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · f71d49e0
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "There's some device specific fixes here but also an unusually large
        number of fixes for the core, including both fixes for breakage
        introduced on ACPI systems while fixing the long standing confusion
        about the polarity of GPIO chip selects specified through DT, and
        fixes for ordering issues on unregistration which have been exposed
        through the wider usage of devm_."
      
      * tag 'spi-fix-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: sc18is602: implement .max_{transfer,message}_size() for the controller
        spi: sc18is602: don't consider the chip select byte in sc18is602_check_transfer
        MAINTAINERS: Add Alain Volmat as STM32 SPI maintainer
        dt-bindings: spi: spi-mux: rename flash node
        spi: Don't have controller clean up spi device before driver unbind
        spi: Assume GPIO CS active high in ACPI case
        spi: sprd: Add missing MODULE_DEVICE_TABLE
        spi: Switch to signed types for *_native_cs SPI controller fields
        spi: take the SPI IO-mutex in the spi_set_cs_timing method
        spi: spi-fsl-dspi: Fix a resource leak in an error handling path
        spi: spi-zynq-qspi: Fix stack violation bug
        spi: spi-zynq-qspi: Fix kernel-doc warning
        spi: altera: Make SPI_ALTERA_CORE invisible
        spi: Fix spi device unregister flow
      f71d49e0
    • Zhen Lei's avatar
      cgroup: fix spelling mistakes · 08b2b6fd
      Zhen Lei authored
      Fix some spelling mistakes in comments:
      hierarhcy ==> hierarchy
      automtically ==> automatically
      overriden ==> overridden
      In absense of .. or ==> In absence of .. and
      assocaited ==> associated
      taget ==> target
      initate ==> initiate
      succeded ==> succeeded
      curremt ==> current
      udpated ==> updated
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      08b2b6fd
  5. 23 May, 2021 18 commits
  6. 22 May, 2021 4 commits
    • Linus Torvalds's avatar
      Merge tag 'block-5.13-2021-05-22' of git://git.kernel.dk/linux-block · 4ff2473b
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix BLKRRPART and deletion race (Gulam, Christoph)
      
       - NVMe pull request (Christoph):
            - nvme-tcp corruption and timeout fixes (Sagi Grimberg, Keith
              Busch)
            - nvme-fc teardown fix (James Smart)
            - nvmet/nvme-loop memory leak fixes (Wu Bo)"
      
      * tag 'block-5.13-2021-05-22' of git://git.kernel.dk/linux-block:
        block: fix a race between del_gendisk and BLKRRPART
        block: prevent block device lookups at the beginning of del_gendisk
        nvme-fc: clear q_live at beginning of association teardown
        nvme-tcp: rerun io_work if req_list is not empty
        nvme-tcp: fix possible use-after-completion
        nvme-loop: fix memory leak in nvme_loop_create_ctrl()
        nvmet: fix memory leak in nvmet_alloc_ctrl()
      4ff2473b
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.13-2021-05-22' of git://git.kernel.dk/linux-block · b9231dfb
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "One fix for a regression with poll in this merge window, and another
        just hardens the io-wq exit path a bit"
      
      * tag 'io_uring-5.13-2021-05-22' of git://git.kernel.dk/linux-block:
        io_uring: fortify tctx/io_wq cleanup
        io_uring: don't modify req->poll for rw
      b9231dfb
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 23d72926
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - a fix for a boot regression when running as PV guest on hardware
         without NX support
      
       - a small series fixing a bug in the Xen pciback driver when
         configuring a PCI card with multiple virtual functions
      
      * tag 'for-linus-5.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen-pciback: reconfigure also from backend watch handler
        xen-pciback: redo VF placement in the virtual topology
        x86/Xen: swap NX determination and GDT setup on BSP
      23d72926
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · a3969ef4
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
      
       - Fix some math errors in the realtime allocator when extent size hints
         are applied.
      
       - Fix unnecessary short writes to realtime files when free space is
         fragmented.
      
       - Fix a crash when using scrub tracepoints.
      
       - Restore ioctl uapi definitions that were accidentally removed in
         5.13-rc1.
      
      * tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: restore old ioctl definitions
        xfs: fix deadlock retry tracepoint arguments
        xfs: retry allocations when locality-based search fails
        xfs: adjust rt allocation minlen when extszhint > rtextsize
      a3969ef4
  7. 21 May, 2021 11 commits
    • Linus Torvalds's avatar
      Merge tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 45af60e7
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A few more fixes:
      
         - fix unaligned compressed writes in zoned mode
      
         - fix false positive lockdep warning when cloning inline extent
      
         - remove wrong BUG_ON in tree-log error handling"
      
      * tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: zoned: fix parallel compressed writes
        btrfs: zoned: pass start block to btrfs_use_zone_append
        btrfs: do not BUG_ON in link_to_fixup_dir
        btrfs: release path before starting transaction when cloning inline extent
      45af60e7
    • Linus Torvalds's avatar
      Merge tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6 · 8bb14ca1
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Seven smb3 fixes: one for stable, three others fix problems found in
        testing handle leases, and a compounded request fix"
      
      * tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        Fix KASAN identified use-after-free issue.
        Defer close only when lease is enabled.
        Fix kernel oops when CONFIG_DEBUG_ATOMIC_SLEEP is enabled.
        cifs: Fix inconsistent indenting
        cifs: fix memory leak in smb2_copychunk_range
        SMB3: incorrect file id in requests compounded with open
        cifs: remove deadstore in cifs_close_all_deferred_files()
      8bb14ca1
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · e8085a07
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - add missing MODULE_DEVICE_TABLE in gpio-cadence
      
       - fix a kernel doc validator error in gpio-xilinx
      
       - don't set parent IRQ affinity in gpio-tegra186
      
      * tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: tegra186: Don't set parent IRQ affinity
        gpio: xilinx: Correct kernel doc for xgpio_probe()
        gpio: cadence: Add missing MODULE_DEVICE_TABLE
      e8085a07
    • Song Liu's avatar
      perf stat: Skip evlist__[enable|disable] when all events uses BPF · f8b61bd2
      Song Liu authored
      When all events of a perf-stat session use BPF, it is not necessary to
      call evlist__enable() and evlist__disable(). Skip them when
      all_counters_use_bpf is true.
      Signed-off-by: default avatarSong Liu <song@kernel.org>
      Reported-by: default avatarJiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f8b61bd2
    • Adrian Hunter's avatar
      perf script: Add missing PERF_IP_FLAG_CHARS for VM-Entry and VM-Exit · f42907e8
      Adrian Hunter authored
      Add 'g' (guest) for VM-Entry and 'h' (host) for VM-Exit.
      
      Fixes: c025d46c ("perf script: Add branch types for VM-Entry and VM-Exit")
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lore.kernel.org/lkml/20210521175127.27264-1-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f42907e8
    • Adrian Hunter's avatar
      perf scripts python: exported-sql-viewer.py: Fix warning display · f56299a9
      Adrian Hunter authored
      Deprecation warnings are useful only for the developer, not an end user.
      Display warnings only when requested using the python -W option. This
      stops the display of warnings like:
      
       tools/perf/scripts/python/exported-sql-viewer.py:5102: DeprecationWarning:
               an integer is required (got type PySide2.QtCore.Qt.AlignmentFlag).
               Implicit conversion to integers using __int__ is deprecated, and
               may be removed in a future version of Python.
          err = app.exec_()
      
      Since the warning can be fixed only in PySide2, we must wait for it to
      be finally fixed there.
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: stable@vger.kernel.org      # v5.3+
      Link: http://lore.kernel.org/lkml/20210521092053.25683-4-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f56299a9
    • Adrian Hunter's avatar
      perf scripts python: exported-sql-viewer.py: Fix Array TypeError · fd931b2e
      Adrian Hunter authored
      The 'Array' class is present in more than one python standard library.
      In some versions of Python 3, the following error occurs:
      
      Traceback (most recent call last):
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 4702, in <lambda>
          reports_menu.addAction(CreateAction(label, "Create a new window displaying branch events", lambda a=None,x=dbid: self.NewBranchView(x), self))
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 4727, in NewBranchView
          BranchWindow(self.glb, event_id, ReportVars(), self)
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 3208, in __init__
          self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_clause))
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 343, in LookupCreateModel
          model = create_fn()
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 3208, in <lambda>
          self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_clause))
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 3124, in __init__
          self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 2658, in __init__
          self.buffer = Array(c_char, self.buffer_size, lock=False)
      TypeError: abstract class
      
      This apparently happens because Python can be inconsistent about which
      class of the name 'Array' gets imported. Fix by importing explicitly by
      name so that only the desired 'Array' gets imported.
      
      Fixes: 8392b74b ("perf scripts python: exported-sql-viewer.py: Add ability to display all the database tables")
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: stable@vger.kernel.org
      Link: http://lore.kernel.org/lkml/20210521092053.25683-3-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fd931b2e
    • Adrian Hunter's avatar
      perf scripts python: exported-sql-viewer.py: Fix copy to clipboard from Top... · a6172059
      Adrian Hunter authored
      perf scripts python: exported-sql-viewer.py: Fix copy to clipboard from Top Calls by elapsed Time report
      
      Provide missing argument to prevent following error when copying a
      selection to the clipboard:
      
      Traceback (most recent call last):
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 4041, in <lambda>
          menu.addAction(CreateAction("&Copy selection", "Copy to clipboard", lambda: CopyCellsToClipboardHdr(self.view), self.view))
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 4021, in CopyCellsToClipboardHdr
          CopyCellsToClipboard(view, False, True)
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 4018, in CopyCellsToClipboard
          view.CopyCellsToClipboard(view, as_csv, with_hdr)
        File "tools/perf/scripts/python/exported-sql-viewer.py", line 3871, in CopyTableCellsToClipboard
          val = model.headerData(col, Qt.Horizontal)
      TypeError: headerData() missing 1 required positional argument: 'role'
      
      Fixes: 96c43b9a ("perf scripts python: exported-sql-viewer.py: Add copy to clipboard")
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: stable@vger.kernel.org
      Link: http://lore.kernel.org/lkml/20210521092053.25683-2-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a6172059
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync files changed by the quotactl_path unwiring · bffcbe79
      Arnaldo Carvalho de Melo authored
      To pick the changes in this csets:
      
        5b9fedb3 ("quota: Disable quotactl_path syscall")
      
      That silences these perf build warnings:
      
        Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h'
        diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h
        Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'
        diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
        Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl'
        diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
        Warning: Kernel ABI header at 'tools/perf/arch/s390/entry/syscalls/syscall.tbl' differs from latest version at 'arch/s390/kernel/syscalls/syscall.tbl'
        diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
        Warning: Kernel ABI header at 'tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl' differs from latest version at 'arch/mips/kernel/syscalls/syscall_n64.tbl'
        diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl
      
      Cc: Jan Kara <jack@suse.cz>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      bffcbe79
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync linux/perf_event.h with the kernel sources · 4224680e
      Arnaldo Carvalho de Melo authored
      To pick the trivial change in:
      
        0683b531 ("signal: Deliver all of the siginfo perf data in _perf")
      
      This silences this perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/perf_event.h' differs from latest version at 'include/uapi/linux/perf_event.h'
        diff -u tools/include/uapi/linux/perf_event.h include/uapi/linux/perf_event.h
      
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4224680e
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync linux/fs.h with the kernel sources · ec347b7c
      Arnaldo Carvalho de Melo authored
      To pick the trivial change in:
      
        63c8af56 ("block: uapi: fix comment about block device ioctl")
      
      This silences this perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/fs.h' differs from latest version at 'include/uapi/linux/fs.h'
        diff -u tools/include/uapi/linux/fs.h include/uapi/linux/fs.h
      
      Cc: Damien Le Moal <damien.lemoal@wdc.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      ec347b7c