* [PATCH] kconfig: recalc symbol value before showing search results
@ 2010-03-19 6:57 Li Zefan
2010-03-20 21:52 ` Steven Rostedt
2010-03-23 11:39 ` Michal Marek
0 siblings, 2 replies; 3+ messages in thread
From: Li Zefan @ 2010-03-19 6:57 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kbuild, LKML, Michal Marek
A symbol's value won't be recalc-ed until we save config file or
enter the menu where the symbol sits.
So If I enable OPTIMIZE_FOR_SIZE, and search FUNCTION_GRAPH_TRACER:
Symbol: FUNCTION_GRAPH_TRACER [=y]
Prompt: Kernel Function Graph Tracer
Defined at kernel/trace/Kconfig:140
Depends on: ... [=y] && (!X86_32 [=y] || !CC_OPTIMIZE_FOR_SIZE [=y])
...
From the dependency it should result in FUNCTION_GRAPH_TRACER=n,
but it still shows FUNCTION_GRAPH_TRACER=y.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
scripts/kconfig/symbol.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 6c8fbbb..dfef8d1 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -750,6 +750,7 @@ struct symbol **sym_re_search(const char *pattern)
return NULL;
}
}
+ sym_calc_value(sym);
sym_arr[cnt++] = sym;
}
if (sym_arr)
-- 1.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kconfig: recalc symbol value before showing search results
2010-03-19 6:57 [PATCH] kconfig: recalc symbol value before showing search results Li Zefan
@ 2010-03-20 21:52 ` Steven Rostedt
2010-03-23 11:39 ` Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2010-03-20 21:52 UTC (permalink / raw)
To: Li Zefan
Cc: Andrew Morton, linux-kbuild, LKML, Michal Marek, Thomas Gleixner,
Frederic Weisbecker, Ingo Molnar
On Fri, 2010-03-19 at 14:57 +0800, Li Zefan wrote:
> A symbol's value won't be recalc-ed until we save config file or
> enter the menu where the symbol sits.
>
> So If I enable OPTIMIZE_FOR_SIZE, and search FUNCTION_GRAPH_TRACER:
>
> Symbol: FUNCTION_GRAPH_TRACER [=y]
> Prompt: Kernel Function Graph Tracer
> Defined at kernel/trace/Kconfig:140
> Depends on: ... [=y] && (!X86_32 [=y] || !CC_OPTIMIZE_FOR_SIZE [=y])
[ off topic ]
I'm not sure we need that anymore. I think Thomas added a patch that can
disable the cases that gcc causes the function graph to fail.
I pushed a patch before that also runs a check at compile time to make
sure that gcc does not produce a bad mcount setup that would screw up
the function graph tracer.
http://lkml.org/lkml/2009/11/20/2
It probably still makes sense to add it.
-- Steve
> ...
>
> >From the dependency it should result in FUNCTION_GRAPH_TRACER=n,
> but it still shows FUNCTION_GRAPH_TRACER=y.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---
> scripts/kconfig/symbol.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
> index 6c8fbbb..dfef8d1 100644
> --- a/scripts/kconfig/symbol.c
> +++ b/scripts/kconfig/symbol.c
> @@ -750,6 +750,7 @@ struct symbol **sym_re_search(const char *pattern)
> return NULL;
> }
> }
> + sym_calc_value(sym);
> sym_arr[cnt++] = sym;
> }
> if (sym_arr)
> -- 1.6.3
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kconfig: recalc symbol value before showing search results
2010-03-19 6:57 [PATCH] kconfig: recalc symbol value before showing search results Li Zefan
2010-03-20 21:52 ` Steven Rostedt
@ 2010-03-23 11:39 ` Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: Michal Marek @ 2010-03-23 11:39 UTC (permalink / raw)
To: Li Zefan; +Cc: Andrew Morton, linux-kbuild, LKML
On 19.3.2010 07:57, Li Zefan wrote:
> A symbol's value won't be recalc-ed until we save config file or
> enter the menu where the symbol sits.
>
> So If I enable OPTIMIZE_FOR_SIZE, and search FUNCTION_GRAPH_TRACER:
>
> Symbol: FUNCTION_GRAPH_TRACER [=y]
> Prompt: Kernel Function Graph Tracer
> Defined at kernel/trace/Kconfig:140
> Depends on: ... [=y] && (!X86_32 [=y] || !CC_OPTIMIZE_FOR_SIZE [=y])
> ...
>
> From the dependency it should result in FUNCTION_GRAPH_TRACER=n,
> but it still shows FUNCTION_GRAPH_TRACER=y.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Nice, applied.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-23 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 6:57 [PATCH] kconfig: recalc symbol value before showing search results Li Zefan
2010-03-20 21:52 ` Steven Rostedt
2010-03-23 11:39 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).