[dpdk-dev] [PATCH v3 05/12] event/octeontx: add event timer stats get and reset
Carrillo, Erik G
erik.g.carrillo at intel.com
Wed Apr 4 03:59:20 CEST 2018
> -----Original Message-----
> From: Pavan Nikhilesh [mailto:pbhagavatula at caviumnetworks.com]
> Sent: Tuesday, April 3, 2018 10:05 AM
> To: jerin.jacob at caviumnetworks.com;
> santosh.shukla at caviumnetworks.com; Carrillo, Erik G
> <erik.g.carrillo at intel.com>
> Cc: dev at dpdk.org; Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> Subject: [dpdk-dev] [PATCH v3 05/12] event/octeontx: add event timer stats
> get and reset
>
> Add functions to get and reset event timer adapter stats.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at caviumnetworks.com>
> ---
<...snipped...>
> --- a/drivers/event/octeontx/timvf_evdev.h
> +++ b/drivers/event/octeontx/timvf_evdev.h
> @@ -145,6 +145,7 @@ struct timvf_meta {
> struct tim_mem_bucket *bkt;
> void *chunk_pool;
> uint64_t tck_int;
> + volatile uint64_t tim_arm_cnt;
It seems like the count could be incorrect if multiple threads arm timers concurrently. Is that the case?
Thanks,
Gabriel
> };
>
> struct timvf_ring {
> --
> 2.16.3
More information about the dev
mailing list