Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:GA
perf.15266
perf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perf.spec of Package perf.15266
# # 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-cgroup-fix-refcount-usage.patch Patch22: perf-jvmti-fix-linker-error-when-libelf-config-is-disabled.patch Patch23: perf-evsel-add-verbose-output-for-sys_perf_event_open-fallback.patch Patch24: perf-script-python-allocate-memory-only-if-handler-exists.patch Patch25: perf-script-python-refactor-creation-of-perf-sample-dict.patch Patch26: perf-script-python-add-sample_read-to-dict.patch Patch27: perf-script-python-add-perf_sample-dict-to-tracepoint-handlers.patch Patch28: perf-jevents-Make-build-fail-on-JSON-parse-error.patch Patch29: perf-annotate-stdio-fix-column-header-when-using-show-total-period.patch Patch30: perf-tools-add-perf_evsel__read_size-function.patch Patch31: perf-evsel-add-read_counter.patch Patch32: perf-stat-use-group-read-for-event-groups.patch Patch33: perf-annotate-stdio-set-enough-columns-for-show-total-period.patch Patch34: perf-annotate-fix-storing-per-line-sym_hist_entry.patch Patch35: perf-annotate-tui-use-sym_hist_entry-in-disasm_line_samples.patch Patch36: perf-annotate-tui-fix-show-total-period.patch Patch37: perf-annotate-tui-clarify-calculation-of-column-header-widths.patch Patch38: perf-annotate-tui-fix-column-header-when-toggling-period-percent.patch Patch39: perf-annotate-tui-set-appropriate-column-width-for-period-percent.patch Patch40: perf-scripting-python-add-ppc64le-to-audit-uname-list.patch Patch41: perf-test-make-list-subcommand-match-main-perf-test-numbering-matching.patch Patch42: perf-scripts-python-fix-missing-call_path_id-in-export-to-postgresql-script.patch Patch43: perf-trace-fix-off-by-one-string-allocation-problem.patch Patch44: perf-jevents-support-fcmask-and-portmask.patch Patch45: perf-events-parse-Use-just-one-parse-events-state-st.patch Patch46: perf-events-parse-Rename-parsing-state-struct-to-cle.patch Patch47: perf-events-parse-Remove-some-needless-local-variabl.patch Patch48: perf-events-parse-Rename-parse_events_parse-argument.patch Patch49: perf-annotate-stdio-support-show-nr-samples-option.patch Patch50: perf-annotate-document-show-total-period-option.patch Patch51: perf-xyarray-save-max_x-max_y.patch Patch52: perf-evsel-fix-buffer-overflow-while-freeing-events.patch Patch53: perf-vendor-events-add-core-event-list-for-skylake-server.patch Patch54: perf-vendor-events-add-skylake-server-uncore-event-list.patch Patch55: perf-tools-add-support-for-printing-new-mem_info-encodings.patch Patch56: perf-test-add-test-cases-for-new-data-source-encoding.patch Patch57: perf-tools-really-install-manpages-via-make-install-man.patch Patch58: perf-probe-fix-kprobe-blacklist-checking-condition.patch Patch59: perf-symbols-Fix-plt-entry-calculation-for-ARM-and-A.patch Patch60: perf-test-powerpc-fix-object-code-reading-test.patch Patch61: perf-stat-Only-auto-merge-events-that-are-PMU-aliase.patch Patch62: perf-vendor-events-Support-metric_group-and-no-event.patch Patch63: perf-stat-Factor-out-generic-metric-printing.patch Patch64: perf-stat-Support-JSON-metrics-in-perf-stat.patch Patch65: perf-pmu-extract-function-to-get-json-alias-map.patch Patch66: perf-list-Add-metric-groups-to-perf-list.patch Patch67: perf-evsel-fix-attr-exclude_kernel-setting-for-default-cycles-p.patch Patch68: perf-pmu-Unbreak-perf-record-for-arm-arm64-with-even.patch Patch69: perf-mmap-move-perf_mmap-and-methods-to-separate-mmap-files.patch Patch70: perf-record-make-record__mmap_read-generic.patch Patch71: perf-mmap-adopt-push-method-from-builtin-record-c.patch Patch72: perf-vendor-events-add-goldmont-plus-v1-event-file.patch Patch73: perf-symbols-fix-memory-corruption-because-of-zero-length-symbols.patch Patch74: perf-vendor-events-update-power9-events-e795dd42.patch Patch75: perf-tests-set-evlist-of-test__sw_clock_freq-to-overwrite.patch Patch76: perf-tests-set-evlist-of-test__backward_ring_buffer-to-overwrite.patch Patch77: perf-tests-set-evlist-of-test__task_exit-to-overwrite.patch Patch78: perf-tests-set-evlist-of-test__basic_mmap-to-overwrite.patch Patch79: perf-help-fix-a-bug-during-strstart-conversion.patch Patch80: perf-c2c-fix-spelling-mistakes-in-browser-help-text.patch Patch81: perf-top-fix-window-dimensions-change-handling.patch Patch82: perf-tools-arm64-Add-support-for-get_cpuid_str-funct.patch Patch83: perf-pmu-Pass-pmu-as-a-parameter-to-get_cpuid_str.patch Patch84: perf-vendor-events-arm64-Add-ThunderX2-implementatio.patch Patch85: perf-pmu-add-helper-function-is_pmu_core-to-detect-pmu-core-devices.patch Patch86: perf-pmu-Add-check-for-valid-cpuid-in-perf_pmu__find.patch Patch87: perf-evlist-remove-overwrite-parameter-from-perf_evlist__mmap.patch Patch88: perf-evlist-remove-overwrite-parameter-from-perf_evlist__mmap_ex.patch Patch89: perf-evlist-remove-evlist-overwrite.patch Patch90: perf-mmap-remove-overwrite-from-arguments-list-of-perf_mmap__push.patch Patch91: perf-mmap-remove-overwrite-and-check_messup-from-mmap-read.patch Patch92: perf-vendor-events-use-more-flexible-pattern-matching-for-cpu-identification-for-mapfile-csv.patch Patch93: perf-mmap-fix-perf-backward-recording.patch Patch94: perf-mmap-don-t-discard-prev-in-backward-mode.patch Patch95: perf-tools-rename-backward-to-overwrite-in-evlist-mmap-and-record.patch Patch96: perf-probe-arm64-Fix-symbol-fixup-issues-due-to-ELF-.patch Patch97: perf-script-add-support-to-display-sample-misc-field.patch Patch98: perf-tools-Add-ARM-Statistical-Profiling-Extensions-.patch Patch99: perf-vendor-events-aarch64-Add-JSON-metrics-for-ARM-.patch Patch100: perf-evlist-remove-stale-mmap-read-for-backward.patch Patch101: perf-mmap-recalculate-size-for-overwrite-mode.patch Patch102: perf-mmap-cleanup-perf_mmap__push.patch Patch103: perf-mmap-introduce-perf_mmap__read_init.patch Patch104: perf-mmap-add-new-return-value-logic-for-perf_mmap__read_init.patch Patch105: perf-mmap-discard-prev-in-perf_mmap__read.patch Patch106: perf-mmap-introduce-perf_mmap__read_done.patch Patch107: perf-mmap-introduce-perf_mmap__read_event.patch Patch108: perf-test-update-mmap-read-functions-for-backward-ring-buffer-test.patch Patch109: perf-mmap-discard-legacy-interface-for-mmap-read.patch Patch110: perf-top-check-per-event-overwrite-term.patch Patch111: perf-evsel-expose-the-perf_missing_features-struct.patch Patch112: perf-top-add-overwrite-fall-back.patch Patch113: perf-hists-browser-add-parameter-to-disable-lost-event-warning.patch Patch114: perf-top-remove-lost-events-checking.patch Patch115: perf-top-switch-default-mode-to-overwrite-mode.patch Patch116: perf-top-check-the-latency-of-perf_top__mmap_read.patch Patch117: perf-auxtrace-arm-Fixing-uninitialised-variable.patch Patch118: perf-mem-document-a-missing-option.patch Patch119: perf-python-make-twatch-py-work-with-both-python2-and-python3.patch Patch120: perf-tools-add-python-3-support.patch Patch121: perf-top-fix-annoying-fallback-message-on-older-kernels.patch Patch122: perf-tools-arm64-Add-libdw-DWARF-post-unwind-support.patch Patch123: perf-vendor-events-Drop-incomplete-multiple-mapfile-.patch Patch124: perf-vendor-events-Fix-error-code-in-json_events.patch Patch125: perf-vendor-events-Drop-support-for-unused-topic-dir.patch Patch126: perf-vendor-events-Add-support-for-pmu-events-vendor.patch Patch127: perf-vendor-events-arm64-Relocate-ThunderX2-JSON-to-.patch Patch128: perf-vendor-events-arm64-Relocate-Cortex-A53-JSONs-t.patch Patch129: perf-vendor-events-Add-support-for-arch-standard-eve.patch Patch130: perf-vendor-events-arm64-Add-armv8-recommended.json.patch Patch131: perf-vendor-events-arm64-Fixup-ThunderX2-to-use-reco.patch Patch132: perf-vendor-events-arm64-fixup-A53-to-use-recommende.patch Patch133: perf-vendor-events-arm64-add-HiSilicon-hip08-JSON-fi.patch Patch134: perf-vendor-events-arm64-Enable-JSON-events-for-Thun.patch Patch135: perf-vendor-events-update-power9-events-9749adc3.patch Patch136: perf-tools-fix-python-extension-build-for-gcc-8.patch Patch137: perf-mmap-fix-accessing-unmapped-mmap-in-perf_mmap__read_done.patch Patch138: perf-mmap-be-consistent-when-checking-for-an-unmaped-ring-buffer.patch Patch139: perf-stat-enable-1ms-interval-for-printing-event-counters-values.patch Patch140: perf-tests-Run-dwarf-unwind-test-on-arm32.patch Patch141: perf-script-extend-misc-field-decoding-with-switch-out-event-type.patch Patch142: perf-report-extend-raw-dump-d-out-with-switch-out-event-type.patch Patch143: perf-mem-allow-all-record-report-options.patch Patch144: perf-mem-document-incorrect-and-missing-options.patch Patch145: perf-evsel-only-fall-back-group-read-for-leader.patch Patch146: perf-record-enable-arbitrary-event-names-thru-name-modifier.patch Patch147: perf-script-show-hw-cache-events.patch Patch148: perf-script-add-missing-output-fields-in-a-hint.patch Patch149: perf-scripts-python-add-python-3-support-to-util-py.patch Patch150: perf-scripts-python-add-python-3-support-to-sched-migration-py.patch Patch151: perf-scripts-python-add-python-3-support-to-schedgui-py.patch Patch152: perf-scripts-python-add-python-3-support-to-eventclass-py.patch Patch153: perf-scripts-python-add-python-3-support-to-core-py.patch Patch154: perf-arm64-Generate-system-call-table-from-asm-unist.patch Patch155: perf-c2c-report-fix-crash-for-empty-browser.patch Patch156: perf-vendor-events-arm64-Update-ThunderX2-implementa.patch Patch157: perf-vendor-events-arm64-Enable-JSON-events-for-eMAG.patch Patch158: perf-arm-spe-Fix-uninitialized-record-error-variable.patch Patch159: perf-python-remove-mcet-and-fcf-protection-when-building-with-clang.patch Patch160: perf-arm64-fix-include-path-for-asm-generic-unistd-h.patch Patch161: perf-probe-support-sdt-markers-having-reference-counter-semaphore.patch Patch162: perf-python-use-wno-redundant-decls-to-build-with-python-python3.patch Patch163: perf-python-make-clang_has_option-work-on-python-3.patch Patch164: perf-symbols-set-plt-entry-header-sizes-properly-on-sparc.patch Patch165: perf-arm64-fix-generate-system-call-table-failed-with-tmp-mounted-with-noexec.patch Patch166: perf-top-allow-disabling-the-overwrite-mode.patch Patch167: perf-top-do-not-use-overwrite-mode-by-default.patch Patch168: perf-python-do-not-force-closing-original-perf-descriptor-in-evlist-get_pollfd.patch Patch169: perf-script-fix-crash-with-printing-mixed-trace-point-and-other-events.patch Patch170: perf-tools-handle-topology-headers-with-no-cpu.patch Patch171: perf-script-fix-crash-when-processing-recorded-stat-data.patch Patch172: perf-script-python-use-pybytes-for-attr-in-trace-event-python.patch Patch173: perf-script-python-remove-explicit-shebang-from-tests-attr-c.patch Patch174: perf-script-python-remove-explicit-shebang-from-setup-py.patch Patch175: perf-script-python-remove-explicit-shebang-from-python-scripts.patch Patch176: perf-script-python-add-trace_context-extension-module-to-sys-modules.patch Patch177: perf-script-python-add-python3-support-to-tests-attr-py.patch Patch178: perf-mem-c2c-fix-perf_mem_events-to-support-powerpc.patch Patch179: perf-header-remove-unused-cpu_nr-field-from-struct-cpu_topo.patch Patch180: perf-header-fix-wrong-node-write-in-numa_topology-feature.patch Patch181: perf-tools-add-cpu_topology-object.patch Patch182: perf-tools-add-numa_topology-object.patch Patch183: perf-script-python-add-python3-support-to-netdev-times-py.patch Patch184: perf-script-python-add-python3-support-to-failed-syscalls-by-pid-py.patch Patch185: perf-script-python-add-python3-support-to-net_dropmonitor-py.patch Patch186: perf-script-python-add-python3-support-to-sctop-py.patch Patch187: perf-script-python-add-python3-support-to-stackcollapse-py.patch Patch188: perf-script-python-add-python3-support-to-stat-cpi-py.patch Patch189: perf-script-python-add-python3-support-to-syscall-counts-py.patch Patch190: perf-script-python-add-python3-support-to-syscall-counts-by-pid-py.patch Patch191: perf-script-python-remove-mixed-indentation.patch Patch192: perf-script-python-add-python3-support-to-futex-contention-py.patch Patch193: perf-script-python-add-python3-support-to-check-perf-trace-py.patch Patch194: perf-script-python-add-python3-support-to-event_analyzing_sample-py.patch Patch195: perf-c2c-fix-c2c-report-for-empty-numa-node.patch Patch196: perf-script-python-add-python3-support-to-exported-sql-viewer-py.patch Patch197: perf-script-python-add-python3-support-to-export-to-postgresql-py.patch Patch198: perf-script-python-add-printdate-function-to-sql-exporters.patch # maintainer branch patches Patch500: perf-c2c-fix-report-with-offline-cpus.patch # non upstream patches Patch1000: 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 %autopatch -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