Hello Ghanshyam, CC'ing the linux-media mailing list, to let other developers chime in as well. On Sat, Oct 28, 2023 at 04:07:03PM +0530, Ghanshyam Agrawal wrote: > Hello Laurent, > > Line 90 in file "drivers/media/usb/uvc/uvcvideo.h" in linux_mainline tree > states > > /* > * TODO: Put the most frequently accessed fields at the beginning of > * structures to maximize cache efficiency. > */ > > I am working on this todo item. Can you please guide me regarding > > 1. How can I find the number of accesses of each of the fields? By reading through the code :-) It may be possible to instrument that, but I have no idea how. > 2. How can I find out the cache efficiency? Do you know how caches work ? > 3. When we say cache, which cache are we talking about? The CPU caches, any level. -- Regards, Laurent Pinchart