xiaoxiang781216 commented on PR #18607: URL: https://github.com/apache/nuttx/pull/18607#issuecomment-4139561060
> I was wondering if there might be a potential issue here, based on my understanding: The VFS_PROFILE_START / VFS_PROFILE_STOP macros may have a correctness issue on SMP systems. From what I can see: perf_gettime() maybe reads a CPU-local hardware counter (e.g., PMCCNTR on ARMv7-A, CCOUNT on Xtensa/ESP32, cycle CSR on RISC-V). These counters are not synchronized across CPU cores This could make the timing measurement SMP-unsafe. Could you help confirm whether this might cause problems? It's not the user/caller need to concern, but the implementation o perf_getime should fix this problem instead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
