.. | .. |
---|
139 | 139 | #define REQUEST_(r_name, r_value, r_idx_1, r_fields) \ |
---|
140 | 140 | r_fields |
---|
141 | 141 | |
---|
| 142 | +/* Generate event list for platforms with counter_info_version 0x6 or below */ |
---|
| 143 | +static __maybe_unused struct attribute *hv_gpci_event_attrs_v6[] = { |
---|
| 144 | +#include REQUEST_FILE |
---|
| 145 | + NULL |
---|
| 146 | +}; |
---|
| 147 | + |
---|
| 148 | +/* |
---|
| 149 | + * Based on getPerfCountInfo v1.018 documentation, some of the hv-gpci |
---|
| 150 | + * events were deprecated for platform firmware that supports |
---|
| 151 | + * counter_info_version 0x8 or above. |
---|
| 152 | + * Those deprecated events are still part of platform firmware that |
---|
| 153 | + * support counter_info_version 0x6 and below. As per the getPerfCountInfo |
---|
| 154 | + * v1.018 documentation there is no counter_info_version 0x7. |
---|
| 155 | + * Undefining macro ENABLE_EVENTS_COUNTERINFO_V6, to disable the addition of |
---|
| 156 | + * deprecated events in "hv_gpci_event_attrs" attribute group, for platforms |
---|
| 157 | + * that supports counter_info_version 0x8 or above. |
---|
| 158 | + */ |
---|
| 159 | +#undef ENABLE_EVENTS_COUNTERINFO_V6 |
---|
| 160 | + |
---|
| 161 | +/* Generate event list for platforms with counter_info_version 0x8 or above*/ |
---|
142 | 162 | static __maybe_unused struct attribute *hv_gpci_event_attrs[] = { |
---|
143 | 163 | #include REQUEST_FILE |
---|
144 | 164 | NULL |
---|