how to find when a symbol introduced into the kernel

how to find when a symbol introduced into the kernel

am 15.06.2008 00:11:55 von Zhaohui Wang

Hi all

To write multiple kernel version compatible programs, I need to know when a specific symbol (a struct or a function)were introduced in to the kernel tree

Binary search against multiple kernel sources is a way,but is still slow.Is there any fast way to use modern git technology to make my life easier?

Many thanks.

Best Regards
Zhaohui Wang



--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: how to find when a symbol introduced into the kernel

am 15.06.2008 10:08:04 von Ben Nizette

On Sat, 2008-06-14 at 18:11 -0400, Zhaohui Wang wrote:
>
> Hi all
>
> To write multiple kernel version compatible programs, I need to know when a specific symbol (a struct or a function)were introduced in to the kernel tree
>
> Binary search against multiple kernel sources is a way,but is still slow.Is there any fast way to use modern git technology to make my life easier?
>

You can see the last time a line in a file was touched with git-blame;
that might help.

--Ben.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: how to find when a symbol introduced into the kernel

am 15.06.2008 15:37:24 von Calvin Walton

On Sat, 2008-06-14 at 18:11 -0400, Zhaohui Wang wrote:
>
> Hi all
>
> To write multiple kernel version compatible programs, I need to know when a specific symbol (a struct or a function)were introduced in to the kernel tree
>
> Binary search against multiple kernel sources is a way,but is still slow.Is there any fast way to use modern git technology to make my life easier?
>
> Many thanks.

You're probably looking for the command
git log -S functionname
a.k.a. the git pickaxe.

That will show you all of the commits that added or removed a line
containing the name you're interested in, and you can then check just
those changes to see what compatibility may have changed.

To find out what kernel release one of those commits went into, you can
use
git describe
and it will report the last tagged kernel version before that commit was
added.

Hope that helps!

--
Calvin Walton

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

RE: how to find when a symbol introduced into the kernel

am 19.02.2009 15:28:17 von Zhaohui Wang

Hi all

Has anyone ever successfully tried sysrq key?

When I press alt+sysrq+g , it always brought up the evbug log, nothing
with sysrq special functionality happens

Anyone can tell me what should I do?


Best Regards
Zhao Wang



--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs