<div dir="ltr"><div><div>Thanks for the public response (and to those who responded to me privately). I did not think about macro definitions and will definitely add that to my 'grep list' when finding things in the future.<br><br></div>Thanks again,<br><br></div>Marty<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 10, 2015 at 11:17 AM, Ender Dai <span dir="ltr"><<a href="mailto:ender.dai@gmail.com" target="_blank">ender.dai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jul 09, 2015 at 08:08:21AM -0700, Marty wrote:<br>
> I am unable to find the implementation for rdmsr_safe_regs(). lxr<br>
</span>> <<a href="http://lxr.free-electrons.com/ident?i=rdmsr_safe_regs" rel="noreferrer" target="_blank">http://lxr.free-electrons.com/ident?i=rdmsr_safe_regs</a>> only mentions<br>
<span class="">> references and a prototype definition.<br>
><br>
> I've also manually grepped through the entire kernel source tree and have<br>
> not been able to find where rdmsr_safe_regs is defined.<br>
<br>
</span>Try <a href="http://lxr.free-electrons.com/source/arch/x86/lib/msr-reg.S" rel="noreferrer" target="_blank">http://lxr.free-electrons.com/source/arch/x86/lib/msr-reg.S</a><br>
<br>
If I can not grep out the definition of a function by its name, I will<br>
try to grep with part of its name again, because most likely it is<br>
created by a macro. In your case, I tried "grep safe_regs" under<br>
arch/x86/ and got what you need.<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">-marty</blockquote></div>
</div>