X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_service.h;h=02b1512f644ae9505460e2412144618fb1ed9a03;hb=0d440d081ca1b5cccbb3b991908842c70731e460;hp=4898e761940080baccffbf8ff13736edf68f5781;hpb=4d55194d76a4cf23f95e700c6911f62cc625fb45;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_service.h b/lib/librte_eal/common/include/rte_service.h index 4898e76194..02b1512f64 100644 --- a/lib/librte_eal/common/include/rte_service.h +++ b/lib/librte_eal/common/include/rte_service.h @@ -31,6 +31,7 @@ extern "C" { #include #include +#include #include #define RTE_SERVICE_NAME_MAX 32 @@ -399,6 +400,11 @@ int32_t rte_service_dump(FILE *f, uint32_t id); */ #define RTE_SERVICE_ATTR_CYCLES 0 +/** + * Returns the count of invocations of this service function + */ +#define RTE_SERVICE_ATTR_CALL_COUNT 1 + /** * @warning * @b EXPERIMENTAL: this API may change without prior notice @@ -411,6 +417,18 @@ int32_t rte_service_dump(FILE *f, uint32_t id); int32_t rte_service_attr_get(uint32_t id, uint32_t attr_id, uint32_t *attr_value); +/** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * + * Reset all attribute values of a service. + * + * @param id The service to reset all statistics of + * @retval 0 Successfully reset attributes + * -EINVAL Invalid service id provided + */ +int32_t rte_service_attr_reset_all(uint32_t id); + #ifdef __cplusplus } #endif