git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: add attribute for number of invocations
[dpdk.git]
/
lib
/
librte_eal
/
common
/
rte_service.c
diff --git
a/lib/librte_eal/common/rte_service.c
b/lib/librte_eal/common/rte_service.c
index
1b54b7e
..
5f97d85
100644
(file)
--- a/
lib/librte_eal/common/rte_service.c
+++ b/
lib/librte_eal/common/rte_service.c
@@
-695,6
+695,9
@@
rte_service_attr_get(uint32_t id, uint32_t attr_id, uint32_t *attr_value)
case RTE_SERVICE_ATTR_CYCLES:
*attr_value = s->cycles_spent;
return 0;
+ case RTE_SERVICE_ATTR_CALL_COUNT:
+ *attr_value = s->calls;
+ return 0;
default:
return -EINVAL;
}