Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf build: Remove NO_AUXTRACE build option

The NO_AUXTRACE build option was used when the __get_cpuid feature
test failed or if it was provided on the command line. The option no
longer avoids a dependency on a library and so having the option is
just adding complexity to the code base. Remove the option
CONFIG_AUXTRACE from Build files and HAVE_AUXTRACE_SUPPORT by assuming
it is always defined.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
754187ad c819bfdc

+39 -357
-1
tools/perf/Documentation/perf-check.txt
··· 50 50 dwarf / HAVE_LIBDW_SUPPORT 51 51 dwarf_getlocations / HAVE_LIBDW_SUPPORT 52 52 dwarf-unwind / HAVE_DWARF_UNWIND_SUPPORT 53 - auxtrace / HAVE_AUXTRACE_SUPPORT 54 53 libbfd / HAVE_LIBBFD_SUPPORT 55 54 libbpf-strings / HAVE_LIBBPF_STRINGS_SUPPORT 56 55 libcapstone / HAVE_LIBCAPSTONE_SUPPORT
-5
tools/perf/Makefile.config
··· 1113 1113 endif 1114 1114 endif 1115 1115 1116 - ifndef NO_AUXTRACE 1117 - $(call detected,CONFIG_AUXTRACE) 1118 - CFLAGS += -DHAVE_AUXTRACE_SUPPORT 1119 - endif 1120 - 1121 1116 ifdef EXTRA_TESTS 1122 1117 $(call detected,CONFIG_EXTRA_TESTS) 1123 1118 CFLAGS += -DHAVE_EXTRA_TESTS
-2
tools/perf/Makefile.perf
··· 84 84 # 85 85 # Define NO_LZMA if you do not want to support compressed (xz) kernel modules 86 86 # 87 - # Define NO_AUXTRACE if you do not want AUX area tracing support 88 - # 89 87 # Define NO_LIBBPF if you do not want BPF support 90 88 # 91 89 # Define NO_LIBCAP if you do not want process capabilities considered by perf
+1 -1
tools/perf/arch/arm/util/Build
··· 3 3 perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o 4 4 perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 5 5 6 - perf-util-$(CONFIG_AUXTRACE) += pmu.o auxtrace.o cs-etm.o 6 + perf-util-y += pmu.o auxtrace.o cs-etm.o
-2
tools/perf/arch/arm/util/pmu.c
··· 20 20 { 21 21 struct perf_cpu_map *intersect, *online = cpu_map__online(); 22 22 23 - #ifdef HAVE_AUXTRACE_SUPPORT 24 23 if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { 25 24 /* add ETM default config here */ 26 25 pmu->auxtrace = true; ··· 38 39 pmu->selectable = true; 39 40 #endif 40 41 } 41 - #endif 42 42 /* Workaround some ARM PMU's failing to correctly set CPU maps for online processors. */ 43 43 intersect = perf_cpu_map__intersect(online, pmu->cpus); 44 44 perf_cpu_map__put(online);
+12 -11
tools/perf/arch/arm64/util/Build
··· 1 - perf-util-y += header.o 2 - perf-util-y += machine.o 3 - perf-util-y += perf_regs.o 4 - perf-util-y += tsc.o 5 - perf-util-y += pmu.o 1 + perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 6 2 perf-util-$(CONFIG_LIBTRACEEVENT) += kvm-stat.o 7 3 perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o 8 - perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 9 - 10 - perf-util-$(CONFIG_AUXTRACE) += ../../arm/util/pmu.o \ 11 - ../../arm/util/auxtrace.o \ 12 - ../../arm/util/cs-etm.o \ 13 - arm-spe.o mem-events.o hisi-ptt.o 4 + perf-util-y += ../../arm/util/auxtrace.o 5 + perf-util-y += ../../arm/util/cs-etm.o 6 + perf-util-y += ../../arm/util/pmu.o 7 + perf-util-y += arm-spe.o 8 + perf-util-y += header.o 9 + perf-util-y += hisi-ptt.o 10 + perf-util-y += machine.o 11 + perf-util-y += mem-events.o 12 + perf-util-y += perf_regs.o 13 + perf-util-y += pmu.o 14 + perf-util-y += tsc.o
+1 -1
tools/perf/arch/powerpc/util/Build
··· 10 10 11 11 perf-util-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 12 12 perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 13 - perf-util-$(CONFIG_AUXTRACE) += auxtrace.o 13 + perf-util-y += auxtrace.o
+1 -1
tools/perf/arch/s390/util/Build
··· 7 7 perf-util-y += machine.o 8 8 perf-util-y += pmu.o 9 9 10 - perf-util-$(CONFIG_AUXTRACE) += auxtrace.o 10 + perf-util-y += auxtrace.o
+2 -2
tools/perf/arch/x86/tests/Build
··· 3 3 4 4 perf-test-y += arch-tests.o 5 5 perf-test-y += hybrid.o 6 - perf-test-$(CONFIG_AUXTRACE) += intel-pt-test.o 6 + perf-test-y += intel-pt-test.o 7 7 ifeq ($(CONFIG_EXTRA_TESTS),y) 8 - perf-test-$(CONFIG_AUXTRACE) += insn-x86.o 8 + perf-test-y += insn-x86.o 9 9 endif 10 10 perf-test-$(CONFIG_X86_64) += bp-modify.o 11 11 perf-test-y += amd-ibs-via-core-pmu.o
-4
tools/perf/arch/x86/tests/arch-tests.c
··· 3 3 #include "tests/tests.h" 4 4 #include "arch-tests.h" 5 5 6 - #ifdef HAVE_AUXTRACE_SUPPORT 7 6 #ifdef HAVE_EXTRA_TESTS 8 7 DEFINE_SUITE("x86 instruction decoder - new instructions", insn_x86); 9 8 #endif ··· 18 19 .test_cases = intel_pt_tests, 19 20 }; 20 21 21 - #endif 22 22 #if defined(__x86_64__) 23 23 DEFINE_SUITE("x86 bp modify", bp_modify); 24 24 #endif ··· 37 39 #ifdef HAVE_DWARF_UNWIND_SUPPORT 38 40 &suite__dwarf_unwind, 39 41 #endif 40 - #ifdef HAVE_AUXTRACE_SUPPORT 41 42 #ifdef HAVE_EXTRA_TESTS 42 43 &suite__insn_x86, 43 44 #endif 44 45 &suite__intel_pt, 45 - #endif 46 46 #if defined(__x86_64__) 47 47 &suite__bp_modify, 48 48 #endif
+3 -3
tools/perf/arch/x86/util/Build
··· 14 14 perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o 15 15 perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 16 16 17 - perf-util-$(CONFIG_AUXTRACE) += auxtrace.o 17 + perf-util-y += auxtrace.o 18 18 perf-util-y += archinsn.o 19 - perf-util-$(CONFIG_AUXTRACE) += intel-pt.o 20 - perf-util-$(CONFIG_AUXTRACE) += intel-bts.o 19 + perf-util-y += intel-pt.o 20 + perf-util-y += intel-bts.o
-2
tools/perf/arch/x86/util/pmu.c
··· 273 273 { 274 274 struct perf_pmu_caps *ldlat_cap; 275 275 276 - #ifdef HAVE_AUXTRACE_SUPPORT 277 276 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) { 278 277 pmu->auxtrace = true; 279 278 pmu->selectable = true; ··· 282 283 pmu->auxtrace = true; 283 284 pmu->selectable = true; 284 285 } 285 - #endif 286 286 287 287 if (x86__is_amd_cpu()) { 288 288 if (strcmp(pmu->name, "ibs_op"))
-1
tools/perf/builtin-check.c
··· 42 42 FEATURE_STATUS("dwarf", HAVE_LIBDW_SUPPORT), 43 43 FEATURE_STATUS("dwarf_getlocations", HAVE_LIBDW_SUPPORT), 44 44 FEATURE_STATUS("dwarf-unwind", HAVE_DWARF_UNWIND_SUPPORT), 45 - FEATURE_STATUS("auxtrace", HAVE_AUXTRACE_SUPPORT), 46 45 FEATURE_STATUS_TIP("libbfd", HAVE_LIBBFD_SUPPORT, "Deprecated, license incompatibility, use BUILD_NONDISTRO=1 and install binutils-dev[el]"), 47 46 FEATURE_STATUS("libbpf-strings", HAVE_LIBBPF_STRINGS_SUPPORT), 48 47 FEATURE_STATUS("libcapstone", HAVE_LIBCAPSTONE_SUPPORT),
-15
tools/perf/builtin-inject.c
··· 239 239 return perf_event__repipe_synth(tool, event); 240 240 } 241 241 242 - #ifdef HAVE_AUXTRACE_SUPPORT 243 - 244 242 static int copy_bytes(struct perf_inject *inject, struct perf_data *data, off_t size) 245 243 { 246 244 char buf[4096]; ··· 294 296 295 297 return event->auxtrace.size; 296 298 } 297 - 298 - #else 299 - 300 - static s64 301 - perf_event__repipe_auxtrace(const struct perf_tool *tool __maybe_unused, 302 - struct perf_session *session __maybe_unused, 303 - union perf_event *event __maybe_unused) 304 - { 305 - pr_err("AUX area tracing not supported\n"); 306 - return -EINVAL; 307 - } 308 - 309 - #endif 310 299 311 300 static int perf_event__repipe(const struct perf_tool *tool, 312 301 union perf_event *event,
-36
tools/perf/builtin-record.c
··· 730 730 raise(signr); 731 731 } 732 732 733 - #ifdef HAVE_AUXTRACE_SUPPORT 734 - 735 733 static int record__process_auxtrace(const struct perf_tool *tool, 736 734 struct mmap *map, 737 735 union perf_event *event, void *data1, ··· 886 888 887 889 return auxtrace_parse_filters(rec->evlist); 888 890 } 889 - 890 - #else 891 - 892 - static inline 893 - int record__auxtrace_mmap_read(struct record *rec __maybe_unused, 894 - struct mmap *map __maybe_unused) 895 - { 896 - return 0; 897 - } 898 - 899 - static inline 900 - void record__read_auxtrace_snapshot(struct record *rec __maybe_unused, 901 - bool on_exit __maybe_unused) 902 - { 903 - } 904 - 905 - static inline 906 - int auxtrace_record__snapshot_start(struct auxtrace_record *itr __maybe_unused) 907 - { 908 - return 0; 909 - } 910 - 911 - static inline 912 - int record__auxtrace_snapshot_exit(struct record *rec __maybe_unused) 913 - { 914 - return 0; 915 - } 916 - 917 - static int record__auxtrace_init(struct record *rec __maybe_unused) 918 - { 919 - return 0; 920 - } 921 - 922 - #endif 923 891 924 892 static int record__config_text_poke(struct evlist *evlist) 925 893 {
-12
tools/perf/builtin-script.c
··· 2000 2000 return len + perf_sample__fprintf_pt_spacing(len, fp); 2001 2001 } 2002 2002 2003 - #ifdef HAVE_AUXTRACE_SUPPORT 2004 2003 static int perf_sample__fprintf_synth_vpadtl(struct perf_sample *data, FILE *fp) 2005 2004 { 2006 2005 struct powerpc_vpadtl_entry *dtl = (struct powerpc_vpadtl_entry *)data->raw_data; ··· 2018 2019 2019 2020 return len; 2020 2021 } 2021 - #else 2022 - static int perf_sample__fprintf_synth_vpadtl(struct perf_sample *data __maybe_unused, 2023 - FILE *fp __maybe_unused) 2024 - { 2025 - return 0; 2026 - } 2027 - #endif 2028 2022 2029 2023 static int perf_sample__fprintf_synth(struct perf_sample *sample, 2030 2024 struct evsel *evsel, FILE *fp) ··· 3848 3856 return 0; 3849 3857 } 3850 3858 3851 - #ifdef HAVE_AUXTRACE_SUPPORT 3852 3859 static int perf_script__process_auxtrace_info(const struct perf_tool *tool, 3853 3860 struct perf_session *session, 3854 3861 union perf_event *event) ··· 3862 3871 3863 3872 return ret; 3864 3873 } 3865 - #else 3866 - #define perf_script__process_auxtrace_info 0 3867 - #endif 3868 3874 3869 3875 static int parse_insn_trace(const struct option *opt __maybe_unused, 3870 3876 const char *str, int unset __maybe_unused)
+1 -3
tools/perf/tests/make
··· 88 88 make_no_libcapstone := NO_CAPSTONE=1 89 89 make_no_libnuma := NO_LIBNUMA=1 90 90 make_no_libbionic := NO_LIBBIONIC=1 91 - make_no_auxtrace := NO_AUXTRACE=1 92 91 make_no_libbpf := NO_LIBBPF=1 93 92 make_libbpf_dynamic := LIBBPF_DYNAMIC=1 94 93 make_no_libbpf_DEBUG := NO_LIBBPF=1 DEBUG=1 ··· 120 121 make_minimal := NO_LIBPYTHON=1 NO_GTK2=1 121 122 make_minimal += NO_DEMANGLE=1 NO_LIBELF=1 NO_BACKTRACE=1 122 123 make_minimal += NO_LIBNUMA=1 NO_LIBBIONIC=1 NO_LIBDW=1 123 - make_minimal += NO_LIBDW_DWARF_UNWIND=1 NO_AUXTRACE=1 NO_LIBBPF=1 124 + make_minimal += NO_LIBDW_DWARF_UNWIND=1 NO_LIBBPF=1 124 125 make_minimal += NO_SDT=1 NO_JVMTI=1 NO_LIBZSTD=1 125 126 make_minimal += NO_LIBCAP=1 NO_CAPSTONE=1 126 127 ··· 157 158 run += make_no_libcapstone 158 159 run += make_no_libnuma 159 160 run += make_no_libbionic 160 - run += make_no_auxtrace 161 161 run += make_no_libbpf 162 162 run += make_no_libbpf_DEBUG 163 163 run += make_no_libllvm
+12 -12
tools/perf/util/Build
··· 129 129 perf-util-y += stream.o 130 130 perf-util-y += kvm-stat.o 131 131 perf-util-y += lock-contention.o 132 - perf-util-$(CONFIG_AUXTRACE) += auxtrace.o 132 + perf-util-y += auxtrace.o 133 133 perf-util-y += intel-pt-decoder/ 134 - perf-util-$(CONFIG_AUXTRACE) += intel-pt.o 135 - perf-util-$(CONFIG_AUXTRACE) += intel-bts.o 136 - perf-util-$(CONFIG_AUXTRACE) += arm-spe.o 137 - perf-util-$(CONFIG_AUXTRACE) += arm-spe-decoder/ 138 - perf-util-$(CONFIG_AUXTRACE) += hisi-ptt.o 139 - perf-util-$(CONFIG_AUXTRACE) += hisi-ptt-decoder/ 140 - perf-util-$(CONFIG_AUXTRACE) += s390-cpumsf.o 141 - perf-util-$(CONFIG_AUXTRACE) += powerpc-vpadtl.o 134 + perf-util-y += intel-pt.o 135 + perf-util-y += intel-bts.o 136 + perf-util-y += arm-spe.o 137 + perf-util-y += arm-spe-decoder/ 138 + perf-util-y += hisi-ptt.o 139 + perf-util-y += hisi-ptt-decoder/ 140 + perf-util-y += s390-cpumsf.o 141 + perf-util-y += powerpc-vpadtl.o 142 142 143 143 ifdef CONFIG_LIBOPENCSD 144 - perf-util-$(CONFIG_AUXTRACE) += cs-etm.o 145 - perf-util-$(CONFIG_AUXTRACE) += cs-etm-decoder/ 144 + perf-util-y += cs-etm.o 145 + perf-util-y += cs-etm-decoder/ 146 146 endif 147 - perf-util-$(CONFIG_AUXTRACE) += cs-etm-base.o 147 + perf-util-y += cs-etm-base.o 148 148 149 149 perf-util-y += parse-branch-options.o 150 150 perf-util-y += dump-insn.o
+1 -1
tools/perf/util/arm-spe-decoder/Build
··· 1 - perf-util-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o arm-spe-decoder.o 1 + perf-util-y += arm-spe-pkt-decoder.o arm-spe-decoder.o
+1 -219
tools/perf/util/auxtrace.h
··· 7 7 #ifndef __PERF_AUXTRACE_H 8 8 #define __PERF_AUXTRACE_H 9 9 10 - #include <sys/types.h> 11 10 #include <errno.h> 12 - #include <stdbool.h> 13 - #include <stddef.h> 14 11 #include <stdio.h> // FILE 15 - #include <linux/list.h> 16 12 #include <linux/perf_event.h> 17 13 #include <linux/types.h> 18 - #include <perf/cpumap.h> 19 - #include <asm/bitsperlong.h> 20 14 #include <asm/barrier.h> 15 + #include <perf/cpumap.h> 21 16 22 17 union perf_event; 23 18 struct perf_session; ··· 454 459 455 460 struct auxtrace_cache; 456 461 457 - #ifdef HAVE_AUXTRACE_SUPPORT 458 - 459 462 u64 compat_auxtrace_mmap__read_head(struct auxtrace_mmap *mm); 460 463 int compat_auxtrace_mmap__write_tail(struct auxtrace_mmap *mm, u64 tail); 461 464 ··· 698 705 opts->ptime_range = NULL; 699 706 opts->range_num = 0; 700 707 } 701 - 702 - #else 703 - #include "debug.h" 704 - 705 - static inline struct auxtrace_record * 706 - auxtrace_record__init(struct evlist *evlist __maybe_unused, 707 - int *err) 708 - { 709 - *err = 0; 710 - return NULL; 711 - } 712 - 713 - static inline 714 - void auxtrace_record__free(struct auxtrace_record *itr __maybe_unused) 715 - { 716 - } 717 - 718 - static inline 719 - int auxtrace_record__options(struct auxtrace_record *itr __maybe_unused, 720 - struct evlist *evlist __maybe_unused, 721 - struct record_opts *opts __maybe_unused) 722 - { 723 - return 0; 724 - } 725 - 726 - static inline 727 - int perf_event__process_auxtrace_info(const struct perf_tool *tool __maybe_unused, 728 - struct perf_session *session __maybe_unused, 729 - union perf_event *event __maybe_unused) 730 - { 731 - return 0; 732 - } 733 - 734 - static inline 735 - s64 perf_event__process_auxtrace(const struct perf_tool *tool __maybe_unused, 736 - struct perf_session *session __maybe_unused, 737 - union perf_event *event __maybe_unused) 738 - { 739 - return 0; 740 - } 741 - 742 - static inline 743 - int perf_event__process_auxtrace_error(const struct perf_tool *tool __maybe_unused, 744 - struct perf_session *session __maybe_unused, 745 - union perf_event *event __maybe_unused) 746 - { 747 - return 0; 748 - } 749 - 750 - static inline 751 - void perf_session__auxtrace_error_inc(struct perf_session *session 752 - __maybe_unused, 753 - union perf_event *event 754 - __maybe_unused) 755 - { 756 - } 757 - 758 - static inline 759 - void events_stats__auxtrace_error_warn(const struct events_stats *stats 760 - __maybe_unused) 761 - { 762 - } 763 - 764 - static inline 765 - int itrace_do_parse_synth_opts(struct itrace_synth_opts *synth_opts __maybe_unused, 766 - const char *str __maybe_unused, int unset __maybe_unused) 767 - { 768 - pr_err("AUX area tracing not supported\n"); 769 - return -EINVAL; 770 - } 771 - 772 - static inline 773 - int itrace_parse_synth_opts(const struct option *opt __maybe_unused, 774 - const char *str __maybe_unused, 775 - int unset __maybe_unused) 776 - { 777 - pr_err("AUX area tracing not supported\n"); 778 - return -EINVAL; 779 - } 780 - 781 - static inline 782 - int auxtrace_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused, 783 - struct record_opts *opts __maybe_unused, 784 - const char *str) 785 - { 786 - if (!str) 787 - return 0; 788 - pr_err("AUX area tracing not supported\n"); 789 - return -EINVAL; 790 - } 791 - 792 - static inline 793 - int auxtrace_parse_sample_options(struct auxtrace_record *itr __maybe_unused, 794 - struct evlist *evlist __maybe_unused, 795 - struct record_opts *opts __maybe_unused, 796 - const char *str) 797 - { 798 - if (!str) 799 - return 0; 800 - pr_err("AUX area tracing not supported\n"); 801 - return -EINVAL; 802 - } 803 - 804 - static inline 805 - int auxtrace_parse_aux_action(struct evlist *evlist __maybe_unused) 806 - { 807 - pr_err("AUX area tracing not supported\n"); 808 - return -EINVAL; 809 - } 810 - 811 - static inline 812 - int auxtrace__process_event(struct perf_session *session __maybe_unused, 813 - union perf_event *event __maybe_unused, 814 - struct perf_sample *sample __maybe_unused, 815 - const struct perf_tool *tool __maybe_unused) 816 - { 817 - return 0; 818 - } 819 - 820 - static inline 821 - void auxtrace__dump_auxtrace_sample(struct perf_session *session __maybe_unused, 822 - struct perf_sample *sample __maybe_unused) 823 - { 824 - } 825 - 826 - static inline 827 - int auxtrace__flush_events(struct perf_session *session __maybe_unused, 828 - const struct perf_tool *tool __maybe_unused) 829 - { 830 - return 0; 831 - } 832 - 833 - static inline 834 - void auxtrace__free_events(struct perf_session *session __maybe_unused) 835 - { 836 - } 837 - 838 - static inline 839 - void auxtrace_cache__free(struct auxtrace_cache *auxtrace_cache __maybe_unused) 840 - { 841 - } 842 - 843 - static inline 844 - void auxtrace__free(struct perf_session *session __maybe_unused) 845 - { 846 - } 847 - 848 - static inline 849 - int auxtrace_index__write(int fd __maybe_unused, 850 - struct list_head *head __maybe_unused) 851 - { 852 - return -EINVAL; 853 - } 854 - 855 - static inline 856 - int auxtrace_index__process(int fd __maybe_unused, 857 - u64 size __maybe_unused, 858 - struct perf_session *session __maybe_unused, 859 - bool needs_swap __maybe_unused) 860 - { 861 - return -EINVAL; 862 - } 863 - 864 - static inline 865 - void auxtrace_index__free(struct list_head *head __maybe_unused) 866 - { 867 - } 868 - 869 - static inline 870 - bool auxtrace__evsel_is_auxtrace(struct perf_session *session __maybe_unused, 871 - struct evsel *evsel __maybe_unused) 872 - { 873 - return false; 874 - } 875 - 876 - static inline 877 - int auxtrace_parse_filters(struct evlist *evlist __maybe_unused) 878 - { 879 - return 0; 880 - } 881 - 882 - int auxtrace_mmap__mmap(struct auxtrace_mmap *mm, 883 - struct auxtrace_mmap_params *mp, 884 - void *userpg, int fd); 885 - void auxtrace_mmap__munmap(struct auxtrace_mmap *mm); 886 - void auxtrace_mmap_params__init(struct auxtrace_mmap_params *mp, 887 - off_t auxtrace_offset, 888 - unsigned int auxtrace_pages, 889 - bool auxtrace_overwrite); 890 - void auxtrace_mmap_params__set_idx(struct auxtrace_mmap_params *mp, 891 - struct evlist *evlist, 892 - struct evsel *evsel, int idx); 893 - 894 - #define ITRACE_HELP "" 895 - 896 - static inline 897 - void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts 898 - __maybe_unused, 899 - struct perf_time_interval *ptime_range 900 - __maybe_unused, 901 - int range_num __maybe_unused) 902 - { 903 - } 904 - 905 - static inline 906 - void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts 907 - __maybe_unused) 908 - { 909 - } 910 - 911 - #endif 912 708 913 709 #endif
+1 -1
tools/perf/util/cs-etm-decoder/Build
··· 1 - perf-util-$(CONFIG_AUXTRACE) += cs-etm-decoder.o 1 + perf-util-y += cs-etm-decoder.o
+1 -1
tools/perf/util/hisi-ptt-decoder/Build
··· 1 - perf-util-$(CONFIG_AUXTRACE) += hisi-ptt-pkt-decoder.o 1 + perf-util-y += hisi-ptt-pkt-decoder.o
+2 -6
tools/perf/util/intel-pt-decoder/Build
··· 1 - perf-util-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o 1 + perf-util-y += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o 2 2 3 3 inat_tables_script = $(srctree)/tools/arch/x86/tools/gen-insn-attr-x86.awk 4 4 inat_tables_maps = $(srctree)/tools/arch/x86/lib/x86-opcode-map.txt ··· 7 7 $(call rule_mkdir) 8 8 @$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@ 9 9 10 - ifeq ($(SRCARCH),x86) 11 - perf-util-y += inat.o insn.o 12 - else 13 - perf-util-$(CONFIG_AUXTRACE) += inat.o insn.o 14 - endif 10 + perf-util-y += inat.o insn.o 15 11 16 12 $(OUTPUT)util/intel-pt-decoder/inat.o: $(srctree)/tools/arch/x86/lib/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c 17 13 $(call rule_mkdir)
-15
tools/perf/util/synthetic-events.h
··· 107 107 struct perf_thread_map *threads, bool needs_mmap, bool data_mmap, 108 108 unsigned int nr_threads_synthesize); 109 109 110 - #ifdef HAVE_AUXTRACE_SUPPORT 111 110 int perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr, const struct perf_tool *tool, 112 111 struct perf_session *session, perf_event__handler_t process); 113 - 114 - #else // HAVE_AUXTRACE_SUPPORT 115 - 116 - #include <errno.h> 117 - 118 - static inline int 119 - perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr __maybe_unused, 120 - const struct perf_tool *tool __maybe_unused, 121 - struct perf_session *session __maybe_unused, 122 - perf_event__handler_t process __maybe_unused) 123 - { 124 - return -EINVAL; 125 - } 126 - #endif // HAVE_AUXTRACE_SUPPORT 127 112 128 113 #ifdef HAVE_LIBBPF_SUPPORT 129 114 int perf_event__synthesize_bpf_events(struct perf_session *session, perf_event__handler_t process,