MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_service_set_stats_enable

Function rte_service_set_stats_enable

dpdk/lib/eal/common/rte_service.c:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184int32_t
185rte_service_set_stats_enable(uint32_t id, int32_t enabled)
186{
187 struct rte_service_spec_impl *s;
188 SERVICE_VALID_GET_OR_ERR_RET(id, s, 0);
189
190 if (enabled)
191 s->internal_flags |= SERVICE_F_STATS_ENABLED;
192 else
193 s->internal_flags &= ~(SERVICE_F_STATS_ENABLED);
194
195 return 0;
196}
197
198int32_t
199rte_service_set_runstate_mapped_check(uint32_t id, int32_t enabled)

Callers 8

service_attr_getFunction · 0.85
service_lcore_attr_getFunction · 0.85
service_dumpFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 5

service_attr_getFunction · 0.68
service_lcore_attr_getFunction · 0.68
service_dumpFunction · 0.68