public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* how to find when a symbol introduced into the kernel
  2008-05-30 11:06   ` Re: Alexei Babich
@ 2008-06-14 21:51     ` Zhaohui Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Zhaohui Wang @ 2008-06-14 21:51 UTC (permalink / raw)
  To: linux-newbie



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


> -----Original Message-----
> From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-
> owner@vger.kernel.org] On Behalf Of Alexei Babich
> Sent: Friday, May 30, 2008 7:06 AM
> To: linux-newbie@vger.kernel.org
> Subject: Re:
> 
> > Check this out - since it has similar embedded requirements like
> yours
> > (what is a chematic engineer?):
> I ment circuit, not schematic, and that's a misprint in addition :)
> 
> > http://tree.celinuxforum.org/pipermail/celinux-dev/2006-
> July/001261.html
> Thank you for link.
> 
> >
> > Read the comments part of kernel/printk.c - printk() is an amazing
> > function, because it can be called in ANY CONTEXT.....which also
> means
> > that it cannot sleep.   But since u know many I/O function involved
> > some form of waiting, therefore printk() necessarily HAVE TO WRITE TO
> > A BUFFER,
> OK, I need decrease buffer depth.
> Thank you.
> 
> --
> Regards,
> Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk,
> Russia
> http://www.rez.ru
> Jabber ID: impatt@jabber.ru
> --
> 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

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* how to find when a symbol introduced into the kernel
@ 2008-06-14 22:11 Zhaohui Wang
  2008-06-15  8:08 ` Ben Nizette
  2008-06-15 13:37 ` Calvin Walton
  0 siblings, 2 replies; 5+ messages in thread
From: Zhaohui Wang @ 2008-06-14 22:11 UTC (permalink / raw)
  To: linux-newbie, linux-kernel; +Cc: zwange



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to find when a symbol introduced into the kernel
  2008-06-14 22:11 how to find when a symbol introduced into the kernel Zhaohui Wang
@ 2008-06-15  8:08 ` Ben Nizette
  2008-06-15 13:37 ` Calvin Walton
  1 sibling, 0 replies; 5+ messages in thread
From: Ben Nizette @ 2008-06-15  8:08 UTC (permalink / raw)
  To: Zhaohui Wang; +Cc: linux-newbie, linux-kernel


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to find when a symbol introduced into the kernel
  2008-06-14 22:11 how to find when a symbol introduced into the kernel Zhaohui Wang
  2008-06-15  8:08 ` Ben Nizette
@ 2008-06-15 13:37 ` Calvin Walton
  2009-02-19 14:28   ` Zhaohui Wang
  1 sibling, 1 reply; 5+ messages in thread
From: Calvin Walton @ 2008-06-15 13:37 UTC (permalink / raw)
  To: Zhaohui Wang; +Cc: linux-newbie, linux-kernel

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 <sha1-hash>
and it will report the last tagged kernel version before that commit was
added.

Hope that helps!

-- 
Calvin Walton <calvin.walton@gmail.com>

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: how to find when a symbol introduced into the kernel
  2008-06-15 13:37 ` Calvin Walton
@ 2009-02-19 14:28   ` Zhaohui Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Zhaohui Wang @ 2009-02-19 14:28 UTC (permalink / raw)
  Cc: linux-newbie



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-19 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 22:11 how to find when a symbol introduced into the kernel Zhaohui Wang
2008-06-15  8:08 ` Ben Nizette
2008-06-15 13:37 ` Calvin Walton
2009-02-19 14:28   ` Zhaohui Wang
  -- strict thread matches above, loose matches on Subject: below --
2008-05-19 10:57 (unknown) Alexei Babich
2008-05-27  5:24 ` Peter Teoh
2008-05-30 11:06   ` Re: Alexei Babich
2008-06-14 21:51     ` how to find when a symbol introduced into the kernel Zhaohui Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox