1. 14 Feb, 2020 1 commit
    • Arnaldo Carvalho de Melo's avatar
      perf llvm: Fix script used to obtain kernel make directives to work with new kbuild · 62765941
      Arnaldo Carvalho de Melo authored
      Before this patch:
      
        # ./perf test 39 41
        39: LLVM search and compile                               :
        39.1: Basic BPF llvm compile                              : Ok
        39.2: kbuild searching                                    : FAILED!
        39.3: Compile source for BPF prologue generation          : Skip
        39.4: Compile source for BPF relocation                   : Skip
        41: BPF filter                                            :
        41.1: Basic BPF filtering                                 : Ok
        41.2: BPF pinning                                         : Ok
        41.3: BPF prologue generation                             : FAILED!
        41.4: BPF relocation checker                              : Skip
        #
      
      Using 'perf test -v' for these tests shows that it is not finding
      uapi/linux/fs.h, which ends up being because we don't setup the right header
      path. Fix it.
      
      After this patch:
      
        # perf test 39 41
        39: LLVM search and compile                               :
        39.1: Basic BPF llvm compile                              : Ok
        39.2: kbuild searching                                    : Ok
        39.3: Compile source for BPF prologue generation          : Ok
        39.4: Compile source for BPF relocation                   : Ok
        41: BPF filter                                            :
        41.1: Basic BPF filtering                                 : Ok
        41.2: BPF pinning                                         : Ok
        41.3: BPF prologue generation                             : Ok
        41.4: BPF relocation checker                              : Ok
        #
      
      Longer description:
      
      In llvm-utils.c we use some techniques to obtain the kbuild make
      directives and that recently stopped working as now 'ar' gets called and
      expects to find the dummy.o used to echo these variables:
      
        $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS)
      
      Add the $(CC) line to satisfy that, making sure this works with all
      kernels, i.e. preserving the temp directory and files in it used for
      this technique we can see that it works everywhere:
      
        # make -s -C /lib/modules/5.4.18-100.fc30.x86_64/build M=/tmp/tmp.qgaFHgxjZ4/ clean
        # ls -la /tmp/tmp.qgaFHgxjZ4/
        total 4
        drwx------.  2 root root   80 Feb 14 09:42 .
        drwxrwxrwt. 47 root root 1200 Feb 14 09:42 ..
        -rw-r--r--.  1 root root    0 Feb 13 17:14 dummy.c
        -rw-r--r--.  1 root root  121 Feb 13 17:14 Makefile
        #
        # cat /tmp/tmp.qgaFHgxjZ4/Makefile
        obj-y := dummy.o
        $(obj)/%.o: $(src)/%.c
                @echo -n "$(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS)"
                $(CC) -c -o $@ $<
        #
      
      Then build with an old kernel Makefile:
      
        # make -s -C /lib/modules/5.4.18-100.fc30.x86_64/build M=/tmp/tmp.qgaFHgxjZ4/ dummy.o
        -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h
        #
        # ls -la /tmp/tmp.qgaFHgxjZ4/
        total 8
        drwx------.  2 root root  100 Feb 14 09:43 .
        drwxrwxrwt. 47 root root 1200 Feb 14 09:43 ..
        -rw-r--r--.  1 root root    0 Feb 13 17:14 dummy.c
        -rw-r--r--.  1 root root  936 Feb 14 09:43 dummy.o
        -rw-r--r--.  1 root root  121 Feb 13 17:14 Makefile
        #
      
      And a new one:
      
        # make -s -C /lib/modules/5.4.18-100.fc30.x86_64/build M=/tmp/tmp.qgaFHgxjZ4/ clean
        # ls -la /tmp/tmp.qgaFHgxjZ4/
        total 4
        drwx------.  2 root root   80 Feb 14 09:43 .
        drwxrwxrwt. 47 root root 1200 Feb 14 09:43 ..
        -rw-r--r--.  1 root root    0 Feb 13 17:14 dummy.c
        -rw-r--r--.  1 root root  121 Feb 13 17:14 Makefile
        # make -s -C /lib/modules/5.6.0-rc1+/build M=/tmp/tmp.qgaFHgxjZ4/ dummy.o
         -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/9/include -I/home/acme/git/linux/arch/x86/include -I./arch/x86/include/generated -I/home/acme/git/linux/include -I./include -I/home/acme/git/linux/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/home/acme/git/linux/include/uapi -I./include/generated/uapi -include /home/acme/git/linux/include/linux/kconfig.h
        #
        # ls -la /tmp/tmp.qgaFHgxjZ4/
        total 16
        drwx------.  2 root root  160 Feb 14 09:44 .
        drwxrwxrwt. 47 root root 1200 Feb 14 09:44 ..
        -rw-r--r--.  1 root root  158 Feb 14 09:44 built-in.a
        -rw-r--r--.  1 root root  149 Feb 14 09:44 .built-in.a.cmd
        -rw-r--r--.  1 root root    0 Feb 13 17:14 dummy.c
        -rw-r--r--.  1 root root  936 Feb 14 09:44 dummy.o
        -rw-r--r--.  1 root root  121 Feb 13 17:14 Makefile
        -rw-r--r--.  1 root root    0 Feb 14 09:44 modules.order
        #
      Reported-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Tested-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: He Kuang <hekuang@huawei.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: Wang Nan <wangnan0@huawei.com>
      Cc: Zefan Li <lizefan@huawei.com>
      Link: https://www.spinics.net/lists/linux-perf-users/msg10600.htmlSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      62765941
  2. 12 Feb, 2020 9 commits
    • Arnaldo Carvalho de Melo's avatar
      tools headers kvm: Sync linux/kvm.h with the kernel sources · 2a8d017d
      Arnaldo Carvalho de Melo authored
      To pick up the changes from:
      
        7de3f142 ("KVM: s390: Add new reset vcpu API")
      
      So far we're ignoring those arch specific ioctls, we need to revisit
      this at some time to have arch specific tables, etc:
      
        $ grep S390 tools/perf/trace/beauty/kvm_ioctl.sh
        	egrep -v " ((ARM|PPC|S390)_|[GS]ET_(DEBUGREGS|PIT2|XSAVE|TSC_KHZ)|CREATE_SPAPR_TCE_64)" | \
        $
      
      This addresses these tools/perf build warnings:
      
        Warning: Kernel ABI header at 'tools/arch/arm/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm/include/uapi/asm/kvm.h'
        diff -u tools/arch/arm/include/uapi/asm/kvm.h arch/arm/include/uapi/asm/kvm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Janosch Frank <frankja@linux.ibm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2a8d017d
    • Arnaldo Carvalho de Melo's avatar
      tools headers kvm: Sync kvm headers with the kernel sources · 391df72f
      Arnaldo Carvalho de Melo authored
      To pick up the changes from:
      
        290a6bb0 ("arm64: KVM: Add UAPI notes for swapped registers")
      
      No tools changes are caused by this.
      
      This addresses these tools/perf build warnings:
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andrew Jones <drjones@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      391df72f
    • Arnaldo Carvalho de Melo's avatar
      tools arch x86: Sync asm/cpufeatures.h with the kernel sources · 71dd6528
      Arnaldo Carvalho de Melo authored
      To pick up the changes from:
      
        85c17291 ("x86/cpufeatures: Add flag to track whether MSR IA32_FEAT_CTL is configured")
        f444a5ff ("x86/cpufeatures: Add support for fast short REP; MOVSB")
      
      These don't cause any changes in tooling, just silences this perf build
      warning:
      
        Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
        diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Sean Christopherson <sean.j.christopherson@intel.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      71dd6528
    • Arnaldo Carvalho de Melo's avatar
      tools headers x86: Sync disabled-features.h · 7636b586
      Arnaldo Carvalho de Melo authored
      To silence the following tools/perf build warning:
      
        Warning: Kernel ABI header at 'tools/arch/x86/include/asm/disabled-features.h' differs from latest version at 'arch/x86/include/asm/disabled-features.h'
        diff -u tools/arch/x86/include/asm/disabled-features.h arch/x86/include/asm/disabled-features.h
      
      Picking up the changes in:
      
        45fc24e8 ("x86/mpx: remove MPX from arch/x86")
      
      that didn't entail any functionality change in the tooling side.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7636b586
    • Arnaldo Carvalho de Melo's avatar
      tools include UAPI: Sync sound/asound.h copy · 8c65582f
      Arnaldo Carvalho de Melo authored
      Picking the changes from:
      
        46b770f7 ("ALSA: uapi: Fix sparse warning")
        a103a398 ("ALSA: control: Fix incompatible protocol error")
        bd3eb4e8 ("ALSA: ctl: bump protocol version up to v2.1.0")
        ff16351e ("ALSA: ctl: remove dimen member from elem_info structure")
        54228356 ("ALSA: ctl: remove unused macro for timestamping of elem_value")
        7fd7d6c5 ("ALSA: uapi: Fix typos and header inclusion in asound.h")
        1cfaef96 ("ALSA: bump uapi version numbers")
        80fe7430 ("ALSA: add new 32-bit layout for snd_pcm_mmap_status/control")
        07094ae6 ("ALSA: Avoid using timespec for struct snd_timer_tread")
        d9e5582c ("ALSA: Avoid using timespec for struct snd_rawmidi_status")
        3ddee7f8 ("ALSA: Avoid using timespec for struct snd_pcm_status")
        a4e7dd35 ("ALSA: Avoid using timespec for struct snd_ctl_elem_value")
        a07804cc ("ALSA: Avoid using timespec for struct snd_timer_status")
      
      Which entails no changes in the tooling side.
      
      To silence this perf tools build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/sound/asound.h' differs from latest version at 'include/uapi/sound/asound.h'
        diff -u tools/include/uapi/sound/asound.h include/uapi/sound/asound.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Baolin Wang <baolin.wang@linaro.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      8c65582f
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync asm-generic/mman-common.h with the kernel · 47f8d94a
      Arnaldo Carvalho de Melo authored
      To pick the changes from:
      
        d41938d2 ("mm: Reserve asm-generic prot flags 0x10 and 0x20 for arch use")
      
      No changes in tooling, just a rebuild as files needed got touched.
      
      This addresses the following perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/mman-common.h' differs from latest version at 'include/uapi/asm-generic/mman-common.h'
        diff -u tools/include/uapi/asm-generic/mman-common.h include/uapi/asm-generic/mman-common.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Dave Martin <Dave.Martin@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      47f8d94a
    • John Garry's avatar
      perf tools: Add arm64 version of get_cpuid() · df5a5f3c
      John Garry authored
      Add an arm64 version of get_cpuid(), which is used for various annotation
      and headers - for example, I now get the CPUID in "perf report --header",
      as shown in this snippet:
      
        # hostname : ubuntu
        # os release : 5.5.0-rc1-dirty
        # perf version : 5.5.rc1.gbf8a13dc9851
        # arch : aarch64
        # nrcpus online : 96
        # nrcpus avail : 96
        # cpuid : 0x00000000480fd010
      
      Since much of the code to read the MIDR is already in get_cpuid_str(),
      factor out this code.
      
      Tester notes:
      
      I tested this patch on my new ARM64 Kunpeng 920 server.
      [root@node1 zsk]# ./perf --version
      perf version 5.6.rc1.g2cdb955b7252
      
      Both perf list and perf stat can work.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Tested-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Will Deacon <will@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linuxarm@huawei.com
      Link: http://lore.kernel.org/lkml/1576245255-210926-1-git-send-email-john.garry@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      df5a5f3c
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync drm/i915_drm.h with the kernel sources · 365f9cc1
      Arnaldo Carvalho de Melo authored
      To pick the change in:
      
        cc662126 ("drm/i915: Introduce DRM_I915_GEM_MMAP_OFFSET")
      
      That don't result in any changes in tooling, just silences this perf
      build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h'
        diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h
      
      Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      365f9cc1
    • Arnaldo Carvalho de Melo's avatar
      tools headers uapi: Sync linux/fscrypt.h with the kernel sources · f65b9dba
      Arnaldo Carvalho de Melo authored
      To pick the changes from:
      
        e933adde ("fscrypt: include <linux/ioctl.h> in UAPI header")
        93edd392 ("fscrypt: support passing a keyring key to FS_IOC_ADD_ENCRYPTION_KEY")
      
      That don't trigger any changes in tooling.
      
      This silences this perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/fscrypt.h' differs from latest version at 'include/uapi/linux/fscrypt.h'
        diff -u tools/include/uapi/linux/fscrypt.h include/uapi/linux/fscrypt.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Eric Biggers <ebiggers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f65b9dba
  3. 11 Feb, 2020 10 commits
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync sched.h with the kernel · d6d829d9
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
        769071ac ("ns: Introduce Time Namespace")
      
      Silencing this tools/perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h'
        diff -u tools/include/uapi/linux/sched.h include/uapi/linux/sched.h
      
      Which enables 'perf trace' to decode the CLONE_NEWTIME bit in the
      'flags' argument to the clone syscalls.
      
      Example of clone flags being decoded:
      
        [root@quaco ~]# perf trace -e clone*
             0.000 qemu-system-x8/23923 clone(clone_flags: VM|FS|FILES|SIGHAND|THREAD|SYSVSEM|SETTLS|PARENT_SETTID|CHILD_CLEARTID, newsp: 0x7f0dad7f9870, parent_tidptr: 0x7f0dad7fa9d0, child_tidptr: 0x7f0dad7fa9d0, tls: 0x7f0dad7fa700) = 6806 (qemu-system-x86)
                 ? qemu-system-x8/6806  ... [continued]: clone())              = 0
        ^C[root@quaco ~]#
      
      At some point this should enable things like:
      
        # perf trace -e 'clone*/clone_flags&NEWTIME/'
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andrei Vagin <avagin@openvz.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d6d829d9
    • Arnaldo Carvalho de Melo's avatar
      perf trace: Resolve prctl's 'option' arg strings to numbers · d7a07b29
      Arnaldo Carvalho de Melo authored
        # perf trace -e syscalls:sys_enter_prctl --filter="option==SET_NAME"
           0.000 Socket Thread/3860 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7fc50b9733e8)
           0.053 SSL Cert #78/3860 syscalls:sys_enter_prctl(option: SET_NAME, arg2: 0x7fc50b9733e8)
      ^C  #
      
      If one uses '-v' with 'perf trace', we can see the filter it puts in
      place:
      
        New filter for syscalls:sys_enter_prctl: (option==0xf) && (common_pid != 3859 && common_pid != 2757)
      
      We still need to allow using plain '-e prctl' and have this turn into
      creating a 'syscalls:sys_enter_prctl' event so that the filter can be
      applied only to it as right now '-e prctl' ends up using the
      'raw_syscalls:sys_enter/sys_exit'.
      
      The end goal is to have something like:
      
        # perf trace -e prctl/option==SET_NAME/
      
      And have that use tracepoint filters or eBPF ones.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <christian.brauner@ubuntu.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mike Christie <mchristi@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d7a07b29
    • Arnaldo Carvalho de Melo's avatar
      perf beauty prctl: Export the 'options' strarray · c0134b33
      Arnaldo Carvalho de Melo authored
      So that we can use it with strtoul, allowing string to number
      conversions in filter expressions.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <christian.brauner@ubuntu.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mike Christie <mchristi@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c0134b33
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync prctl.h with the kernel sources · fc9199d4
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
        8d19f1c8 ("prctl: PR_{G,S}ET_IO_FLUSHER to support controlling memory reclaim")
      
      Which ends up having this effect in tooling, i.e. the addition of the
      support to those prctl's options:
      
        $ tools/perf/trace/beauty/prctl_option.sh > before
        $ cp include/uapi/linux/prctl.h tools/include/uapi/linux/prctl.h
        $ git diff
        diff --git a/tools/include/uapi/linux/prctl.h b/tools/include/uapi/linux/prctl.h
        index 7da1b37b27aa..07b4f8131e36 100644
        --- a/tools/include/uapi/linux/prctl.h
        +++ b/tools/include/uapi/linux/prctl.h
        @@ -234,4 +234,8 @@ struct prctl_mm_map {
         #define PR_GET_TAGGED_ADDR_CTRL                56
         # define PR_TAGGED_ADDR_ENABLE         (1UL << 0)
      
        +/* Control reclaim behavior when allocating memory */
        +#define PR_SET_IO_FLUSHER              57
        +#define PR_GET_IO_FLUSHER              58
        +
         #endif /* _LINUX_PRCTL_H */
        $ tools/perf/trace/beauty/prctl_option.sh > after
        $ diff -u before after
        --- before	2020-02-11 15:24:35.339289912 -0300
        +++ after	2020-02-11 15:24:56.319711315 -0300
        @@ -51,6 +51,8 @@
         	[54] = "PAC_RESET_KEYS",
         	[55] = "SET_TAGGED_ADDR_CTRL",
         	[56] = "GET_TAGGED_ADDR_CTRL",
        +	[57] = "SET_IO_FLUSHER",
        +	[58] = "GET_IO_FLUSHER",
         };
         static const char *prctl_set_mm_options[] = {
         	[1] = "START_CODE",
        $
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Brauner <christian.brauner@ubuntu.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mike Christie <mchristi@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fc9199d4
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync copy of arm64's asm/unistd.h with the kernel sources · c75bec79
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
        3e3c8ca5 ("arm64: Move __ARCH_WANT_SYS_CLONE3 definition to uapi headers")
      
      Silencing this tools/perf/ build warning:
      
        Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/unistd.h' differs from latest version at 'arch/arm64/include/uapi/asm/unistd.h'
        diff -u tools/arch/arm64/include/uapi/asm/unistd.h arch/arm64/include/uapi/asm/unistd.h
      
      Which will probably end up enabling the use of "clone3" in 'perf trace -e',
      haven't checked the build with this change on an arm64 system.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Amanieu d'Antras <amanieu@gmail.com>
      Cc: Christian Brauner <christian.brauner@ubuntu.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c75bec79
    • Jiri Olsa's avatar
      perf maps: Move kmap::kmaps setup to maps__insert() · 484214f4
      Jiri Olsa authored
      So the kmaps pointer setup is centralized and we do not need to update
      it in all those places (2 current places and few more missing) after
      calling maps__insert().
      Reported-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Tested-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Tested-by: default avatarKim Phillips <kim.phillips@amd.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200210143218.24948-5-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      484214f4
    • Jiri Olsa's avatar
      perf maps: Fix map__clone() for struct kmap · 7ce66139
      Jiri Olsa authored
      The map__clone() function can be called on kernel maps as well, so it
      needs to duplicate the whole kmap data.
      Reported-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Tested-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Tested-by: default avatarKim Phillips <kim.phillips@amd.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200210143218.24948-4-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7ce66139
    • Jiri Olsa's avatar
      perf maps: Mark ksymbol DSOs with kernel type · 4a4eb615
      Jiri Olsa authored
      We add ksymbol map into machine->kmaps, so it needs to be created as
      'struct kmap', which is dependent on its dso having kernel type.
      Reported-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Tested-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Tested-by: default avatarKim Phillips <kim.phillips@amd.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200210200847.GA36715@kravaSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4a4eb615
    • Jiri Olsa's avatar
      perf maps: Mark module DSOs with kernel type · 02213cec
      Jiri Olsa authored
      We add kernel module map into machine->kmaps, so it needs to be created
      as 'struct kmap', which is dependent on its dso having kernel type.
      Reported-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Tested-by: default avatarKim Phillips <kim.phillips@amd.com>
      Tested-by: default avatarRavi Bangoria <ravi.bangoria@linux.ibm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200210143218.24948-2-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      02213cec
    • Arnaldo Carvalho de Melo's avatar
      tools include UAPI: Sync x86's syscalls_64.tbl, generic unistd.h and fcntl.h... · c4528333
      Arnaldo Carvalho de Melo authored
      tools include UAPI: Sync x86's syscalls_64.tbl, generic unistd.h and fcntl.h to pick up openat2 and pidfd_getfd
      
        fddb5d43 ("open: introduce openat2(2) syscall")
        9a2cef09 ("arch: wire up pidfd_getfd syscall")
      
      We also need to grab a copy of uapi/linux/openat2.h since it is now
      needed by fcntl.h, add it to tools/perf/check_headers.h.
      
        $ diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
        --- tools/perf/arch/x86/entry/syscalls/syscall_64.tbl	2019-12-20 16:43:57.662429958 -0300
        +++ arch/x86/entry/syscalls/syscall_64.tbl	2020-02-10 16:36:22.070012468 -0300
        @@ -357,6 +357,8 @@
         433	common	fspick			__x64_sys_fspick
         434	common	pidfd_open		__x64_sys_pidfd_open
         435	common	clone3			__x64_sys_clone3/ptregs
        +437	common	openat2			__x64_sys_openat2
        +438	common	pidfd_getfd		__x64_sys_pidfd_getfd
      
         #
         # x32-specific system call numbers start at 512 to avoid cache impact
        $
      
      Update tools/'s copy of that file:
      
        $ cp arch/x86/entry/syscalls/syscall_64.tbl tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
      
      See the result:
      
        $ diff -u /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c.before /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c
        --- /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c.before	2020-02-10 16:42:59.010636041 -0300
        +++ /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c	2020-02-10 16:43:24.149958337 -0300
        @@ -346,5 +346,7 @@
         	[433] = "fspick",
         	[434] = "pidfd_open",
         	[435] = "clone3",
        +	[437] = "openat2",
        +	[438] = "pidfd_getfd",
         };
        -#define SYSCALLTBL_x86_64_MAX_ID 435
        +#define SYSCALLTBL_x86_64_MAX_ID 438
        $
      
      Now one can use:
      
        perf trace -e openat2,pidfd_getfd
      
      To get just those syscalls or use in things like:
      
        perf trace -e open*
      
      To get all the open variant (open, openat, openat2, etc) or:
      
        perf trace pidfd*
      
      To get the pidfd syscalls.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Aleksa Sarai <cyphar@cyphar.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christian Brauner <christian.brauner@ubuntu.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Sargun Dhillon <sargun@sargun.me>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c4528333
  4. 10 Feb, 2020 5 commits
    • Kim Phillips's avatar
      perf symbols: Convert symbol__is_idle() to use strlist · bc5f15be
      Kim Phillips authored
      Use the more optimized strlist implementation to do the idle function
      lookup.
      Signed-off-by: default avatarKim Phillips <kim.phillips@amd.com>
      Acked-by: default avatarSong Liu <songliubraving@fb.com>
      Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Cong Wang <xiyou.wangcong@gmail.com>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200210163147.25358-1-kim.phillips@amd.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      bc5f15be
    • Kim Phillips's avatar
      perf symbols: Update the list of kernel idle symbols · 0e71459a
      Kim Phillips authored
      The "acpi_idle_do_entry", "acpi_processor_ffh_cstate_enter", and
      "idle_cpu" symbols appear in 'perf top' output, at least on AMD systems.
      
      Add them to perf's idle_symbols list, so they don't dominate 'perf top'
      output.
      Signed-off-by: default avatarKim Phillips <kim.phillips@amd.com>
      Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
      Acked-by: default avatarSong Liu <songliubraving@fb.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Cong Wang <xiyou.wangcong@gmail.com>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200207230613.26709-2-kim.phillips@amd.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      0e71459a
    • Kim Phillips's avatar
      perf stat: Don't report a null stalled cycles per insn metric · 80cc7bb6
      Kim Phillips authored
      For data collected on machines with front end stalled cycles supported,
      such as found on modern AMD CPU families, commit 146540fb ("perf
      stat: Always separate stalled cycles per insn") introduces a new line in
      CSV output with a leading comma that upsets some automated scripts.
      Scripts have to use "-e ex_ret_instr" to work around this issue, after
      upgrading to a version of perf with that commit.
      
      We could add "if (have_frontend_stalled && !config->csv_sep)" to the not
      (total && avg) else clause, to emphasize that CSV users are usually
      scripts, and are written to do only what is needed, i.e., they wouldn't
      typically invoke "perf stat" without specifying an explicit event list.
      
      But - let alone CSV output - why should users now tolerate a constant
      0-reporting extra line in regular terminal output?:
      
      BEFORE:
      
      $ sudo perf stat --all-cpus -einstructions,cycles -- sleep 1
      
       Performance counter stats for 'system wide':
      
             181,110,981      instructions              #    0.58  insn per cycle
                                                        #    0.00  stalled cycles per insn
             309,876,469      cycles
      
             1.002202582 seconds time elapsed
      
      The user would not like to see the now permanent:
      
        "0.00  stalled cycles per insn"
      
      line fixture, as it gives no useful information.
      
      So this patch removes the printing of the zeroed stalled cycles line
      altogether, almost reverting the very original commit fb4605ba
      ("perf stat: Check for frontend stalled for metrics"), which seems like
      it was written to normalize --metric-only column output of common Intel
      machines at the time: modern Intel machines have ceased to support the
      genericised frontend stalled metrics AFAICT.
      
      AFTER:
      
      $ sudo perf stat --all-cpus -einstructions,cycles -- sleep 1
      
       Performance counter stats for 'system wide':
      
             244,071,432      instructions              #    0.69  insn per cycle
             355,353,490      cycles
      
             1.001862516 seconds time elapsed
      
      Output behaviour when stalled cycles is indeed measured is not affected
      (BEFORE == AFTER):
      
      $ sudo perf stat --all-cpus -einstructions,cycles,stalled-cycles-frontend -- sleep 1
      
       Performance counter stats for 'system wide':
      
             247,227,799      instructions              #    0.63  insn per cycle
                                                        #    0.26  stalled cycles per insn
             394,745,636      cycles
              63,194,485      stalled-cycles-frontend   #   16.01% frontend cycles idle
      
             1.002079770 seconds time elapsed
      
      Fixes: 146540fb ("perf stat: Always separate stalled cycles per insn")
      Signed-off-by: default avatarKim Phillips <kim.phillips@amd.com>
      Acked-by: default avatarAndi Kleen <ak@linux.intel.com>
      Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
      Acked-by: default avatarSong Liu <songliubraving@fb.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Cong Wang <xiyou.wangcong@gmail.com>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20200207230613.26709-1-kim.phillips@amd.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      80cc7bb6
    • Linus Torvalds's avatar
      Linux 5.6-rc1 · bb6d3fb3
      Linus Torvalds authored
      bb6d3fb3
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 89a47dd1
      Linus Torvalds authored
      Pull more Kbuild updates from Masahiro Yamada:
      
       - fix randconfig to generate a sane .config
      
       - rename hostprogs-y / always to hostprogs / always-y, which are more
         natual syntax.
      
       - optimize scripts/kallsyms
      
       - fix yes2modconfig and mod2yesconfig
      
       - make multiple directory targets ('make foo/ bar/') work
      
      * tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: make multiple directory targets work
        kconfig: Invalidate all symbols after changing to y or m.
        kallsyms: fix type of kallsyms_token_table[]
        scripts/kallsyms: change table to store (strcut sym_entry *)
        scripts/kallsyms: rename local variables in read_symbol()
        kbuild: rename hostprogs-y/always to hostprogs/always-y
        kbuild: fix the document to use extra-y for vmlinux.lds
        kconfig: fix broken dependency in randconfig-generated .config
      89a47dd1
  5. 09 Feb, 2020 12 commits
    • Linus Torvalds's avatar
      Merge tag 'zonefs-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 380a129e
      Linus Torvalds authored
      Pull new zonefs file system from Damien Le Moal:
       "Zonefs is a very simple file system exposing each zone of a zoned
        block device as a file.
      
        Unlike a regular file system with native zoned block device support
        (e.g. f2fs or the on-going btrfs effort), zonefs does not hide the
        sequential write constraint of zoned block devices to the user. As a
        result, zonefs is not a POSIX compliant file system. Its goal is to
        simplify the implementation of zoned block devices support in
        applications by replacing raw block device file accesses with a richer
        file based API, avoiding relying on direct block device file ioctls
        which may be more obscure to developers.
      
        One example of this approach is the implementation of LSM
        (log-structured merge) tree structures (such as used in RocksDB and
        LevelDB) on zoned block devices by allowing SSTables to be stored in a
        zone file similarly to a regular file system rather than as a range of
        sectors of a zoned device. The introduction of the higher level
        construct "one file is one zone" can help reducing the amount of
        changes needed in the application while at the same time allowing the
        use of zoned block devices with various programming languages other
        than C.
      
        Zonefs IO management implementation uses the new iomap generic code.
        Zonefs has been successfully tested using a functional test suite
        (available with zonefs userland format tool on github) and a prototype
        implementation of LevelDB on top of zonefs"
      
      * tag 'zonefs-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: Add documentation
        fs: New zonefs file system
      380a129e
    • Marc Zyngier's avatar
      irqchip/gic-v4.1: Avoid 64bit division for the sake of 32bit ARM · 490d332e
      Marc Zyngier authored
      In order to allow the GICv4 code to link properly on 32bit ARM,
      make sure we don't use 64bit divisions when it isn't strictly
      necessary.
      
      Fixes: 4e6437f1 ("irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level")
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Zenghui Yu <yuzenghui@huawei.com>
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      490d332e
    • Linus Torvalds's avatar
      Merge tag '5.6-rc-smb3-plugfest-patches' of git://git.samba.org/sfrench/cifs-2.6 · d1ea35f4
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "13 cifs/smb3 patches, most from testing at the SMB3 plugfest this week:
      
         - Important fix for multichannel and for modefromsid mounts.
      
         - Two reconnect fixes
      
         - Addition of SMB3 change notify support
      
         - Backup tools fix
      
         - A few additional minor debug improvements (tracepoints and
           additional logging found useful during testing this week)"
      
      * tag '5.6-rc-smb3-plugfest-patches' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: Add defines for new information level, FileIdInformation
        smb3: print warning once if posix context returned on open
        smb3: add one more dynamic tracepoint missing from strict fsync path
        cifs: fix mode bits from dir listing when mounted with modefromsid
        cifs: fix channel signing
        cifs: add SMB3 change notification support
        cifs: make multichannel warning more visible
        cifs: fix soft mounts hanging in the reconnect code
        cifs: Add tracepoints for errors on flush or fsync
        cifs: log warning message (once) if out of disk space
        cifs: fail i/o on soft mounts if sessionsetup errors out
        smb3: fix problem with null cifs super block with previous patch
        SMB3: Backup intent flag missing from some more ops
      d1ea35f4
    • Linus Torvalds's avatar
      Merge branch 'work.vboxsf' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 5586c3c1
      Linus Torvalds authored
      Pull vboxfs from Al Viro:
       "This is the VirtualBox guest shared folder support by Hans de Goede,
        with fixups for fs_parse folded in to avoid bisection hazards from
        those API changes..."
      
      * 'work.vboxsf' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fs: Add VirtualBox guest shared folder (vboxsf) support
      5586c3c1
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1a2a76c2
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of fixes for X86:
      
         - Ensure that the PIT is set up when the local APIC is disable or
           configured in legacy mode. This is caused by an ordering issue
           introduced in the recent changes which skip PIT initialization when
           the TSC and APIC frequencies are already known.
      
         - Handle malformed SRAT tables during early ACPI parsing which caused
           an infinite loop anda boot hang.
      
         - Fix a long standing race in the affinity setting code which affects
           PCI devices with non-maskable MSI interrupts. The problem is caused
           by the non-atomic writes of the MSI address (destination APIC id)
           and data (vector) fields which the device uses to construct the MSI
           message. The non-atomic writes are mandated by PCI.
      
           If both fields change and the device raises an interrupt after
           writing address and before writing data, then the MSI block
           constructs a inconsistent message which causes interrupts to be
           lost and subsequent malfunction of the device.
      
           The fix is to redirect the interrupt to the new vector on the
           current CPU first and then switch it over to the new target CPU.
           This allows to observe an eventually raised interrupt in the
           transitional stage (old CPU, new vector) to be observed in the APIC
           IRR and retriggered on the new target CPU and the new vector.
      
           The potential spurious interrupts caused by this are harmless and
           can in the worst case expose a buggy driver (all handlers have to
           be able to deal with spurious interrupts as they can and do happen
           for various reasons).
      
         - Add the missing suspend/resume mechanism for the HYPERV hypercall
           page which prevents resume hibernation on HYPERV guests. This
           change got lost before the merge window.
      
         - Mask the IOAPIC before disabling the local APIC to prevent
           potentially stale IOAPIC remote IRR bits which cause stale
           interrupt lines after resume"
      
      * tag 'x86-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic: Mask IOAPIC entries when disabling the local APIC
        x86/hyperv: Suspend/resume the hypercall page for hibernation
        x86/apic/msi: Plug non-maskable MSI affinity race
        x86/boot: Handle malformed SRAT tables during early ACPI parsing
        x86/timer: Don't skip PIT setup when APIC is disabled or in legacy mode
      1a2a76c2
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f4137760
      Linus Torvalds authored
      Pull SMP fixes from Thomas Gleixner:
       "Two fixes for the SMP related functionality:
      
         - Make the UP version of smp_call_function_single() match SMP
           semantics when called for a not available CPU. Instead of emitting
           a warning and assuming that the function call target is CPU0,
           return a proper error code like the SMP version does.
      
         - Remove a superfluous check in smp_call_function_many_cond()"
      
      * tag 'smp-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        smp/up: Make smp_call_function_single() match SMP semantics
        smp: Remove superfluous cond_func check in smp_call_function_many_cond()
      f4137760
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ca21b9b3
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "A set of fixes and improvements for the perf subsystem:
      
        Kernel fixes:
      
         - Install cgroup events to the correct CPU context to prevent a
           potential list double add
      
         - Prevent an integer underflow in the perf mlock accounting
      
         - Add a missing prototype for arch_perf_update_userpage()
      
        Tooling:
      
         - Add a missing unlock in the error path of maps__insert() in perf
           maps.
      
         - Fix the build with the latest libbfd
      
         - Fix the perf parser so it does not delete parse event terms, which
           caused a regression for using perf with the ARM CoreSight as the
           sink configuration was missing due to the deletion.
      
         - Fix the double free in the perf CPU map merging test case
      
         - Add the missing ustring support for the perf probe command"
      
      * tag 'perf-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf maps: Add missing unlock to maps__insert() error case
        perf probe: Add ustring support for perf probe command
        perf: Make perf able to build with latest libbfd
        perf test: Fix test case Merge cpu map
        perf parse: Copy string to perf_evsel_config_term
        perf parse: Refactor 'struct perf_evsel_config_term'
        kernel/events: Add a missing prototype for arch_perf_update_userpage()
        perf/cgroups: Install cgroup events to correct cpuctx
        perf/core: Fix mlock accounting in perf_mmap()
      ca21b9b3
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fbc23c7
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "Two small fixes for the time(r) subsystem:
      
         - Handle a subtle race between the clocksource watchdog and a
           concurrent clocksource watchdog stop/start sequence correctly to
           prevent a timer double add bug.
      
         - Fix the file path for the core time namespace file"
      
      * tag 'timers-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource: Prevent double add_timer_on() for watchdog_timer
        MAINTAINERS: Correct path to time namespace source file
      2fbc23c7
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f06bed87
      Linus Torvalds authored
      Pull interrupt fixes from Thomas Gleixner:
       "A set of fixes for the interrupt subsystem:
      
         - Provision only ACPI enabled redistributors on GICv3
      
         - Use the proper command colums when building the INVALL command for
           the GICv3-ITS
      
         - Ensure the allocation of the L2 vPE table for GICv4.1
      
         - Correct the GICv4.1 VPROBASER programming so it uses the proper
           size
      
         - A set of small GICv4.1 tidy up patches
      
         - Configuration cleanup for C-SKY interrupt chip
      
         - Clarify the function documentation for irq_set_wake() to document
           that the wakeup functionality is orthogonal to the irq
           disable/enable mechanism"
      
      * tag 'irq-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Rename VPENDBASER/VPROPBASER accessors
        irqchip/gic-v3-its: Remove superfluous WARN_ON
        irqchip/gic-v4.1: Drop 'tmp' in inherit_vpe_l1_table_from_rd()
        irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level
        irqchip/gic-v4.1: Set vpe_l1_base for all redistributors
        irqchip/gic-v4.1: Fix programming of GICR_VPROPBASER_4_1_SIZE
        genirq: Clarify that irq wake state is orthogonal to enable/disable
        irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL
        irqchip: Some Kconfig cleanup for C-SKY
        irqchip/gic-v3: Only provision redistributors that are enabled in ACPI
      f06bed87
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6ff90aa2
      Linus Torvalds authored
      Pull EFI fix from Thomas Gleixner:
       "A single fix for a EFI boot regression on X86 which was caused by the
        recent rework of the EFI memory map parsing. On systems with invalid
        memmap entries the cleanup function uses an value which cannot be
        relied on in this stage. Use the actual EFI memmap entry instead"
      
      * tag 'efi-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/x86: Fix boot regression on systems with invalid memmap entries
      6ff90aa2
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · fdfa3a67
      Linus Torvalds authored
      Pull misc SCSI fixes from James Bottomley:
       "Five small patches, all in drivers or doc, which missed the initial
        pull request.
      
        The qla2xxx and megaraid_sas are actual fixes and the rest are
        spelling and doc changes"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: fix spelling mistake "initilized" -> "initialized"
        scsi: pm80xx: fix spelling mistake "to" -> "too"
        scsi: MAINTAINERS: ufs: remove pedrom.sousa@synopsys.com
        scsi: megaraid_sas: fixup MSIx interrupt setup during resume
        scsi: qla2xxx: Fix unbound NVME response length
      fdfa3a67
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 291abfea
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Unbalanced locking in mwifiex_process_country_ie, from Brian Norris.
      
       2) Fix thermal zone registration in iwlwifi, from Andrei
          Otcheretianski.
      
       3) Fix double free_irq in sgi ioc3 eth, from Thomas Bogendoerfer.
      
       4) Use after free in mptcp, from Florian Westphal.
      
       5) Use after free in wireguard's root_remove_peer_lists, from Eric
          Dumazet.
      
       6) Properly access packets heads in bonding alb code, from Eric
          Dumazet.
      
       7) Fix data race in skb_queue_len(), from Qian Cai.
      
       8) Fix regression in r8169 on some chips, from Heiner Kallweit.
      
       9) Fix XDP program ref counting in hv_netvsc, from Haiyang Zhang.
      
      10) Certain kinds of set link netlink operations can cause a NULL deref
          in the ipv6 addrconf code. Fix from Eric Dumazet.
      
      11) Don't cancel uninitialized work queue in drop monitor, from Ido
          Schimmel.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (84 commits)
        net: thunderx: use proper interface type for RGMII
        mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap
        bpf: Improve bucket_log calculation logic
        selftests/bpf: Test freeing sockmap/sockhash with a socket in it
        bpf, sockhash: Synchronize_rcu before free'ing map
        bpf, sockmap: Don't sleep while holding RCU lock on tear-down
        bpftool: Don't crash on missing xlated program instructions
        bpf, sockmap: Check update requirements after locking
        drop_monitor: Do not cancel uninitialized work item
        mlxsw: spectrum_dpipe: Add missing error path
        mlxsw: core: Add validation of hardware device types for MGPIR register
        mlxsw: spectrum_router: Clear offload indication from IPv6 nexthops on abort
        selftests: mlxsw: Add test cases for local table route replacement
        mlxsw: spectrum_router: Prevent incorrect replacement of local table routes
        net: dsa: microchip: enable module autoprobe
        ipv6/addrconf: fix potential NULL deref in inet6_set_link_af()
        dpaa_eth: support all modes with rate adapting PHYs
        net: stmmac: update pci platform data to use phy_interface
        net: stmmac: xgmac: fix missing IFF_MULTICAST checki in dwxgmac2_set_filter
        net: stmmac: fix missing IFF_MULTICAST check in dwmac4_set_filter
        ...
      291abfea
  6. 08 Feb, 2020 3 commits