sysfs-bus-event_source-devices-hv_gpci 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. What: /sys/bus/event_source/devices/hv_gpci/format
  2. Date: September 2020
  3. Contact: Linux on PowerPC Developer List <[email protected]>
  4. Description: Read-only. Attribute group to describe the magic bits
  5. that go into perf_event_attr.config for a particular pmu.
  6. (See ABI/testing/sysfs-bus-event_source-devices-format).
  7. Each attribute under this group defines a bit range of the
  8. perf_event_attr.config. All supported attributes are listed
  9. below::
  10. counter_info_version = "config:16-23"
  11. length = "config:24-31"
  12. partition_id = "config:32-63"
  13. request = "config:0-31"
  14. sibling_part_id = "config:32-63"
  15. hw_chip_id = "config:32-63"
  16. offset = "config:32-63"
  17. phys_processor_idx = "config:32-63"
  18. secondary_index = "config:0-15"
  19. starting_index = "config:32-63"
  20. For example::
  21. processor_core_utilization_instructions_completed = "request=0x94,
  22. phys_processor_idx=?,counter_info_version=0x8,
  23. length=8,offset=0x18"
  24. In this event, '?' after phys_processor_idx specifies this value
  25. this value will be provided by user while running this event.
  26. What: /sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
  27. Date: February 2014
  28. Contact: Linux on PowerPC Developer List <[email protected]>
  29. Description:
  30. '0' if the hypervisor is configured to forbid access to event
  31. counters being accumulated by other guests and to physical
  32. domain event counters.
  33. '1' if that access is allowed.
  34. What: /sys/bus/event_source/devices/hv_gpci/interface/ga
  35. Date: February 2014
  36. Contact: Linux on PowerPC Developer List <[email protected]>
  37. Description:
  38. 0 or 1. Indicates whether we have access to "GA" events (listed
  39. in arch/powerpc/perf/hv-gpci.h).
  40. What: /sys/bus/event_source/devices/hv_gpci/interface/expanded
  41. Date: February 2014
  42. Contact: Linux on PowerPC Developer List <[email protected]>
  43. Description:
  44. 0 or 1. Indicates whether we have access to "EXPANDED" events (listed
  45. in arch/powerpc/perf/hv-gpci.h).
  46. What: /sys/bus/event_source/devices/hv_gpci/interface/lab
  47. Date: February 2014
  48. Contact: Linux on PowerPC Developer List <[email protected]>
  49. Description:
  50. 0 or 1. Indicates whether we have access to "LAB" events (listed
  51. in arch/powerpc/perf/hv-gpci.h).
  52. What: /sys/bus/event_source/devices/hv_gpci/interface/version
  53. Date: February 2014
  54. Contact: Linux on PowerPC Developer List <[email protected]>
  55. Description:
  56. A number indicating the version of the gpci interface that the
  57. hypervisor reports supporting.
  58. What: /sys/bus/event_source/devices/hv_gpci/interface/kernel_version
  59. Date: February 2014
  60. Contact: Linux on PowerPC Developer List <[email protected]>
  61. Description:
  62. A number indicating the latest version of the gpci interface
  63. that the kernel is aware of.
  64. What: /sys/devices/hv_gpci/cpumask
  65. Date: October 2020
  66. Contact: Linux on PowerPC Developer List <[email protected]>
  67. Description: read only
  68. This sysfs file exposes the cpumask which is designated to make
  69. HCALLs to retrieve hv-gpci pmu event counter data.