This patch exposes the read counters verb to user space applications. By that verb the user can read the hardware counters which are associated with the counters object. The application needs to provide a sufficient memory to hold the statistics.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -140,9 +140,16 @@ enum uverbs_attrs_destroy_counters_cmd_attr_ids { · 139 unmodified lines | |||
| 140 | UVERBS_ATTR_DESTROY_COUNTERS_HANDLE, | 140 | UVERBS_ATTR_DESTROY_COUNTERS_HANDLE, |
| 141 | }; | 141 | }; |
| 142 | 142 | ||
| 143 | enum uverbs_attrs_read_counters_cmd_attr_ids { | ||
| 144 | UVERBS_ATTR_READ_COUNTERS_HANDLE, | ||
| 145 | UVERBS_ATTR_READ_COUNTERS_BUFF, | ||
| 146 | UVERBS_ATTR_READ_COUNTERS_FLAGS, | ||
| 147 | }; | ||
| 148 | |||
| 143 | enum uverbs_methods_actions_counters_ops { | 149 | enum uverbs_methods_actions_counters_ops { |
| 144 | UVERBS_METHOD_COUNTERS_CREATE, | 150 | UVERBS_METHOD_COUNTERS_CREATE, |
| 145 | UVERBS_METHOD_COUNTERS_DESTROY, | 151 | UVERBS_METHOD_COUNTERS_DESTROY, |
| 152 | UVERBS_METHOD_COUNTERS_READ, | ||
| 146 | }; | 153 | }; |
| 147 | 154 | ||
| 148 | #endif | 155 | #endif |