Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:ARM:Staging
perf
perf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perf.spec of Package perf
# # spec file for package perf # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perf %define version %(rpm -q --qf '%{VERSION}' kernel-source) Version: %{version} Release: 0 Summary: Performance Monitoring Tools for Linux License: GPL-2.0-only Group: Development/Tools/Debuggers Url: https://perf.wiki.kernel.org/ BuildRequires: asciidoc BuildRequires: audit-devel BuildRequires: binutils-devel BuildRequires: bison BuildRequires: flex BuildRequires: gtk2-devel BuildRequires: kernel-source >= 2.6.31 BuildRequires: libdw-devel BuildRequires: libelf-devel BuildRequires: python3-devel BuildRequires: xz-devel %ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc BuildRequires: libnuma-devel %endif %ifarch s390x s390 %define _perf_unwind NO_LIBUNWIND=1 %else %define _perf_unwind %{nil} BuildRequires: libunwind-devel %endif BuildRequires: newt-devel BuildRequires: openssl-devel BuildRequires: xmlto BuildRequires: zlib-devel # dl_open requirement so not autodetected %ifarch ppc64 ppc64le Requires: libebl %endif %{perl_requires} %{?libperl_requires} # upstream patches Patch1: perf-report-remove-unnecessary-check-in-annotate_browser_write.patch Patch2: perf-annotate-browser-display-titles-in-left-frame.patch Patch3: perf-script-allow-adding-and-removing-fields.patch Patch4: perf-ftrace-move-setup_pager-before-opening-trace_pipe.patch Patch5: perf-evsel-set-attr-exclude_kernel-when-probing-max-attr-precise_ip.patch Patch6: perf-evsel-allow-asking-for-max-precise_ip-in-new_cycles.patch Patch7: perf-test-sdt-handle-realpath-failure.patch Patch8: perf-tests-attr-fix-no-delay-test.patch Patch9: perf-header-encapsulate-read-and-swap.patch Patch10: perf-util-add-const-modifier-to-buf-in-writen-function.patch Patch11: perf-header-fail-on-write_padded-error.patch Patch12: perf-header-revamp-do_write.patch Patch13: perf-header-add-struct-feat_fd-for-write.patch Patch14: tools-include-Adopt-strstarts-from-the-kernel.patch Patch15: perf-annotate-introduce-struct-sym_hist_entry.patch Patch16: perf-annotate-rename-sum-to-nr_samples-in-struct-sym_hist.patch Patch17: perf-hists-pass-perf_sample-to-_symbol__inc_addr_samples.patch Patch18: perf-annotate-store-the-sample-period-in-each-histogram-bucket.patch Patch19: perf-annotate-do-not-overwrite-sample-period.patch Patch20: perf-annotate-stdio-fix-show-total-period.patch Patch21: perf-jvmti-fix-linker-error-when-libelf-config-is-disabled.patch Patch22: perf-evsel-add-verbose-output-for-sys_perf_event_open-fallback.patch Patch23: perf-script-python-allocate-memory-only-if-handler-exists.patch Patch24: perf-script-python-refactor-creation-of-perf-sample-dict.patch Patch25: perf-script-python-add-sample_read-to-dict.patch Patch26: perf-script-python-add-perf_sample-dict-to-tracepoint-handlers.patch Patch27: perf-jevents-Make-build-fail-on-JSON-parse-error.patch Patch28: perf-annotate-stdio-fix-column-header-when-using-show-total-period.patch Patch29: perf-tools-add-perf_evsel__read_size-function.patch Patch30: perf-evsel-add-read_counter.patch Patch31: perf-stat-use-group-read-for-event-groups.patch Patch32: perf-annotate-stdio-set-enough-columns-for-show-total-period.patch Patch33: perf-annotate-fix-storing-per-line-sym_hist_entry.patch Patch34: perf-annotate-tui-use-sym_hist_entry-in-disasm_line_samples.patch Patch35: perf-annotate-tui-fix-show-total-period.patch Patch36: perf-annotate-tui-clarify-calculation-of-column-header-widths.patch Patch37: perf-annotate-tui-fix-column-header-when-toggling-period-percent.patch Patch38: perf-annotate-tui-set-appropriate-column-width-for-period-percent.patch Patch39: perf-scripting-python-add-ppc64le-to-audit-uname-list.patch Patch40: perf-test-make-list-subcommand-match-main-perf-test-numbering-matching.patch Patch41: perf-scripts-python-fix-missing-call_path_id-in-export-to-postgresql-script.patch Patch42: perf-trace-fix-off-by-one-string-allocation-problem.patch Patch43: perf-jevents-support-fcmask-and-portmask.patch Patch44: perf-events-parse-Use-just-one-parse-events-state-st.patch Patch45: perf-events-parse-Rename-parsing-state-struct-to-cle.patch Patch46: perf-events-parse-Remove-some-needless-local-variabl.patch Patch47: perf-events-parse-Rename-parse_events_parse-argument.patch Patch48: perf-annotate-stdio-support-show-nr-samples-option.patch Patch49: perf-annotate-document-show-total-period-option.patch Patch50: perf-vendor-events-add-core-event-list-for-skylake-server.patch Patch51: perf-vendor-events-add-skylake-server-uncore-event-list.patch Patch52: perf-tools-add-support-for-printing-new-mem_info-encodings.patch Patch53: perf-test-add-test-cases-for-new-data-source-encoding.patch Patch54: perf-tools-really-install-manpages-via-make-install-man.patch Patch55: perf-probe-fix-kprobe-blacklist-checking-condition.patch Patch56: perf-symbols-Fix-plt-entry-calculation-for-ARM-and-A.patch Patch57: perf-test-powerpc-fix-object-code-reading-test.patch Patch58: perf-stat-Only-auto-merge-events-that-are-PMU-aliase.patch Patch59: perf-vendor-events-Support-metric_group-and-no-event.patch Patch60: perf-stat-Factor-out-generic-metric-printing.patch Patch61: perf-stat-Support-JSON-metrics-in-perf-stat.patch Patch62: perf-pmu-extract-function-to-get-json-alias-map.patch Patch63: perf-list-Add-metric-groups-to-perf-list.patch Patch64: perf-evsel-fix-attr-exclude_kernel-setting-for-default-cycles-p.patch Patch65: perf-pmu-Unbreak-perf-record-for-arm-arm64-with-even.patch Patch66: perf-mmap-move-perf_mmap-and-methods-to-separate-mmap-files.patch Patch67: perf-record-make-record__mmap_read-generic.patch Patch68: perf-mmap-adopt-push-method-from-builtin-record-c.patch Patch69: perf-vendor-events-add-goldmont-plus-v1-event-file.patch Patch70: perf-symbols-fix-memory-corruption-because-of-zero-length-symbols.patch Patch71: perf-vendor-events-update-power9-events-e795dd42.patch Patch72: perf-tests-set-evlist-of-test__sw_clock_freq-to-overwrite.patch Patch73: perf-tests-set-evlist-of-test__backward_ring_buffer-to-overwrite.patch Patch74: perf-tests-set-evlist-of-test__task_exit-to-overwrite.patch Patch75: perf-tests-set-evlist-of-test__basic_mmap-to-overwrite.patch Patch76: perf-help-fix-a-bug-during-strstart-conversion.patch Patch77: perf-c2c-fix-spelling-mistakes-in-browser-help-text.patch Patch78: perf-top-fix-window-dimensions-change-handling.patch Patch79: perf-tools-arm64-Add-support-for-get_cpuid_str-funct.patch Patch80: perf-pmu-Pass-pmu-as-a-parameter-to-get_cpuid_str.patch Patch81: perf-vendor-events-arm64-Add-ThunderX2-implementatio.patch Patch82: perf-pmu-Add-check-for-valid-cpuid-in-perf_pmu__find.patch Patch83: perf-evlist-remove-overwrite-parameter-from-perf_evlist__mmap.patch Patch84: perf-evlist-remove-overwrite-parameter-from-perf_evlist__mmap_ex.patch Patch85: perf-evlist-remove-evlist-overwrite.patch Patch86: perf-mmap-remove-overwrite-from-arguments-list-of-perf_mmap__push.patch Patch87: perf-mmap-remove-overwrite-and-check_messup-from-mmap-read.patch Patch88: perf-vendor-events-use-more-flexible-pattern-matching-for-cpu-identification-for-mapfile-csv.patch Patch89: perf-mmap-fix-perf-backward-recording.patch Patch90: perf-mmap-don-t-discard-prev-in-backward-mode.patch Patch91: perf-tools-rename-backward-to-overwrite-in-evlist-mmap-and-record.patch Patch92: perf-probe-arm64-Fix-symbol-fixup-issues-due-to-ELF-.patch Patch93: perf-script-add-support-to-display-sample-misc-field.patch Patch94: perf-tools-Add-ARM-Statistical-Profiling-Extensions-.patch Patch95: perf-vendor-events-aarch64-Add-JSON-metrics-for-ARM-.patch Patch96: perf-evlist-remove-stale-mmap-read-for-backward.patch Patch97: perf-mmap-recalculate-size-for-overwrite-mode.patch Patch98: perf-mmap-cleanup-perf_mmap__push.patch Patch99: perf-mmap-introduce-perf_mmap__read_init.patch Patch100: perf-mmap-add-new-return-value-logic-for-perf_mmap__read_init.patch Patch101: perf-mmap-discard-prev-in-perf_mmap__read.patch Patch102: perf-mmap-introduce-perf_mmap__read_done.patch Patch103: perf-mmap-introduce-perf_mmap__read_event.patch Patch104: perf-test-update-mmap-read-functions-for-backward-ring-buffer-test.patch Patch105: perf-mmap-discard-legacy-interface-for-mmap-read.patch Patch106: perf-top-check-per-event-overwrite-term.patch Patch107: perf-evsel-expose-the-perf_missing_features-struct.patch Patch108: perf-top-add-overwrite-fall-back.patch Patch109: perf-hists-browser-add-parameter-to-disable-lost-event-warning.patch Patch110: perf-top-remove-lost-events-checking.patch Patch111: perf-top-switch-default-mode-to-overwrite-mode.patch Patch112: perf-top-check-the-latency-of-perf_top__mmap_read.patch Patch113: perf-auxtrace-arm-Fixing-uninitialised-variable.patch Patch114: perf-mem-document-a-missing-option.patch Patch115: perf-python-make-twatch-py-work-with-both-python2-and-python3.patch Patch116: perf-tools-add-python-3-support.patch Patch117: perf-top-fix-annoying-fallback-message-on-older-kernels.patch Patch118: perf-tools-arm64-Add-libdw-DWARF-post-unwind-support.patch Patch119: perf-vendor-events-Drop-incomplete-multiple-mapfile-.patch Patch120: perf-vendor-events-Fix-error-code-in-json_events.patch Patch121: perf-vendor-events-Drop-support-for-unused-topic-dir.patch Patch122: perf-vendor-events-Add-support-for-pmu-events-vendor.patch Patch123: perf-vendor-events-arm64-Relocate-ThunderX2-JSON-to-.patch Patch124: perf-vendor-events-arm64-Relocate-Cortex-A53-JSONs-t.patch Patch125: perf-vendor-events-Add-support-for-arch-standard-eve.patch Patch126: perf-vendor-events-arm64-Add-armv8-recommended.json.patch Patch127: perf-vendor-events-arm64-Fixup-ThunderX2-to-use-reco.patch Patch128: perf-vendor-events-arm64-fixup-A53-to-use-recommende.patch Patch129: perf-vendor-events-arm64-add-HiSilicon-hip08-JSON-fi.patch Patch130: perf-vendor-events-arm64-Enable-JSON-events-for-Thun.patch Patch131: perf-vendor-events-update-power9-events-9749adc3.patch Patch132: perf-tools-fix-python-extension-build-for-gcc-8.patch Patch133: perf-mmap-fix-accessing-unmapped-mmap-in-perf_mmap__read_done.patch Patch134: perf-mmap-be-consistent-when-checking-for-an-unmaped-ring-buffer.patch Patch135: perf-stat-enable-1ms-interval-for-printing-event-counters-values.patch Patch136: perf-tests-Run-dwarf-unwind-test-on-arm32.patch Patch137: perf-script-extend-misc-field-decoding-with-switch-out-event-type.patch Patch138: perf-report-extend-raw-dump-d-out-with-switch-out-event-type.patch Patch139: perf-mem-allow-all-record-report-options.patch Patch140: perf-mem-document-incorrect-and-missing-options.patch Patch141: perf-evsel-only-fall-back-group-read-for-leader.patch Patch142: perf-record-enable-arbitrary-event-names-thru-name-modifier.patch Patch143: perf-script-show-hw-cache-events.patch Patch144: perf-script-add-missing-output-fields-in-a-hint.patch Patch145: perf-scripts-python-add-python-3-support-to-util-py.patch Patch146: perf-scripts-python-add-python-3-support-to-sched-migration-py.patch Patch147: perf-scripts-python-add-python-3-support-to-schedgui-py.patch Patch148: perf-scripts-python-add-python-3-support-to-eventclass-py.patch Patch149: perf-scripts-python-add-python-3-support-to-core-py.patch Patch150: perf-arm64-Generate-system-call-table-from-asm-unist.patch Patch151: perf-c2c-report-fix-crash-for-empty-browser.patch Patch152: perf-vendor-events-arm64-Update-ThunderX2-implementa.patch Patch153: perf-vendor-events-arm64-Enable-JSON-events-for-eMAG.patch Patch154: perf-arm-spe-Fix-uninitialized-record-error-variable.patch Patch155: perf-python-remove-mcet-and-fcf-protection-when-building-with-clang.patch Patch156: perf-arm64-fix-include-path-for-asm-generic-unistd-h.patch Patch157: perf-probe-support-sdt-markers-having-reference-counter-semaphore.patch Patch158: perf-python-use-wno-redundant-decls-to-build-with-python-python3.patch Patch159: perf-python-make-clang_has_option-work-on-python-3.patch Patch160: perf-symbols-set-plt-entry-header-sizes-properly-on-sparc.patch Patch161: perf-arm64-fix-generate-system-call-table-failed-with-tmp-mounted-with-noexec.patch Patch162: perf-top-allow-disabling-the-overwrite-mode.patch Patch163: perf-top-do-not-use-overwrite-mode-by-default.patch Patch164: perf-python-do-not-force-closing-original-perf-descriptor-in-evlist-get_pollfd.patch Patch165: perf-tools-handle-topology-headers-with-no-cpu.patch Patch166: perf-script-fix-crash-when-processing-recorded-stat-data.patch Patch167: perf-script-python-use-pybytes-for-attr-in-trace-event-python.patch Patch168: perf-script-python-remove-explicit-shebang-from-tests-attr-c.patch Patch169: perf-script-python-remove-explicit-shebang-from-setup-py.patch Patch170: perf-script-python-remove-explicit-shebang-from-python-scripts.patch Patch171: perf-script-python-add-trace_context-extension-module-to-sys-modules.patch Patch172: perf-script-python-add-python3-support-to-tests-attr-py.patch Patch173: perf-mem-c2c-fix-perf_mem_events-to-support-powerpc.patch Patch174: perf-header-remove-unused-cpu_nr-field-from-struct-cpu_topo.patch Patch175: perf-header-fix-wrong-node-write-in-numa_topology-feature.patch Patch176: perf-tools-add-cpu_topology-object.patch Patch177: perf-tools-add-numa_topology-object.patch Patch178: perf-script-python-add-python3-support-to-netdev-times-py.patch Patch179: perf-script-python-add-python3-support-to-failed-syscalls-by-pid-py.patch Patch180: perf-script-python-add-python3-support-to-net_dropmonitor-py.patch Patch181: perf-script-python-add-python3-support-to-sctop-py.patch Patch182: perf-script-python-add-python3-support-to-stackcollapse-py.patch Patch183: perf-script-python-add-python3-support-to-stat-cpi-py.patch Patch184: perf-script-python-add-python3-support-to-syscall-counts-py.patch Patch185: perf-script-python-add-python3-support-to-syscall-counts-by-pid-py.patch Patch186: perf-script-python-remove-mixed-indentation.patch Patch187: perf-script-python-add-python3-support-to-futex-contention-py.patch Patch188: perf-script-python-add-python3-support-to-check-perf-trace-py.patch Patch189: perf-script-python-add-python3-support-to-event_analyzing_sample-py.patch Patch190: perf-c2c-fix-c2c-report-for-empty-numa-node.patch Patch191: perf-script-python-add-python3-support-to-exported-sql-viewer-py.patch Patch192: perf-script-python-add-python3-support-to-export-to-postgresql-py.patch Patch193: perf-script-python-add-printdate-function-to-sql-exporters.patch # non upstream patches Patch600: perf-provide-definition-for-einval-on-32bit.patch Requires: kernel >= 2.6.31 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package provides a userspace tool 'perf', which monitors performance for either unmodified binaries or the entire system. It requires a Linux kernel which includes the Performance Counters for Linux (PCL) subsystem (>= 2.6.31). This subsystem utilizes the Performance Monitoring Unit (PMU) / hardware counters of the underlying cpu architecture (if supported). %prep # copy necessary files from kernel-source since we need to modify them (cd /usr/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} lib) | tar -xf - chmod +x tools/perf/util/generate-cmdlist.sh %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %patch30 -p1 %patch31 -p1 %patch32 -p1 %patch33 -p1 %patch34 -p1 %patch35 -p1 %patch36 -p1 %patch37 -p1 %patch38 -p1 %patch39 -p1 %patch40 -p1 %patch41 -p1 %patch42 -p1 %patch43 -p1 %patch44 -p1 %patch45 -p1 %patch46 -p1 %patch47 -p1 %patch48 -p1 %patch49 -p1 %patch50 -p1 %patch51 -p1 %patch52 -p1 %patch53 -p1 %patch54 -p1 %patch55 -p1 %patch56 -p1 %patch57 -p1 %patch58 -p1 %patch59 -p1 %patch60 -p1 %patch61 -p1 %patch62 -p1 %patch63 -p1 %patch64 -p1 %patch65 -p1 %patch66 -p1 %patch67 -p1 %patch68 -p1 %patch69 -p1 %patch70 -p1 %patch71 -p1 %patch72 -p1 %patch73 -p1 %patch74 -p1 %patch75 -p1 %patch76 -p1 %patch77 -p1 %patch78 -p1 %patch79 -p1 %patch80 -p1 %patch81 -p1 %patch82 -p1 %patch83 -p1 %patch84 -p1 %patch85 -p1 %patch86 -p1 %patch87 -p1 %patch88 -p1 %patch89 -p1 %patch90 -p1 %patch91 -p1 %patch92 -p1 %patch93 -p1 %patch94 -p1 %patch95 -p1 %patch96 -p1 %patch97 -p1 %patch98 -p1 %patch99 -p1 %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 %patch106 -p1 %patch107 -p1 %patch108 -p1 %patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %patch113 -p1 %patch114 -p1 %patch115 -p1 %patch116 -p1 %patch117 -p1 %patch118 -p1 %patch119 -p1 %patch120 -p1 %patch121 -p1 %patch122 -p1 %patch123 -p1 %patch124 -p1 %patch125 -p1 %patch126 -p1 %patch127 -p1 %patch128 -p1 %patch129 -p1 %patch130 -p1 %patch131 -p1 %patch132 -p1 %patch133 -p1 %patch134 -p1 %patch135 -p1 %patch136 -p1 %patch137 -p1 %patch138 -p1 %patch139 -p1 %patch140 -p1 %patch141 -p1 %patch142 -p1 %patch143 -p1 %patch144 -p1 %patch145 -p1 %patch146 -p1 %patch147 -p1 %patch148 -p1 %patch149 -p1 %patch150 -p1 %patch151 -p1 %patch152 -p1 %patch153 -p1 %patch154 -p1 %patch155 -p1 %patch156 -p1 %patch157 -p1 %patch158 -p1 %patch159 -p1 %patch160 -p1 %patch161 -p1 %patch162 -p1 %patch163 -p1 %patch164 -p1 %patch165 -p1 %patch166 -p1 %patch167 -p1 %patch168 -p1 %patch169 -p1 %patch170 -p1 %patch171 -p1 %patch172 -p1 %patch173 -p1 %patch174 -p1 %patch175 -p1 %patch176 -p1 %patch177 -p1 %patch178 -p1 %patch179 -p1 %patch180 -p1 %patch181 -p1 %patch182 -p1 %patch183 -p1 %patch184 -p1 %patch185 -p1 %patch186 -p1 %patch187 -p1 %patch188 -p1 %patch189 -p1 %patch190 -p1 %patch191 -p1 %patch192 -p1 %patch193 -p1 %patch600 -p1 %build cd tools/perf export WERROR=0 # PASS rpm optflags as EXTRA_FLAGS, passing as CFLAGS overrides and breaks build make %{?_smp_mflags} -f Makefile.perf PYTHON=python3 EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 prefix=/usr libdir=%{_libdir} perfexecdir=lib/%{name}-core all doc %{_perf_unwind} tipdir=share/doc/packages/perf %install cd tools/perf export WERROR=0 make -f Makefile.perf V=1 PYTHON=python3 EXTRA_CFLAGS="%{optflags}" prefix=/usr libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc %{_perf_unwind} tipdir=share/doc/packages/perf %files %defattr(-, root, root) %attr(0644, root, root) %doc COPYING CREDITS README tools/perf/design.txt %if 0%{?suse_version} > 1315 %attr(0644, root, root) %doc %{_docdir}/perf/tips.txt %endif %{_bindir}/perf %{_bindir}/trace %{_libdir}/libperf-gtk.so %ifnarch armv7l %dir %{_libdir}/traceevent %dir %{_libdir}/traceevent/plugins %{_libdir}/traceevent/plugins/plugin_*.so %endif %attr(0644, -, -) %{_sysconfdir}/bash_completion.d/perf %{_libexecdir}/%{name}-core %{_datarootdir}/%{name}-core %{_mandir}/man1/perf* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor