All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Peschke <mp3@de.ibm.com>
To: Valdis.Kletnieks@vt.edu
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.21-mm2 - CONFIG_STATISTIC and Intel PowerTOP...
Date: Tue, 15 May 2007 16:25:21 +0200	[thread overview]
Message-ID: <4649C2D1.7020704@de.ibm.com> (raw)
In-Reply-To: <8277.1179199530@turing-police.cc.vt.edu>

Valdis.Kletnieks@vt.edu wrote:
> On Wed, 09 May 2007 01:23:22 PDT, Andrew Morton said:
>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21/2.6.21-mm2/
> 
> So I'm trying to get the Intel PowerTop stuff working, and discovered that /
> proc/timer_stats and/or /proc/tstats has moved to /debug in -mm2 - but only if
> you're building for S390.  For other architechtures it just evaporates
> entirely.  I had to bash this patch in to get it to get included in an x86_64
> build:

My mistake. I should have submitted patches that make CONFIG_STATISTICS a 
Kconfig option for all archs.

Meanwhile, the patch that implements timerstats using lib/statistic.c
has been dropped from -mm, because there is already a tool, called powertop, 
that looks for timerstats in procfs. This fixes your issue.

I am wondering whether I should submit Kconfig patches as a precautionary 
measure anyway.

> 
> --- linux-2.6.21-mm2/arch/x86_64/Kconfig.statistics     2007-05-14 23:01:00.000000000 -0400
> +++ linux-2.6.21-mm2/arch/x86_64/Kconfig        2007-05-14 23:00:45.000000000 -0400
> @@ -793,6 +793,8 @@
> 
>  source "kernel/Kconfig.marker"
> 
> +source "lib/Kconfig.statistic"
> +
>  endmenu
> 
>  source "arch/x86_64/Kconfig.debug"
> 
> Am just replicating the choice to put it in arch/s390/Kconfig - not sure why
> it was in there rather than lib/Kconfig.debug - is there a reason here?

CONFIG_STATISTICS really is instrumentation support. Its users might provide 
statistics of general interest just as well as for debugging purposes, though.

> 
> Having bashed *that* into place, I hit this at kernel link time:
> 
> WARNING: lib/built-in.o - Section mismatch: reference to .init.text:statistic_hotcpu from .data between 'statistic_hotcpu_notifier' (at offset 0x640) and 'io_tlb_lock'
> 

I am not confident, but my guess is:

I should mark statistic_hotcpu_notifier as __cpuinitdata because it references 
statistic_hotcpu(), which is marked __cpuinit. This makes a similar warning just 
seen during a test compile on i386 go away.


Martin


      reply	other threads:[~2007-05-15 14:25 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09  8:23 2.6.21-mm2 Andrew Morton
2007-05-09 14:57 ` 2.6.21-mm2 - Kconfig horkage Valdis.Kletnieks
2007-05-09 17:07   ` Christoph Lameter
2007-05-09 17:16     ` Valdis.Kletnieks
2007-05-09 18:36       ` Christoph Lameter
2007-05-09 16:08 ` 2.6.21-mm2 - 100% CPU on ksoftirqd/1 Valdis.Kletnieks
2007-05-09 17:31   ` Andrew Morton
2007-05-09 18:12   ` Jeremy Fitzhardinge
2007-05-09 20:13     ` Valdis.Kletnieks
2007-05-11  2:52   ` Valdis.Kletnieks
2007-05-09 16:51 ` 2.6.21-mm2 - hanging with initcall_debug and netconsole Valdis.Kletnieks
2007-05-09 17:37   ` Andrew Morton
2007-05-10 11:29 ` 2.6.21-mm2 -- compat_core_sys_select() kmalloc(0) Andy Whitcroft
2007-05-10 11:48 ` 2.6.21-mm2 -- powerpc missing kset Andy Whitcroft
2007-05-10 11:48   ` Andy Whitcroft
2007-05-10 12:16   ` Stephen Rothwell
2007-05-10 12:16     ` Stephen Rothwell
2007-05-10 15:48     ` Randy Dunlap
2007-05-10 15:48       ` Randy Dunlap
2007-05-10 23:45       ` Stephen Rothwell
2007-05-10 12:21 ` ixp4xx compile error (was Re: 2.6.21-mm2) Frederik Deweerdt
2007-05-10 12:45   ` Frederik Deweerdt
2007-05-10 12:56     ` Dmitry Torokhov
2007-05-10 16:11 ` 2.6.21-mm2 Marc Dietrich
2007-05-10 19:22   ` 2.6.21-mm2 Andrew Morton
2007-05-10 20:40     ` 2.6.21-mm2 Marc Dietrich
2007-05-11  8:27 ` [-mm patch] make csum_and_copy_from_user arch independent (was Re: 2.6.21-mm2) Frederik Deweerdt
2007-05-11  8:33   ` Andrew Morton
2007-05-11  9:14   ` [-mm patch] make csum_and_copy_from_user arch independent David Miller
2007-05-11 13:56     ` Frederik Deweerdt
2007-05-11 17:04       ` Russell King
2007-05-11 18:03 ` 2.6.21-mm2 boot failure, raid autodetect, bd_set_size+0xb/0x80 thunder7
2007-05-11 18:18   ` Andrew Morton
2007-05-11 18:53     ` thunder7
2007-05-15  3:25 ` 2.6.21-mm2 - CONFIG_STATISTIC and Intel PowerTOP Valdis.Kletnieks
2007-05-15 14:25   ` Martin Peschke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4649C2D1.7020704@de.ibm.com \
    --to=mp3@de.ibm.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.