* Re: + recordmcount-stfu.patch added to -mm tree [not found] <200911140356.nAE3utfU001939@imap1.linux-foundation.org> @ 2009-11-14 4:58 ` Steven Rostedt 2009-11-14 5:26 ` Andrew Morton 0 siblings, 1 reply; 7+ messages in thread From: Steven Rostedt @ 2009-11-14 4:58 UTC (permalink / raw) To: akpm; +Cc: mm-commits, lihong.hi, LKML, Ingo Molnar On Fri, 2009-11-13 at 19:56 -0800, akpm@linux-foundation.org wrote: > The patch titled > recordmcount-stfu > has been added to the -mm tree. Its filename is > recordmcount-stfu.patch > > Before you just go and hit "reply", please: > a) Consider who else should be cc'ed > b) Prefer to cc a suitable mailing list as well > c) Ideally: find the original patch on the mailing list and do a > reply-to-all to that, adding suitable additional cc's > > *** Remember to use Documentation/SubmitChecklist when testing your code *** > > See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: recordmcount-stfu > From: Andrew Morton <akpm@linux-foundation.org> > > oy, people are trying to get work done here. > > Cc: Li Hong <lihong.hi@gmail.com> > Cc: Steven Rostedt <rostedt@goodmis.org> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- > > scripts/recordmcount.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff -puN scripts/recordmcount.pl~recordmcount-stfu scripts/recordmcount.pl > --- a/scripts/recordmcount.pl~recordmcount-stfu > +++ a/scripts/recordmcount.pl > @@ -180,9 +180,9 @@ sub check_objcopy > close (IN); > > if (!$can_use_local) { > - print STDERR "WARNING: could not find objcopy version or version " . > - "is less than 2.17.\n" . > - "\tLocal function references is disabled.\n"; > +# print STDERR "WARNING: could not find objcopy version or version " . > +# "is less than 2.17.\n" . > +# "\tLocal function references is disabled.\n"; > } > } > Andrew, would something like this patch be sufficient? diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 3ffa502..4b8293f 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -1785,9 +1785,9 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, static struct ring_buffer_event * rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long length, unsigned long tail, - struct buffer_page *commit_page, struct buffer_page *tail_page, u64 *ts) { + struct buffer_page *commit_page = cpu_buffer->commit_page; struct ring_buffer *buffer = cpu_buffer->buffer; struct buffer_page *next_page; int ret; @@ -1890,13 +1890,10 @@ static struct ring_buffer_event * __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer, unsigned type, unsigned long length, u64 *ts) { - struct buffer_page *tail_page, *commit_page; + struct buffer_page *tail_page; struct ring_buffer_event *event; unsigned long tail, write; - commit_page = cpu_buffer->commit_page; - /* we just need to protect against interrupts */ - barrier(); tail_page = cpu_buffer->tail_page; write = local_add_return(length, &tail_page->write); @@ -1907,7 +1904,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer, /* See if we shot pass the end of this buffer page */ if (write > BUF_PAGE_SIZE) return rb_move_tail(cpu_buffer, length, tail, - commit_page, tail_page, ts); + tail_page, ts); /* We reserved something on the buffer */ diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index a4e2435..ac4fa2d 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -162,6 +162,10 @@ my $alignment; # The .align value to use for $mcount_section my $section_type; # Section header plus possible alignment command my $can_use_local = 0; # If we can use local function references +# Shut up recordmcount if user has older objcopy +my $print_warning = 1; +$print_warning = 0 if ( -f "FTRACE_QUIET"); + ## # check_objcopy - whether objcopy supports --globalize-symbols # @@ -179,10 +183,12 @@ sub check_objcopy } close (IN); - if (!$can_use_local) { + if (!$can_use_local && $print_warning) { print STDERR "WARNING: could not find objcopy version or version " . "is less than 2.17.\n" . - "\tLocal function references is disabled.\n"; + "\tLocal function references are disabled.\n" . + "\tTo disable this message, create the file FTRACE_QUIET\n" . + "\tin the top level directory\n"; } } ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-14 4:58 ` + recordmcount-stfu.patch added to -mm tree Steven Rostedt @ 2009-11-14 5:26 ` Andrew Morton 2009-11-14 5:33 ` Steven Rostedt 0 siblings, 1 reply; 7+ messages in thread From: Andrew Morton @ 2009-11-14 5:26 UTC (permalink / raw) To: rostedt; +Cc: lihong.hi, LKML, Ingo Molnar On Fri, 13 Nov 2009 23:58:25 -0500 Steven Rostedt <rostedt@goodmis.org> wrote: > ... > > Andrew, would something like this patch be sufficient? > > ... > > + "\tLocal function references are disabled.\n" . > + "\tTo disable this message, create the file FTRACE_QUIET\n" . > + "\tin the top level directory\n"; Dunno, really. How many people are running old objdump, and do we want to retard the rate at which the stragglers will upgrade? I tend to be a late adopter ;) (for legit reasons, really - to catch things like this) so I'd be OK carrying that patch locally. Emitting that warning 1000000000000000000000000000 times per build is a bit obnoxious. Maybe find some way to restrict it to once per `make'? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-14 5:26 ` Andrew Morton @ 2009-11-14 5:33 ` Steven Rostedt 2009-11-14 9:27 ` Ingo Molnar 0 siblings, 1 reply; 7+ messages in thread From: Steven Rostedt @ 2009-11-14 5:33 UTC (permalink / raw) To: Andrew Morton; +Cc: lihong.hi, LKML, Ingo Molnar On Fri, 2009-11-13 at 21:26 -0800, Andrew Morton wrote: > Dunno, really. How many people are running old objdump, and do we want > to retard the rate at which the stragglers will upgrade? I guess not, but by printing out a warning 1000000000000000000000000000 times per build, it may encourage them to upgrade ;-) > > I tend to be a late adopter ;) (for legit reasons, really - to catch > things like this) so I'd be OK carrying that patch locally. > > > Emitting that warning 1000000000000000000000000000 times per build is a > bit obnoxious. Maybe find some way to restrict it to once per `make'? > I was originally going to do that, but then realized that he given patch was easier to implement. I guess I can make a temp file that gets deleted at the start of the build, and created the first time the warning appears. Then the existence of that file will prevent other warnings. I'll play with this on Monday (if I remember ;-) -- Steve ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-14 5:33 ` Steven Rostedt @ 2009-11-14 9:27 ` Ingo Molnar 2009-11-14 20:44 ` Steven Rostedt 0 siblings, 1 reply; 7+ messages in thread From: Ingo Molnar @ 2009-11-14 9:27 UTC (permalink / raw) To: Steven Rostedt; +Cc: Andrew Morton, lihong.hi, LKML * Steven Rostedt <rostedt@goodmis.org> wrote: > On Fri, 2009-11-13 at 21:26 -0800, Andrew Morton wrote: > > > Dunno, really. How many people are running old objdump, and do we > > want to retard the rate at which the stragglers will upgrade? > > I guess not, but by printing out a warning > 1000000000000000000000000000 times per build, it may encourage them to > upgrade ;-) If that binutils version is still supported this is not the right method. People are in their full rights to be at any version within the supported versions interval, and we should not 'force' them. Ingo ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-14 9:27 ` Ingo Molnar @ 2009-11-14 20:44 ` Steven Rostedt 2009-11-15 8:17 ` Ingo Molnar 0 siblings, 1 reply; 7+ messages in thread From: Steven Rostedt @ 2009-11-14 20:44 UTC (permalink / raw) To: Ingo Molnar; +Cc: Andrew Morton, lihong.hi, LKML On Sat, 2009-11-14 at 10:27 +0100, Ingo Molnar wrote: > * Steven Rostedt <rostedt@goodmis.org> wrote: > > > On Fri, 2009-11-13 at 21:26 -0800, Andrew Morton wrote: > > > > > Dunno, really. How many people are running old objdump, and do we > > > want to retard the rate at which the stragglers will upgrade? > > > > I guess not, but by printing out a warning > > 1000000000000000000000000000 times per build, it may encourage them to > > upgrade ;-) > > If that binutils version is still supported this is not the right > method. People are in their full rights to be at any version within the > supported versions interval, and we should not 'force' them. It's not forcing them. The patch I posted gave a way to disable that warning. But I agree with Andrew, the correct approach is to have it warn just once. The posted patch was just an easier approach. -- Steve ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-14 20:44 ` Steven Rostedt @ 2009-11-15 8:17 ` Ingo Molnar 2009-11-15 15:25 ` Steven Rostedt 0 siblings, 1 reply; 7+ messages in thread From: Ingo Molnar @ 2009-11-15 8:17 UTC (permalink / raw) To: Steven Rostedt; +Cc: Andrew Morton, lihong.hi, LKML * Steven Rostedt <rostedt@goodmis.org> wrote: > On Sat, 2009-11-14 at 10:27 +0100, Ingo Molnar wrote: > > * Steven Rostedt <rostedt@goodmis.org> wrote: > > > > > On Fri, 2009-11-13 at 21:26 -0800, Andrew Morton wrote: > > > > > > > Dunno, really. How many people are running old objdump, and do we > > > > want to retard the rate at which the stragglers will upgrade? > > > > > > I guess not, but by printing out a warning > > > 1000000000000000000000000000 times per build, it may encourage them to > > > upgrade ;-) > > > > If that binutils version is still supported this is not the right > > method. People are in their full rights to be at any version within the > > supported versions interval, and we should not 'force' them. > > It's not forcing them. [...] My point was that by printing a warning 1000000000000000000000000000 times per build we effectively force them, by making life unpleasant. Ingo ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: + recordmcount-stfu.patch added to -mm tree 2009-11-15 8:17 ` Ingo Molnar @ 2009-11-15 15:25 ` Steven Rostedt 0 siblings, 0 replies; 7+ messages in thread From: Steven Rostedt @ 2009-11-15 15:25 UTC (permalink / raw) To: Ingo Molnar; +Cc: Andrew Morton, lihong.hi, LKML On Sun, 2009-11-15 at 09:17 +0100, Ingo Molnar wrote: > * Steven Rostedt <rostedt@goodmis.org> wrote: > > > On Sat, 2009-11-14 at 10:27 +0100, Ingo Molnar wrote: > > > * Steven Rostedt <rostedt@goodmis.org> wrote: > > > > > > > On Fri, 2009-11-13 at 21:26 -0800, Andrew Morton wrote: > > > > > > > > > Dunno, really. How many people are running old objdump, and do we > > > > > want to retard the rate at which the stragglers will upgrade? > > > > > > > > I guess not, but by printing out a warning > > > > 1000000000000000000000000000 times per build, it may encourage them to > > > > upgrade ;-) > > > > > > If that binutils version is still supported this is not the right > > > method. People are in their full rights to be at any version within the > > > supported versions interval, and we should not 'force' them. > > > > It's not forcing them. [...] > > My point was that by printing a warning 1000000000000000000000000000 > times per build we effectively force them, by making life unpleasant. Ingo, It was a joke (as the ;-) was added to express that). I sent a patch to fix it (in my first email). I will be making a better patch next week. -- Steve ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-15 15:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200911140356.nAE3utfU001939@imap1.linux-foundation.org>
2009-11-14 4:58 ` + recordmcount-stfu.patch added to -mm tree Steven Rostedt
2009-11-14 5:26 ` Andrew Morton
2009-11-14 5:33 ` Steven Rostedt
2009-11-14 9:27 ` Ingo Molnar
2009-11-14 20:44 ` Steven Rostedt
2009-11-15 8:17 ` Ingo Molnar
2009-11-15 15:25 ` Steven Rostedt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox