1. 19 Sep, 2018 24 commits
  2. 18 Sep, 2018 5 commits
  3. 12 Sep, 2018 7 commits
  4. 11 Sep, 2018 4 commits
    • Adrian Hunter's avatar
      perf tools: Fix maps__find_symbol_by_name() · 03db8b58
      Adrian Hunter authored
      Commit 1c5aae77 ("perf machine: Create maps for x86 PTI entry
      trampolines") revealed a problem with maps__find_symbol_by_name() that
      resulted in probes not being found e.g.
      
      	$ sudo perf probe xsk_mmap
      	xsk_mmap is out of .text, skip it.
      	Probe point 'xsk_mmap' not found.
      	   Error: Failed to add events.
      
      maps__find_symbol_by_name() can optionally return the map of the found
      symbol. It can get the map wrong because, in fact, the symbol is found
      on the map's dso, not allowing for the possibility that the dso has more
      than one map. Fix by always checking the map contains the symbol.
      Reported-by: default avatarBjörn Töpel <bjorn.topel@intel.com>
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Tested-by: default avatarBjörn Töpel <bjorn.topel@intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: stable@vger.kernel.org
      Fixes: 1c5aae77 ("perf machine: Create maps for x86 PTI entry trampolines")
      Link: http://lkml.kernel.org/r/20180907085116.25782-1-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      03db8b58
    • Arnaldo Carvalho de Melo's avatar
      tools headers uapi: Update tools's copy of linux/if_link.h · 5db48a8d
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
      	3e7a50ce ("net: report min and max mtu network device settings")
      	2756f68c ("net: bridge: add support for backup port")
      	a25717d2 ("xdp: support simultaneous driver and hw XDP attachment")
      	4f91da26 ("xdp: add per mode attributes for attached programs")
      	f203b76d ("xfrm: Add virtual xfrm interfaces")
      
      Silencing this libbpf build warning:
      
      	Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h'
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Cc: Steffen Klassert <steffen.klassert@secunet.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: https://lkml.kernel.org/n/tip-xd9ztioa894zemv8ag8kg64u@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5db48a8d
    • Arnaldo Carvalho de Melo's avatar
      tools headers uapi: Update tools's copy of linux/vhost.h · 7f28785c
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
      	c48300c9 ("vhost: fix VHOST_GET_BACKEND_FEATURES ioctl request definition")
      
      This makes 'perf trace' and other tools in the future using its
      beautifiers in a libbeauty.so library be able to translate these new
      ioctl to strings:
      
        $ tools/perf/trace/beauty/vhost_virtio_ioctl.sh  > /tmp/after
        $ diff -u /tmp/before /tmp/after
        --- /tmp/before	2018-09-11 13:10:57.923038244 -0300
        +++ /tmp/after	2018-09-11 13:11:20.329012685 -0300
        @@ -15,6 +15,7 @@
              [0x22] = "SET_VRING_ERR",
              [0x23] = "SET_VRING_BUSYLOOP_TIMEOUT",
              [0x24] = "GET_VRING_BUSYLOOP_TIMEOUT",
        +     [0x25] = "SET_BACKEND_FEATURES",
              [0x30] = "NET_SET_BACKEND",
              [0x40] = "SCSI_SET_ENDPOINT",
              [0x41] = "SCSI_CLEAR_ENDPOINT",
        @@ -27,4 +28,5 @@
         static const char *vhost_virtio_ioctl_read_cmds[] = {
              [0x00] = "GET_FEATURES",
              [0x12] = "GET_VRING_BASE",
        +	[0x26] = "GET_BACKEND_FEATURES",
        };
        $
      
      We'll also use this to be able to express syscall filters using symbolic
      these symbolic names, something like:
      
      	# perf trace --all-cpus -e ioctl(cmd=*GET_FEATURES)
      
      This silences the following warning during perf's build:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/vhost.h' differs from latest version at 'include/uapi/linux/vhost.h'
        diff -u tools/include/uapi/linux/vhost.h include/uapi/linux/vhost.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: https://lkml.kernel.org/n/tip-35x71oei2hdui9u0tarpimbq@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7f28785c
    • Arnaldo Carvalho de Melo's avatar
      tools headers uapi: Update tools's copies of kvm headers · 0210c156
      Arnaldo Carvalho de Melo authored
      To get the changes in:
      
      	a4499382 ("KVM: s390: Add huge page enablement control")
      	8fcc4b59 ("kvm: nVMX: Introduce KVM_CAP_NESTED_STATE")
      	be26b3a7 ("arm64: KVM: export the capability to set guest SError syndrome")
      	b7b27fac ("arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS")
      	b0960b95 ("KVM: arm: Add 32bit get/set events support")
      	a3da7b4a ("KVM: s390: add etoken support for guests")
      
      This makes 'perf trace' automagically get aware of these new ioctls:
      
        $ cp include/uapi/linux/kvm.h tools/include/uapi/linux/kvm.h
        $ tools/perf/trace/beauty/kvm_ioctl.sh  > /tmp/after
        $ diff -u /tmp/before /tmp/after
        --- /tmp/before	2018-09-11 11:18:29.173207586 -0300
        +++ /tmp/after	2018-09-11 11:18:38.488200446 -0300
        @@ -84,6 +84,8 @@
              [0xbb] = "MEMORY_ENCRYPT_REG_REGION",
              [0xbc] = "MEMORY_ENCRYPT_UNREG_REGION",
              [0xbd] = "HYPERV_EVENTFD",
        +     [0xbe] = "GET_NESTED_STATE",
        +     [0xbf] = "SET_NESTED_STATE",
              [0xe0] = "CREATE_DEVICE",
              [0xe1] = "SET_DEVICE_ATTR",
              [0xe2] = "G
      
      And cures the following warning during perf's build:
      
      	Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h'
      	diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Dongjiu Geng <gengdongjiu@huawei.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: James Morse <james.morse@arm.com>
      Cc: Janosch Frank <frankja@linux.ibm.com>
      Cc: Jim Mattson <jmattson@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: https://lkml.kernel.org/n/tip-2vvwh2o19orn56di0ksrtgzr@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      0210c156