2014-12-29 22:03:09 +08:00
|
|
|
perf-y += builtin-test.o
|
|
|
|
perf-y += parse-events.o
|
|
|
|
perf-y += dso-data.o
|
|
|
|
perf-y += attr.o
|
|
|
|
perf-y += vmlinux-kallsyms.o
|
2015-05-29 23:36:11 +08:00
|
|
|
perf-y += openat-syscall.o
|
|
|
|
perf-y += openat-syscall-all-cpus.o
|
|
|
|
perf-y += openat-syscall-tp-fields.o
|
2014-12-29 22:03:09 +08:00
|
|
|
perf-y += mmap-basic.o
|
|
|
|
perf-y += perf-record.o
|
|
|
|
perf-y += rdpmc.o
|
|
|
|
perf-y += evsel-roundtrip-name.o
|
|
|
|
perf-y += evsel-tp-sched.o
|
|
|
|
perf-y += fdarray.o
|
|
|
|
perf-y += pmu.o
|
|
|
|
perf-y += hists_common.o
|
|
|
|
perf-y += hists_link.o
|
|
|
|
perf-y += hists_filter.o
|
|
|
|
perf-y += hists_output.o
|
|
|
|
perf-y += hists_cumulate.o
|
|
|
|
perf-y += python-use.o
|
|
|
|
perf-y += bp_signal.o
|
|
|
|
perf-y += bp_signal_overflow.o
|
|
|
|
perf-y += task-exit.o
|
|
|
|
perf-y += sw-clock.o
|
|
|
|
perf-y += mmap-thread-lookup.o
|
|
|
|
perf-y += thread-mg-share.o
|
|
|
|
perf-y += switch-tracking.o
|
|
|
|
perf-y += keep-tracking.o
|
|
|
|
perf-y += code-reading.o
|
|
|
|
perf-y += sample-parsing.o
|
|
|
|
perf-y += parse-no-sample-id-all.o
|
perf tools: Add kmod_path__parse function
Provides united way of parsing kernel module path
into several components.
The new kmod_path__parse function and few defines:
int __kmod_path__parse(struct kmod_path *m, const char *path,
bool alloc_name, bool alloc_ext);
#define kmod_path__parse(__m, __p) __kmod_path__parse(__m, __p, false, false)
#define kmod_path__parse_name(__m, __p) __kmod_path__parse(__m, __p, true , false)
#define kmod_path__parse_ext(__m, __p) __kmod_path__parse(__m, __p, false, true)
parse kernel module @path and updates @m argument like:
@comp - true if @path contains supported compression suffix,
false otherwise
@kmod - true if @path contains '.ko' suffix in right position,
false otherwise
@name - if (@alloc_name && @kmod) is true, it contains strdup-ed base name
of the kernel module without suffixes, otherwise strudup-ed
base name of @path
@ext - if (@alloc_ext && @comp) is true, it contains strdup-ed string
the compression suffix
It returns 0 if there's no strdup error, -ENOMEM otherwise.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-9t6eqg8j610r94l743hkntiv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-02-05 22:40:25 +08:00
|
|
|
perf-y += kmod-path.o
|
2015-06-26 17:29:08 +08:00
|
|
|
perf-y += thread-map.o
|
2015-07-08 18:04:02 +08:00
|
|
|
perf-y += llvm.o
|
2014-12-29 22:03:09 +08:00
|
|
|
|
|
|
|
perf-$(CONFIG_X86) += perf-time-to-tsc.o
|
2015-09-02 20:15:26 +08:00
|
|
|
ifdef CONFIG_AUXTRACE
|
|
|
|
perf-$(CONFIG_X86) += insn-x86.o
|
|
|
|
endif
|
2014-12-29 22:03:09 +08:00
|
|
|
|
2015-03-27 21:08:01 +08:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),x86 arm arm64))
|
2014-12-29 22:03:09 +08:00
|
|
|
perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
|
|
|
|
CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
|
|
|
|
CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
|