All of lore.kernel.org
 help / color / mirror / Atom feed
* + recordmcount-stfu.patch added to -mm tree
@ 2009-11-14  3:56 akpm
  2009-11-14  4:58 ` Steven Rostedt
  0 siblings, 1 reply; 8+ messages in thread
From: akpm @ 2009-11-14  3:56 UTC (permalink / raw)
  To: mm-commits; +Cc: akpm, lihong.hi, rostedt


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";
     }
 }
 
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

linux-next.patch
next-remove-localversion.patch
i-need-old-gcc.patch
recordmcount-stfu.patch
include-linux-compiler-gcc4h-gcc-402-doesnt-understand-__builtin_object_size.patch
sound-pci-hda-patch_viac-work-around-gcc-402-ice.patch
drivers-char-cycladesc-fix-used-uninitialised-bug.patch
drivers-gpu-drm-i915-i915_dmac-fix-unused-var.patch
arch-x86-kernel-cpu-cpufreq-acpi-cpufreqc-avoid-cross-cpu-interrupts-by-using-smp_call_function_any.patch
cmpc_acpi-add-support-for-classmate-pc-acpi-devices-fix.patch
acpi-remove-nid_inval-checkpatch-fixes.patch
drivers-acpi-acpi_padc-squish-warning.patch
drivers-char-agp-amd64-agpc-squish-warning.patch
drm-kill-more-unused-drm-macros-fix.patch
drivers-hwmon-f75375sc-fix-warning-and-probable-bug.patch
timer-stats-fix-del_timer_sync-and-try_to_del_timer_sync.patch
drivers-leds-leds-ss4200c-fix-return-statement.patch
drivers-atm-solos-pcic-fix-warning-bug-clean-up-code.patch
3x59x-fix-pci-resource-management.patch
bluetooth-fix-for-acer-bluetooth-optical-rechargeable-mouse.patch
atmel_serial-add-poll_get_char-and-poll_put_char-uart_ops-fix.patch
include-trace-events-lockdeph-fix-do_div-warning.patch
st-fix-test-of-value-range-in-st_set_options.patch
scsi-add-hpsa-driver-for-hp-smart-array-controllers-fix.patch
raw-fix-rawctl-compat-ioctls-breakage-on-amd64-and-itanic.patch
fs-improve-remountro-vs-buffercache-coherency.patch
percpu-avoid-calling-__pcpu_ptr_to_addrnull.patch
readahead-add-blk_run_backing_dev.patch
mmap-dont-return-enomem-when-mapcount-is-temporarily-exceeded-in-munmap-checkpatch-fixes.patch
dev-mem-cleanup-unxlate_dev_mem_ptr-calls-fix.patch
dev-mem-cleanup-unxlate_dev_mem_ptr-calls-fix-fix.patch
oom-kill-show-virtual-size-and-rss-information-of-the-killed-process-fix.patch
oom-kill-fix-numa-consraint-check-with-nodemask-v42-checkpatch-fixes.patch
mm-memory_hotplug-make-offline_pages-static.patch
frv-duplicate-output_buffer-of-e03-checkpatch-fixes.patch
floppy-add-an-extra-bound-check-on-ioctl-arguments-fix.patch
drivers-misc-add-driver-for-texas-instruments-dac7512-update.patch
rwsem-fix-rwsem_is_locked-bugs-fix.patch
kernelh-add-printk_ratelimited-and-pr_level_rl-checkpatch-fixes.patch
kernelh-add-printk_ratelimited-and-pr_level_rl-rename.patch
errh-add-helper-function-to-simplify-pointer-error-checking-fix.patch
msm_sdccc-add-missing-include-fix-compilation-checkpatch-fixes.patch
crc32-minor-optimizations-and-cleanup-checkpatch-fixes.patch
hwmon-w83627ehf-updates-checkpatch-fixes.patch
spi-controller-driver-for-designware-spi-core-fix.patch
spidev-use-declare_bitmap-instead-of-declaring-the-array-checkpatch-fixes.patch
gpiolib-add-names-file-in-gpio-chip-sysfs.patch
mb862xxfb-add-acceleration-support-for-coral-p-coral-pa-imageblt-copyarea-fillrect-fix.patch
mb862xxfb-add-acceleration-support-for-coral-p-coral-pa-imageblt-copyarea-fillrect-fix2.patch
mb862xxfb-add-acceleration-support-for-coral-p-coral-pa-imageblt-copyarea-fillrect-fix2-fix-3.patch
ext2-avoid-warn-messages-when-failing-to-write-to-the-superblock-checkpatch-fixes.patch
memcg-coalesce-charging-via-percpu-storage-fix.patch
aio-dont-zero-out-the-pages-array-inside-struct-dio-fix.patch
direct-io-cleanup-blockdev_direct_io-locking-checkpatch-fixes.patch
zlib-optimize-inffast-when-copying-direct-from-output-checkpatch-fixes.patch
lib-add-support-for-lzo-compressed-kernels-checkpatch-fixes.patch
lib-add-support-for-lzo-compressed-kernels-checkpatch-fixes-cleanup.patch
net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc-fix.patch
reiser4-export-remove_from_page_cache-fix.patch
reiser4.patch
reiser4-remove-simple_prepare_write-usage-checkpatch-fixes.patch
fs-reiser4-contextc-current_is_pdflush-got-removed.patch
reiser4-fix.patch
reiser4-disable.patch
slab-leaks3-default-y.patch
put_bh-debug.patch
getblk-handle-2tb-devices.patch
getblk-handle-2tb-devices-fix.patch
undeprecate-pci_find_device.patch
notify_change-callers-must-hold-i_mutex.patch


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

* Re: + recordmcount-stfu.patch added to -mm tree
  2009-11-14  3:56 + recordmcount-stfu.patch added to -mm tree akpm
@ 2009-11-14  4:58 ` Steven Rostedt
  2009-11-14  5:26   ` Andrew Morton
  0 siblings, 1 reply; 8+ 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] 8+ messages in thread

* Re: + recordmcount-stfu.patch added to -mm tree
  2009-11-14  4:58 ` Steven Rostedt
@ 2009-11-14  5:26   ` Andrew Morton
  2009-11-14  5:33     ` Steven Rostedt
  0 siblings, 1 reply; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2009-11-15 15:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-14  3:56 + recordmcount-stfu.patch added to -mm tree akpm
2009-11-14  4:58 ` 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.