Skip to content
  • Arnaldo Carvalho de Melo's avatar
    tools headers uapi: Sync linux/kvm.h with the kernel sources · 558517c5
    Arnaldo Carvalho de Melo authored
    To get the changes from these csets:
    
      2bc39970 ("x86/kvm/hyper-v: Introduce KVM_GET_SUPPORTED_HV_CPUID")
      2a31b9db ("kvm: introduce manual dirty log reprotect")
    
    That results in these new KVM IOCTLs being supported in 'perf trace'
    when beautifying the cmd ioctl syscall argument:
    
      $ cp include/uapi/linux/kvm.h tools/include/uapi/linux/kvm.h
      $ tools/perf/trace/beauty/kvm_ioctl.sh > after
      $ diff -u before after
      --- before	2019-01-04 11:44:23.506605301 -0300
      +++ after	2019-01-04 11:44:36.878730583 -0300
      @@ -86,6 +86,8 @@
            [0xbd] = "HYPERV_EVENTFD",
            [0xbe] = "GET_NESTED_STATE",
            [0xbf] = "SET_NESTED_STATE",
      +     [0xc0] = "CLEAR_DIRTY_LOG",
      +     [0xc1] = "GET_SUPPORTED_HV_CPUID",
            [0xe0] = "CREATE_DEVICE",
            [0xe1] = "SET_DEVICE_ATTR",
            [0xe2] = "GET_DEVICE_ATTR",
      $
    
    At some point we should be able to do something:
    
      # perf trace -e ioctl(cmd == KVM_CLEAR_DIRTY_LOG)
    
    And have just those ioctls, optionally with callchains, etc.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
    Link: https://lkml.kernel.org/n/tip-konm3iigl2os6ritt7d2bori@git.kernel.org
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    558517c5