162306a36Sopenharmony_ciWhat: /sys/bus/event_source/devices/<dev>/format 262306a36Sopenharmony_ciDate: January 2012 362306a36Sopenharmony_ciKernelVersion: 3.3 462306a36Sopenharmony_ciContact: Jiri Olsa <jolsa@redhat.com> 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci Attribute group to describe the magic bits that go into 762306a36Sopenharmony_ci perf_event_attr::config[012] for a particular pmu. 862306a36Sopenharmony_ci Each attribute of this group defines the 'hardware' bitmask 962306a36Sopenharmony_ci we want to export, so that userspace can deal with sane 1062306a36Sopenharmony_ci name/value pairs. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci Userspace must be prepared for the possibility that attributes 1362306a36Sopenharmony_ci define overlapping bit ranges. For example:: 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci attr1 = 'config:0-23' 1662306a36Sopenharmony_ci attr2 = 'config:0-7' 1762306a36Sopenharmony_ci attr3 = 'config:12-35' 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci Example: 'config1:1,6-10,44' 2062306a36Sopenharmony_ci Defines contents of attribute that occupies bits 1,6-10,44 of 2162306a36Sopenharmony_ci perf_event_attr::config1. 22