18c2ecf20Sopenharmony_ciWhat: /sys/bus/event_source/devices/<dev>/format 28c2ecf20Sopenharmony_ciDate: January 2012 38c2ecf20Sopenharmony_ciKernelVersion: 3.3 48c2ecf20Sopenharmony_ciContact: Jiri Olsa <jolsa@redhat.com> 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Attribute group to describe the magic bits that go into 78c2ecf20Sopenharmony_ci perf_event_attr::config[012] for a particular pmu. 88c2ecf20Sopenharmony_ci Each attribute of this group defines the 'hardware' bitmask 98c2ecf20Sopenharmony_ci we want to export, so that userspace can deal with sane 108c2ecf20Sopenharmony_ci name/value pairs. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci Userspace must be prepared for the possibility that attributes 138c2ecf20Sopenharmony_ci define overlapping bit ranges. For example:: 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci attr1 = 'config:0-23' 168c2ecf20Sopenharmony_ci attr2 = 'config:0-7' 178c2ecf20Sopenharmony_ci attr3 = 'config:12-35' 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci Example: 'config1:1,6-10,44' 208c2ecf20Sopenharmony_ci Defines contents of attribute that occupies bits 1,6-10,44 of 218c2ecf20Sopenharmony_ci perf_event_attr::config1. 22