linux-stable/tools/perf
Jonathan Nieder 2b3e6af485 perf tools: do not look at ./config for configuration
commit aba8d05607 upstream.

In addition to /etc/perfconfig and $HOME/.perfconfig, perf looks for
configuration in the file ./config, imitating git which looks at
$GIT_DIR/config.  If ./config is not a perf configuration file, it
fails, or worse, treats it as a configuration file and changes behavior
in some unexpected way.

"config" is not an unusual name for a file to be lying around and perf
does not have a private directory dedicated for its own use, so let's
just stop looking for configuration in the cwd.  Callers needing
context-sensitive configuration can use the PERF_CONFIG environment
variable.

Requested-by: Christian Ohm <chr.ohm@gmx.net>
Cc: 632923@bugs.debian.org
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Christian Ohm <chr.ohm@gmx.net>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110805165838.GA7237@elie.gateway.2wire.net
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-29 14:32:57 -07:00
..
bench perf sched: Fix build failure on sparc 2009-12-14 08:59:12 +01:00
Documentation perf: Make the install relative to DESTDIR if specified 2010-04-01 16:01:29 -07:00
scripts/perl perf trace/scripting: List available scripts 2009-12-15 10:31:32 +01:00
util perf tools: do not look at ./config for configuration 2011-08-29 14:32:57 -07:00
.gitignore perf: Ignore perf.data.old 2010-01-27 11:31:26 +01:00
builtin-annotate.c perf annotate: Defer allocating sym_priv->hist array 2010-04-01 16:01:23 -07:00
builtin-bench.c perf bench: Add "all" pseudo subsystem and "all" pseudo suite 2009-12-14 08:51:19 +01:00
builtin-buildid-list.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin-diff.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin-help.c perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
builtin-kmem.c perf kmem: Print usage help for unknown commands 2010-01-20 07:20:08 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf probe: Fix probe_point buffer overrun 2010-04-01 16:01:30 -07:00
builtin-record.c perf record: We should fork only if a program was specified to run 2009-12-28 09:02:50 +01:00
builtin-report.c perf report: Fix segmentation fault when running with '-g none' 2010-01-27 11:01:43 +01:00
builtin-sched.c perf symbols: Make symbol_conf global 2009-12-16 08:53:48 +01:00
builtin-stat.c perf stat: Do not print ratio when task-clock event is not counted 2009-11-15 15:25:50 +01:00
builtin-timechart.c perf timechart: Use tid not pid for COMM change 2010-01-17 07:16:36 +01:00
builtin-top.c perf top: Fix help text alignment 2010-02-14 09:46:02 +01:00
builtin-trace.c perf diff: Fix usage array, it must end with a NULL entry 2009-12-18 20:01:52 +01:00
builtin.h perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
command-list.txt perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf: Rename perf_event_hw_event in design document 2009-12-28 09:14:37 +01:00
Makefile perf: Make the install relative to DESTDIR if specified 2010-04-01 16:01:29 -07:00
perf.c perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
perf.h perf tools: Allow building for ARM 2009-12-11 13:50:21 +01:00