perf tools: Eliminate duplicate code and use PATH_MAX consistently
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Nov 2011 14:55:59 +0000 (12:55 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Nov 2011 12:11:04 +0000 (10:11 -0200)
commitc168fbfb93a1c4044287858c6784f0bd1f6cfe33
tree517df56c9a1db500e1ccb2bab4a9eac4e9db93d0
parentc23205c8488f11cb9ebe7a7b5851a1d8a0171011
perf tools: Eliminate duplicate code and use PATH_MAX consistently

No need for multiple definitions for STR() and die(), also use SuSv2's
PATH_MAX instead of adding MAX_PATH.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-qpujjkw7u0bf0tr4wt55cr9y@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-probe.c
tools/perf/util/cgroup.c
tools/perf/util/debugfs.c
tools/perf/util/debugfs.h
tools/perf/util/probe-finder.h
tools/perf/util/trace-event-info.c