24/01/2014 12:42, Fran?ois-Fr?d?ric Ozog: > IMHO, adding the lfence for all cases is introducing an un-necessary > performance penalty. > > What about adding rte_rdtsc_sync() or rte_rdtsc_serial() with the comment > about the rdtsc instruction behavior so that developers can choose which > form they want?
Yes it could be a good idea in some cases. Didier, could you try to add such function ? But in some debugging cases we need to have high precision for almost all timestamps. Here I don't know what is the smartest solution. Thank you for commenting. Hope we'll find a good fix. -- Thomas