From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ghanshyam Agrawal <ghanshyam1898@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: Need some guidance working on a TODO item
Date: Tue, 31 Oct 2023 02:04:13 +0200 [thread overview]
Message-ID: <20231031000413.GE12764@pendragon.ideasonboard.com> (raw)
In-Reply-To: <CAG-BmoeV6zGZLk53Z6jr2WSr+5wvmo5=YtnLAAUeEkEqn_nf5w@mail.gmail.com>
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
next parent reply other threads:[~2023-10-31 0:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAG-BmoeV6zGZLk53Z6jr2WSr+5wvmo5=YtnLAAUeEkEqn_nf5w@mail.gmail.com>
2023-10-31 0:04 ` Laurent Pinchart [this message]
2023-10-31 11:15 ` Need some guidance working on a TODO item Ghanshyam Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231031000413.GE12764@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=ghanshyam1898@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox