public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl.
@ 2009-05-01  0:06 Tim Abbott
  2009-05-04 19:30 ` Sam Ravnborg
  2009-05-06 12:18 ` [tip:tracing/core] " tip-bot for Tim Abbott
  0 siblings, 2 replies; 4+ messages in thread
From: Tim Abbott @ 2009-05-01  0:06 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Sam Ravnborg, Linux kernel mailing list, Anders Kaseorg,
	Waseem Daher, Denys Vlasenko, Jeff Arnold, Tim Abbott,
	Steven Rostedt

The only references in the kernel to the .text.sched section are in
recordmcount.pl.  Since the code it has is intended to be example code
it should refer to real kernel sections.  So change it to .sched.text
instead.

Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Steven Rostedt <srostedt@redhat.com>
---
 scripts/recordmcount.pl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 409596e..0fae7da 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -26,7 +26,7 @@
 # which will also be the location of that section after final link.
 # e.g.
 #
-#  .section ".text.sched"
+#  .section ".sched.text", "ax"
 #  .globl my_func
 #  my_func:
 #        [...]
@@ -39,7 +39,7 @@
 #        [...]
 #
 # Both relocation offsets for the mcounts in the above example will be
-# offset from .text.sched. If we make another file called tmp.s with:
+# offset from .sched.text. If we make another file called tmp.s with:
 #
 #  .section __mcount_loc
 #  .quad  my_func + 0x5
@@ -51,7 +51,7 @@
 # But this gets hard if my_func is not globl (a static function).
 # In such a case we have:
 #
-#  .section ".text.sched"
+#  .section ".sched.text", "ax"
 #  my_func:
 #        [...]
 #        call mcount  (offset: 0x5)
-- 
1.6.2.1


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

* Re: [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl.
  2009-05-01  0:06 [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl Tim Abbott
@ 2009-05-04 19:30 ` Sam Ravnborg
  2009-05-04 19:35   ` Steven Rostedt
  2009-05-06 12:18 ` [tip:tracing/core] " tip-bot for Tim Abbott
  1 sibling, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2009-05-04 19:30 UTC (permalink / raw)
  To: Tim Abbott, Steven Rostedt
  Cc: Steven Rostedt, Linux kernel mailing list, Anders Kaseorg,
	Waseem Daher, Denys Vlasenko, Jeff Arnold

On Thu, Apr 30, 2009 at 08:06:11PM -0400, Tim Abbott wrote:
> The only references in the kernel to the .text.sched section are in
> recordmcount.pl.  Since the code it has is intended to be example code
> it should refer to real kernel sections.  So change it to .sched.text
> instead.
> 
> Signed-off-by: Tim Abbott <tabbott@mit.edu>
> Cc: Steven Rostedt <srostedt@redhat.com>

Steven - this change is independent of the ongoing
section rework and is a pure documentation fix.

Please apply it with my ack.

	Sam

[Kept whole patch for reference]

> ---
>  scripts/recordmcount.pl |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
> index 409596e..0fae7da 100755
> --- a/scripts/recordmcount.pl
> +++ b/scripts/recordmcount.pl
> @@ -26,7 +26,7 @@
>  # which will also be the location of that section after final link.
>  # e.g.
>  #
> -#  .section ".text.sched"
> +#  .section ".sched.text", "ax"
>  #  .globl my_func
>  #  my_func:
>  #        [...]
> @@ -39,7 +39,7 @@
>  #        [...]
>  #
>  # Both relocation offsets for the mcounts in the above example will be
> -# offset from .text.sched. If we make another file called tmp.s with:
> +# offset from .sched.text. If we make another file called tmp.s with:
>  #
>  #  .section __mcount_loc
>  #  .quad  my_func + 0x5
> @@ -51,7 +51,7 @@
>  # But this gets hard if my_func is not globl (a static function).
>  # In such a case we have:
>  #
> -#  .section ".text.sched"
> +#  .section ".sched.text", "ax"
>  #  my_func:
>  #        [...]
>  #        call mcount  (offset: 0x5)
> -- 
> 1.6.2.1
> 

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

* Re: [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl.
  2009-05-04 19:30 ` Sam Ravnborg
@ 2009-05-04 19:35   ` Steven Rostedt
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2009-05-04 19:35 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Tim Abbott, Linux kernel mailing list, Anders Kaseorg,
	Waseem Daher, Denys Vlasenko, Jeff Arnold


On Mon, 2009-05-04 at 21:30 +0200, Sam Ravnborg wrote:
> On Thu, Apr 30, 2009 at 08:06:11PM -0400, Tim Abbott wrote:
> > The only references in the kernel to the .text.sched section are in
> > recordmcount.pl.  Since the code it has is intended to be example code
> > it should refer to real kernel sections.  So change it to .sched.text
> > instead.
> > 
> > Signed-off-by: Tim Abbott <tabbott@mit.edu>
> > Cc: Steven Rostedt <srostedt@redhat.com>
> 
> Steven - this change is independent of the ongoing
> section rework and is a pure documentation fix.
> 
> Please apply it with my ack.
> 
> 	Sam

Will do, Thanks!

-- Steve

> 
> [Kept whole patch for reference]
> 
> > ---
> >  scripts/recordmcount.pl |    6 +++---
> >  1 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
> > index 409596e..0fae7da 100755
> > --- a/scripts/recordmcount.pl
> > +++ b/scripts/recordmcount.pl
> > @@ -26,7 +26,7 @@
> >  # which will also be the location of that section after final link.
> >  # e.g.
> >  #
> > -#  .section ".text.sched"
> > +#  .section ".sched.text", "ax"
> >  #  .globl my_func
> >  #  my_func:
> >  #        [...]
> > @@ -39,7 +39,7 @@
> >  #        [...]
> >  #
> >  # Both relocation offsets for the mcounts in the above example will be
> > -# offset from .text.sched. If we make another file called tmp.s with:
> > +# offset from .sched.text. If we make another file called tmp.s with:
> >  #
> >  #  .section __mcount_loc
> >  #  .quad  my_func + 0x5
> > @@ -51,7 +51,7 @@
> >  # But this gets hard if my_func is not globl (a static function).
> >  # In such a case we have:
> >  #
> > -#  .section ".text.sched"
> > +#  .section ".sched.text", "ax"
> >  #  my_func:
> >  #        [...]
> >  #        call mcount  (offset: 0x5)
> > -- 
> > 1.6.2.1
> > 


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

* [tip:tracing/core] ftrace: use .sched.text, not .text.sched in recordmcount.pl
  2009-05-01  0:06 [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl Tim Abbott
  2009-05-04 19:30 ` Sam Ravnborg
@ 2009-05-06 12:18 ` tip-bot for Tim Abbott
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Tim Abbott @ 2009-05-06 12:18 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, tabbott, hpa, mingo, sam, rostedt, tabbott, tglx

Commit-ID:  31b6e76e21b2ffd3cb2f6fe4149790a9fdadce2d
Gitweb:     http://git.kernel.org/tip/31b6e76e21b2ffd3cb2f6fe4149790a9fdadce2d
Author:     Tim Abbott <tabbott@MIT.EDU>
AuthorDate: Thu, 30 Apr 2009 20:06:11 -0400
Committer:  Steven Rostedt <rostedt@goodmis.org>
CommitDate: Tue, 5 May 2009 19:17:22 -0400

ftrace: use .sched.text, not .text.sched in recordmcount.pl

The only references in the kernel to the .text.sched section are in
recordmcount.pl.  Since the code it has is intended to be example code
it should refer to real kernel sections.  So change it to .sched.text
instead.

[ Impact: consistency in comments ]

Signed-off-by: Tim Abbott <tabbott@mit.edu>
LKML-Reference: <1241136371-10768-1-git-send-email-tabbott@mit.edu>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>


---
 scripts/recordmcount.pl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 409596e..0fae7da 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -26,7 +26,7 @@
 # which will also be the location of that section after final link.
 # e.g.
 #
-#  .section ".text.sched"
+#  .section ".sched.text", "ax"
 #  .globl my_func
 #  my_func:
 #        [...]
@@ -39,7 +39,7 @@
 #        [...]
 #
 # Both relocation offsets for the mcounts in the above example will be
-# offset from .text.sched. If we make another file called tmp.s with:
+# offset from .sched.text. If we make another file called tmp.s with:
 #
 #  .section __mcount_loc
 #  .quad  my_func + 0x5
@@ -51,7 +51,7 @@
 # But this gets hard if my_func is not globl (a static function).
 # In such a case we have:
 #
-#  .section ".text.sched"
+#  .section ".sched.text", "ax"
 #  my_func:
 #        [...]
 #        call mcount  (offset: 0x5)

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

end of thread, other threads:[~2009-05-06 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-01  0:06 [PATCH] ftrace: use .sched.text, not .text.sched in recordmcount.pl Tim Abbott
2009-05-04 19:30 ` Sam Ravnborg
2009-05-04 19:35   ` Steven Rostedt
2009-05-06 12:18 ` [tip:tracing/core] " tip-bot for Tim Abbott

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