commit perf for openSUSE:Factory

2020-10-02 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2020-10-02 17:37:26

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.4249 (New)


Package is "perf"

Fri Oct  2 17:37:26 2020 rev:55 rq:838951 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2020-09-22 
21:16:13.452194133 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.4249/perf.changes  2020-10-02 
17:37:40.578751965 +0200
@@ -1,0 +2,5 @@
+Thu Oct  1 10:22:13 UTC 2020 - Jiri Slaby 
+
+- add 0001-perf-fix-off-by-ones-in-memset-after-realloc.patch (bsc#1177113)
+
+---

New:

  0001-perf-fix-off-by-ones-in-memset-after-realloc.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.nZT2rE/_old  2020-10-02 17:37:41.358752430 +0200
+++ /var/tmp/diff_new_pack.nZT2rE/_new  2020-10-02 17:37:41.362752433 +0200
@@ -36,6 +36,7 @@
 License:GPL-2.0-only
 Group:  Development/Tools/Debuggers
 URL:https://perf.wiki.kernel.org/
+Patch0: 0001-perf-fix-off-by-ones-in-memset-after-realloc.patch
 BuildRequires:  OpenCSD-devel
 BuildRequires:  audit-devel
 %ifnarch %{arm}

++ 0001-perf-fix-off-by-ones-in-memset-after-realloc.patch ++
From: Jiri Slaby 
Date: Thu, 1 Oct 2020 08:18:30 +0200
Subject: perf: fix off by ones in memset after realloc
Patch-mainline: submitted 2020/10/01
References: bsc#1177113

'perf trace ls' started crashing after commit d21cb73a9025 on
!HAVE_SYSCALL_TABLE_SUPPORT configs (armv7l here) like this:
0  strlen () at ../sysdeps/arm/armv6t2/strlen.S:126
1  0xb6800780 in __vfprintf_internal (s=0xbeff9908, s@entry=0xbeff9900, 
format=0xa27160 "]: %s()", ap=..., mode_flags=) at 
vfprintf-internal.c:1688
...
5  0x0056ecdc in fprintf (__fmt=0xa27160 "]: %s()", __stream=) 
at /usr/include/bits/stdio2.h:100
6  trace__sys_exit (trace=trace@entry=0xbeffc710, evsel=evsel@entry=0xd968d0, 
event=, sample=sample@entry=0xbeffc3e8) at builtin-trace.c:2475
7  0x00566d40 in trace__handle_event (sample=0xbeffc3e8, event=, 
trace=0xbeffc710) at builtin-trace.c:3122
...
15 main (argc=2, argv=0xbefff6e8) at perf.c:538

It is because memset in trace__read_syscall_info zeroes wrong memory:
1) when initializing for the first time, it does not reset the last id.
2) in other cases, it resets the last id of previous buffer.

ad 1) it causes the crash above as sc->name used in the fprintf above
  contains garbage.

ad 2) it sets nonexistent from true back to false for id 11 here. Not
  sure, what the consequences are.

So fix it by introducing a special case for the initial initialization
and do the right +1 in both cases.

Signed-off-by: Jiri Slaby 
Fixes: d21cb73a9025 ("perf trace: Grow the syscall table as needed when using 
libaudit")
Cc: Adrian Hunter 
Cc: Ingo Molnar 
Cc: Jiri Olsa 
Cc: Namhyung Kim 
Cc: Arnaldo Carvalho de Melo 
Cc: Peter Zijlstra 
Cc: Ingo Molnar 
---
 tools/perf/builtin-trace.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index bea461b6f937..44a75f234db1 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -1762,7 +1762,11 @@ static int trace__read_syscall_info(struct trace *trace, 
int id)
if (table == NULL)
return -ENOMEM;
 
-   memset(table + trace->sctbl->syscalls.max_id, 0, (id - 
trace->sctbl->syscalls.max_id) * sizeof(*sc));
+   // Need to memset from offset 0 and +1 members if brand new
+   if (trace->syscalls.table == NULL)
+   memset(table, 0, (id + 1) * sizeof(*sc));
+   else
+   memset(table + trace->sctbl->syscalls.max_id + 1, 0, 
(id - trace->sctbl->syscalls.max_id) * sizeof(*sc));
 
trace->syscalls.table = table;
trace->sctbl->syscalls.max_id = id;
-- 
2.28.0




commit perf for openSUSE:Factory

2020-09-22 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2020-09-22 21:15:07

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.4249 (New)


Package is "perf"

Tue Sep 22 21:15:07 2020 rev:54 rq:836067 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2020-08-01 
12:32:58.798567974 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.4249/perf.changes  2020-09-22 
21:16:13.452194133 +0200
@@ -1,0 +2,11 @@
+Tue Sep 22 06:39:52 UTC 2020 - Jiri Slaby 
+
+- remove 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
+  It's a 5.8 patch and we are already at 5.8.
+- do not use libexecdir after the latest TW changes
+- install bash completion to /usr, not /etc as is now the default
+- require libcap, so that we support capabilities
+- require babeltrace, so that we support conversion to CTF
+- clean up spec file
+
+---

Old:

  
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.ZzC0tp/_old  2020-09-22 21:16:18.092198193 +0200
+++ /var/tmp/diff_new_pack.ZzC0tp/_new  2020-09-22 21:16:18.096198196 +0200
@@ -16,6 +16,10 @@
 #
 
 
+# a bug in dwz leaves temporary trace-*.debug.#dwz#.* on 64 bits in place
+# remove this once fixed, see:
+# https://sourceware.org/bugzilla/show_bug.cgi?id=26645
+%define _find_debuginfo_dwz_opts %{nil}
 # perf does not link with LTO
 %define _lto_cflags %{nil}
 %define version %(rpm -q --qf '%%{VERSION}' kernel-source)
@@ -32,14 +36,17 @@
 License:GPL-2.0-only
 Group:  Development/Tools/Debuggers
 URL:https://perf.wiki.kernel.org/
-Patch1: 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
 BuildRequires:  OpenCSD-devel
 BuildRequires:  audit-devel
+%ifnarch %{arm}
+BuildRequires:  babeltrace-devel
+%endif
 BuildRequires:  binutils-devel
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  gtk2-devel
 BuildRequires:  kernel-source >= 2.6.31
+BuildRequires:  libcap-devel
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
 BuildRequires:  libzstd-devel
@@ -77,19 +84,39 @@
 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=%{_prefix} libdir=%{_libdir} 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind} 
tipdir=share/doc/packages/perf USE_ASCIIDOCTOR=1 CORESIGHT=1
+make %{?_smp_mflags} -f Makefile.perf PYTHON=python3 \
+   EXTRA_CFLAGS="%{optflags}" \
+   ASCIIDOC8=1 USE_ASCIIDOCTOR=1 CORESIGHT=1 \
+   prefix=%{_prefix} \
+   libdir=%{_libdir} \
+   perfexecdir=lib/%{name}-core \
+   tipdir=share/doc/packages/perf \
+   %{_perf_unwind} \
+   all doc
 
 %install
 cd tools/perf
 export WERROR=0
-make -f Makefile.perf V=1 PYTHON=python3 EXTRA_CFLAGS="%{optflags}" 
prefix=%{_prefix} libdir=%{_libdir} perfexecdir=lib/%{name}-core 
DESTDIR=%{buildroot} install install-doc %{_perf_unwind} 
tipdir=share/doc/packages/perf USE_ASCIIDOCTOR=1 CORESIGHT=1
+make -f Makefile.perf V=1 PYTHON=python3 EXTRA_CFLAGS="%{optflags}" \
+   ASCIIDOC8=1 USE_ASCIIDOCTOR=1 CORESIGHT=1 \
+   prefix=%{_prefix} \
+   libdir=%{_libdir} \
+   perfexecdir=lib/%{name}-core \
+   tipdir=share/doc/packages/perf \
+   DESTDIR=%{buildroot} \
+   %{_perf_unwind} \
+   install install-doc
+
 mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
 mv %{buildroot}%{_prefix}/lib/perf/include/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 mv %{buildroot}%{_prefix}/lib/perf/examples/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 
+mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
+mv %{buildroot}%{_sysconfdir}/bash_completion.d/perf 
%{buildroot}%{_datadir}/bash-completion/completions/
+
 %files
-%defattr(-, root, root)
-%attr(0644, root, root) %doc COPYING CREDITS README tools/perf/design.txt
+%license COPYING
+%doc CREDITS README tools/perf/design.txt
 %if 0%{?suse_version} > 1315
 %attr(0644, root, root) %doc %{_docdir}/perf/tips.txt
 %endif
@@ -101,11 +128,10 @@
 %dir %{_libdir}/traceevent/plugins
 %{_libdir}/traceevent/plugins/plugin_*.so
 %endif
-%attr(0644, -, -) %{_sysconfdir}/bash_completion.d/perf
-%{_libexecdir}/%{name}-core
-%{_datarootdir}/%{name}-core
+%{_prefix}/lib/%{name}-core
+%{_datadir}/bash-completion/completions/perf
+%{_datadir}/%{name}-core
 %{_mandir}/man1/perf*
-%dir %{_docdir}/perf
 %dir %{_docdir}/perf/examples
 %dir 

commit perf for openSUSE:Factory

2020-08-01 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2020-08-01 12:32:34

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.3592 (New)


Package is "perf"

Sat Aug  1 12:32:34 2020 rev:53 rq:823766 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2020-07-24 
10:04:38.893888255 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.3592/perf.changes  2020-08-01 
12:32:58.798567974 +0200
@@ -1,0 +2,6 @@
+Fri Jul 31 07:08:56 UTC 2020 - Michel Normand 
+
+- Remove libebl Requires for ppc64/ppc64le (boo#1174714)
+  now that elfutils 0.178 do not generate it anymore.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.V206cW/_old  2020-08-01 12:33:05.586577074 +0200
+++ /var/tmp/diff_new_pack.V206cW/_new  2020-08-01 12:33:05.590577079 +0200
@@ -55,10 +55,6 @@
 %ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc
 BuildRequires:  libnuma-devel
 %endif
-# dl_open requirement so not autodetected
-%ifarch ppc64 ppc64le
-Requires:   libebl
-%endif
 
 %description
 This package provides a userspace tool 'perf', which monitors performance for




commit perf for openSUSE:Factory

2020-07-24 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2020-07-24 10:02:40

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.3592 (New)


Package is "perf"

Fri Jul 24 10:02:40 2020 rev:52 rq:822275 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2020-06-12 
21:47:30.577007245 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.3592/perf.changes  2020-07-24 
10:04:38.893888255 +0200
@@ -1,0 +2,10 @@
+Wed Jul 22 07:09:35 UTC 2020 - Mian Yousaf Kaukab 
+
+- Link with CoreSight Trace Decode library (OpenCSD)
+
+---
+Wed Jul 22 07:06:47 UTC 2020 - Mian Yousaf Kaukab 
+
+- perf.spec: incorporate automatic changes from osc 
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.FlUoPM/_old  2020-07-24 10:04:40.361889376 +0200
+++ /var/tmp/diff_new_pack.FlUoPM/_new  2020-07-24 10:04:40.365889380 +0200
@@ -18,15 +18,22 @@
 
 # perf does not link with LTO
 %define _lto_cflags %{nil}
-
-Name:   perf
 %define version %(rpm -q --qf '%%{VERSION}' kernel-source)
+%ifarch s390x s390
+%define _perf_unwind NO_LIBUNWIND=1
+%else
+%define _perf_unwind %{nil}
+BuildRequires:  libunwind-devel
+%endif
+Name:   perf
 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/
+Patch1: 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
+BuildRequires:  OpenCSD-devel
 BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
 BuildRequires:  bison
@@ -36,32 +43,22 @@
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
 BuildRequires:  libzstd-devel
+BuildRequires:  newt-devel
+BuildRequires:  openssl-devel
+BuildRequires:  python3-devel
 BuildRequires:  xz-devel
+BuildRequires:  zlib-devel
 BuildRequires:  rubygem(asciidoctor)
+Requires:   kernel >= 2.6.31
+%{perl_requires}
+%{?libperl_requires}
 %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:  python3-devel
-BuildRequires:  zlib-devel
 # dl_open requirement so not autodetected
 %ifarch ppc64 ppc64le
 Requires:   libebl
 %endif
-%{perl_requires}
-%{?libperl_requires}
-
-Requires:   kernel >= 2.6.31
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
-Patch1: 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
 
 %description
 This package provides a userspace tool 'perf', which monitors performance for
@@ -72,7 +69,7 @@
 
 %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 - 
+(cd %{_prefix}/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
 
 # don't error out on deprecated definitions in gtk2.h
@@ -84,15 +81,15 @@
 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 USE_ASCIIDOCTOR=1
+make %{?_smp_mflags} -f Makefile.perf PYTHON=python3 
EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 prefix=%{_prefix} libdir=%{_libdir} 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind} 
tipdir=share/doc/packages/perf USE_ASCIIDOCTOR=1 CORESIGHT=1
 
 %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 
USE_ASCIIDOCTOR=1
+make -f Makefile.perf V=1 PYTHON=python3 EXTRA_CFLAGS="%{optflags}" 
prefix=%{_prefix} libdir=%{_libdir} perfexecdir=lib/%{name}-core 
DESTDIR=%{buildroot} install install-doc %{_perf_unwind} 
tipdir=share/doc/packages/perf USE_ASCIIDOCTOR=1 CORESIGHT=1
 mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
-mv %{buildroot}/usr/lib/perf/include/bpf/* 

commit perf for openSUSE:Factory

2020-06-12 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2020-06-12 21:46:35

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.3606 (New)


Package is "perf"

Fri Jun 12 21:46:35 2020 rev:51 rq:814204 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2019-10-31 
22:21:49.440039298 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new.3606/perf.changes  2020-06-12 
21:47:30.577007245 +0200
@@ -1,0 +2,6 @@
+Fri Jun 12 17:02:10 UTC 2020 - Tony Jones 
+
+- Fix build breakage on aarch64 and armv7 (bsc#1172741)
+  New patch: 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
+
+---

New:

  
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.G1rNPX/_old  2020-06-12 21:47:32.257016752 +0200
+++ /var/tmp/diff_new_pack.G1rNPX/_new  2020-06-12 21:47:32.261016775 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
 Summary:Performance Monitoring Tools for Linux
 License:GPL-2.0-only
 Group:  Development/Tools/Debuggers
-Url:https://perf.wiki.kernel.org/
+URL:https://perf.wiki.kernel.org/
 BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
 BuildRequires:  bison
@@ -61,6 +61,8 @@
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
+Patch1: 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
+
 %description
 This package provides a userspace tool 'perf', which monitors performance for
 either unmodified binaries or the entire system. It requires a Linux kernel
@@ -76,6 +78,8 @@
 # don't error out on deprecated definitions in gtk2.h
 sed -i 's@ignored "-Wstrict-prototypes"@&\n#pragma GCC diagnostic ignored 
"-Wdeprecated-declarations"@' tools/build/feature/test-gtk2.c
 
+%autopatch -p1
+
 %build
 cd tools/perf
 export WERROR=0

++ 
perf-cs-etm-move-definition-of-traceid_list-global-variable-from-header-file.patch
 ++
From: Leo Yan 
Date: Tue, 5 May 2020 21:36:42 +0800
Subject: perf cs-etm: Move definition of 'traceid_list' global variable from
 header file
Git-commit: 168200b6d6ea0cb5765943ec5da5b8149701f36a
Patch-mainline: v5.8-rc1
References: bsc#1172741

The variable 'traceid_list' is defined in the header file cs-etm.h,
if multiple C files include cs-etm.h the compiler might complaint for
multiple definition of 'traceid_list'.

To fix multiple definition error, move the definition of 'traceid_list'
into cs-etm.c.

Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata")
Reported-by: Thomas Backlund 
Signed-off-by: Leo Yan 
Reviewed-by: Mathieu Poirier 
Reviewed-by: Mike Leach 
Tested-by: Mike Leach 
Tested-by: Thomas Backlund 
Cc: Alexander Shishkin 
Cc: Jiri Olsa 
Cc: Mark Rutland 
Cc: Namhyung Kim 
Cc: Peter Zijlstra 
Cc: Suzuki Poulouse 
Cc: Tor Jeremiassen 
Cc: linux-arm-ker...@lists.infradead.org
Link: http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo 
Signed-off-by: Tony Jones 
---
 tools/perf/util/cs-etm.c | 3 +++
 tools/perf/util/cs-etm.h | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index 3c802fde4954..c283223fb31f 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -94,6 +94,9 @@ struct cs_etm_queue {
struct cs_etm_traceid_queue **traceid_queues;
 };
 
+/* RB tree for quick conversion between traceID and metadata pointers */
+static struct intlist *traceid_list;
+
 static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
 static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
 static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
index 650ecc2a6349..4ad925d6d799 100644
--- a/tools/perf/util/cs-etm.h
+++ b/tools/perf/util/cs-etm.h
@@ -114,9 +114,6 @@ enum cs_etm_isa {
CS_ETM_ISA_T32,
 };
 
-/* RB tree for quick conversion between traceID and metadata pointers */
-struct intlist *traceid_list;
-
 struct cs_etm_queue;
 
 struct cs_etm_packet {




commit perf for openSUSE:Factory

2019-10-31 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2019-10-31 22:21:48

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.2990 (New)


Package is "perf"

Thu Oct 31 22:21:48 2019 rev:50 rq:744273 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2019-06-14 
20:43:22.574293560 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.2990/perf.changes  2019-10-31 
22:21:49.440039298 +0100
@@ -1,0 +2,7 @@
+Wed Oct 30 13:41:51 UTC 2019 - Jiri Slaby 
+
+- perf does not link with LTO, so define _lto_cflags %{nil}
+- add libzstd-devel to BuildRequires to support trace compression
+- fix gtk2 detection
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.Vq2JAg/_old  2019-10-31 22:21:50.288040441 +0100
+++ /var/tmp/diff_new_pack.Vq2JAg/_new  2019-10-31 22:21:50.296040451 +0100
@@ -16,6 +16,9 @@
 #
 
 
+# perf does not link with LTO
+%define _lto_cflags %{nil}
+
 Name:   perf
 %define version %(rpm -q --qf '%%{VERSION}' kernel-source)
 Version:%{version}
@@ -32,6 +35,7 @@
 BuildRequires:  kernel-source >= 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
+BuildRequires:  libzstd-devel
 BuildRequires:  xz-devel
 BuildRequires:  rubygem(asciidoctor)
 %ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc
@@ -69,6 +73,9 @@
 (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
 
+# don't error out on deprecated definitions in gtk2.h
+sed -i 's@ignored "-Wstrict-prototypes"@&\n#pragma GCC diagnostic ignored 
"-Wdeprecated-declarations"@' tools/build/feature/test-gtk2.c
+
 %build
 cd tools/perf
 export WERROR=0




commit perf for openSUSE:Factory

2019-06-14 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2019-06-14 20:43:21

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.4811 (New)


Package is "perf"

Fri Jun 14 20:43:21 2019 rev:49 rq:710019 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2019-01-21 
10:59:37.299332173 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new.4811/perf.changes  2019-06-14 
20:43:22.574293560 +0200
@@ -1,0 +2,28 @@
+Fri Jun 14 16:30:32 UTC 2019 - Tony Jones 
+
+- Update to latest perf
+  Delete Python3 support patches now upstream
+
+  Delete patch: update-tests-attr.py-to-support-python3.patch
+  Delete patch: remove-shebang-from-scripts-python.patch
+  Delete patch: remove-shebang-from-tests-attr.py.patch
+  Delete patch: remove-shebang-from-util-setup.py.patch
+  Delete patch: add-trace_context-extension-module-to-sys-modules.patch
+  Delete patch: use-pybytes-for-attr-in-trace-event-python.patch
+  Delete patch: port-event_analyzing_sample-script-to-python3.patch
+  Delete patch: port-failed-syscalls-by-pid-script-to-python3.patch
+  Delete patch: port-futex-contention-script-to-python3.patch
+  Delete patch: port-intel-pt-events-script-to-python3.patch
+  Delete patch: port-mem-phys-addr-to-python3.patch
+  Delete patch: port-netdev-times-script-to-python3.patch
+  Delete patch: port-net_dropmonitor-script-to-python3.patch
+  Delete patch: port-powerpc-hcalls-script-to-python3.patch
+  Delete patch: port-python-syscall-counts-script-to-python3.patch
+  Delete patch: port-sctop-script-to-python3.patch
+  Delete patch: port-sql-scripts-to-python3.patch
+  Delete patch: port-stackcollapse-script-to-python3.patch
+  Delete patch: port-stat-cpi-script-to-python3.patch
+  Delete patch: port-syscall-counts-by-pid-script-to-python3.patch
+  Delete patch: port-check-perf-trace-script-to-python3.patch
+
+---

Old:

  add-trace_context-extension-module-to-sys-modules.patch
  port-check-perf-trace-script-to-python3.patch
  port-event_analyzing_sample-script-to-python3.patch
  port-failed-syscalls-by-pid-script-to-python3.patch
  port-futex-contention-script-to-python3.patch
  port-intel-pt-events-script-to-python3.patch
  port-mem-phys-addr-to-python3.patch
  port-net_dropmonitor-script-to-python3.patch
  port-netdev-times-script-to-python3.patch
  port-powerpc-hcalls-script-to-python3.patch
  port-python-syscall-counts-script-to-python3.patch
  port-sctop-script-to-python3.patch
  port-sql-scripts-to-python3.patch
  port-stackcollapse-script-to-python3.patch
  port-stat-cpi-script-to-python3.patch
  port-syscall-counts-by-pid-script-to-python3.patch
  remove-shebang-from-scripts-python.patch
  remove-shebang-from-tests-attr.py.patch
  remove-shebang-from-util-setup.py.patch
  update-tests-attr.py-to-support-python3.patch
  use-pybytes-for-attr-in-trace-event-python.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.1Z5PeT/_old  2019-06-14 20:43:23.358292231 +0200
+++ /var/tmp/diff_new_pack.1Z5PeT/_new  2019-06-14 20:43:23.358292231 +0200
@@ -57,28 +57,6 @@
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
-Patch1: update-tests-attr.py-to-support-python3.patch
-Patch2: remove-shebang-from-scripts-python.patch
-Patch3: remove-shebang-from-tests-attr.py.patch
-Patch4: remove-shebang-from-util-setup.py.patch
-Patch5: add-trace_context-extension-module-to-sys-modules.patch
-Patch6: use-pybytes-for-attr-in-trace-event-python.patch
-Patch7: port-event_analyzing_sample-script-to-python3.patch
-Patch8: port-failed-syscalls-by-pid-script-to-python3.patch
-Patch9: port-futex-contention-script-to-python3.patch
-Patch10:port-intel-pt-events-script-to-python3.patch
-Patch11:port-mem-phys-addr-to-python3.patch
-Patch12:port-netdev-times-script-to-python3.patch
-Patch13:port-net_dropmonitor-script-to-python3.patch
-Patch14:port-powerpc-hcalls-script-to-python3.patch
-Patch15:port-python-syscall-counts-script-to-python3.patch
-Patch16:port-sctop-script-to-python3.patch
-Patch17:port-sql-scripts-to-python3.patch
-Patch18:port-stackcollapse-script-to-python3.patch
-Patch19:port-stat-cpi-script-to-python3.patch
-Patch20:port-syscall-counts-by-pid-script-to-python3.patch
-Patch21:port-check-perf-trace-script-to-python3.patch
-
 %description
 This package provides a userspace tool 'perf', which monitors performance for
 either unmodified binaries or the entire system. It requires a Linux 

commit perf for openSUSE:Factory

2019-01-21 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2019-01-21 10:58:29

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.28833 (New)


Package is "perf"

Mon Jan 21 10:58:29 2019 rev:48 rq:666531 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2019-01-11 
14:06:51.547717337 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new.28833/perf.changes 2019-01-21 
10:59:37.299332173 +0100
@@ -1,0 +2,5 @@
+Wed Jan 16 08:48:49 CET 2019 - ti...@suse.de
+
+- Build with asciidoctor instead of asciidoc (bsc#1075764)
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.vhGzPi/_old  2019-01-21 10:59:37.927331357 +0100
+++ /var/tmp/diff_new_pack.vhGzPi/_new  2019-01-21 10:59:37.931331352 +0100
@@ -24,7 +24,6 @@
 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
@@ -34,6 +33,7 @@
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
 BuildRequires:  xz-devel
+BuildRequires:  rubygem(asciidoctor)
 %ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc
 BuildRequires:  libnuma-devel
 %endif
@@ -46,7 +46,6 @@
 BuildRequires:  newt-devel
 BuildRequires:  openssl-devel
 BuildRequires:  python3-devel
-BuildRequires:  xmlto
 BuildRequires:  zlib-devel
 # dl_open requirement so not autodetected
 %ifarch ppc64 ppc64le
@@ -117,12 +116,12 @@
 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
+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 USE_ASCIIDOCTOR=1
 
 %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
+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 
USE_ASCIIDOCTOR=1
 mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
 mv %{buildroot}/usr/lib/perf/include/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 mv %{buildroot}/usr/lib/perf/examples/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf




commit perf for openSUSE:Factory

2019-01-11 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2019-01-11 14:06:01

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.28833 (New)


Package is "perf"

Fri Jan 11 14:06:01 2019 rev:47 rq:664472 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2018-12-13 
19:49:30.576618332 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new.28833/perf.changes 2019-01-11 
14:06:51.547717337 +0100
@@ -1,0 +2,27 @@
+Fri Jan 11 00:55:17 UTC 2019 - Tony Jones 
+
+- Enable python3. Remove all uses of python2 (bsc#1082197)
+
+  New patch: update-tests-attr.py-to-support-python3.patch
+  New patch: remove-shebang-from-scripts-python.patch
+  New patch: remove-shebang-from-tests-attr.py.patch
+  New patch: remove-shebang-from-util-setup.py.patch
+  New patch: add-trace_context-extension-module-to-sys-modules.patch
+  New patch: use-pybytes-for-attr-in-trace-event-python.patch
+  New patch: port-event_analyzing_sample-script-to-python3.patch
+  New patch: port-failed-syscalls-by-pid-script-to-python3.patch
+  New patch: port-futex-contention-script-to-python3.patch
+  New patch: port-intel-pt-events-script-to-python3.patch
+  New patch: port-mem-phys-addr-to-python3.patch
+  New patch: port-netdev-times-script-to-python3.patch
+  New patch: port-net_dropmonitor-script-to-python3.patch
+  New patch: port-powerpc-hcalls-script-to-python3.patch
+  New patch: port-python-syscall-counts-script-to-python3.patch
+  New patch: port-sctop-script-to-python3.patch
+  New patch: port-sql-scripts-to-python3.patch
+  New patch: port-stackcollapse-script-to-python3.patch
+  New patch: port-stat-cpi-script-to-python3.patch
+  New patch: port-syscall-counts-by-pid-script-to-python3.patch
+  New patch: port-check-perf-trace-script-to-python3.patch
+
+---

New:

  add-trace_context-extension-module-to-sys-modules.patch
  port-check-perf-trace-script-to-python3.patch
  port-event_analyzing_sample-script-to-python3.patch
  port-failed-syscalls-by-pid-script-to-python3.patch
  port-futex-contention-script-to-python3.patch
  port-intel-pt-events-script-to-python3.patch
  port-mem-phys-addr-to-python3.patch
  port-net_dropmonitor-script-to-python3.patch
  port-netdev-times-script-to-python3.patch
  port-powerpc-hcalls-script-to-python3.patch
  port-python-syscall-counts-script-to-python3.patch
  port-sctop-script-to-python3.patch
  port-sql-scripts-to-python3.patch
  port-stackcollapse-script-to-python3.patch
  port-stat-cpi-script-to-python3.patch
  port-syscall-counts-by-pid-script-to-python3.patch
  remove-shebang-from-scripts-python.patch
  remove-shebang-from-tests-attr.py.patch
  remove-shebang-from-util-setup.py.patch
  update-tests-attr.py-to-support-python3.patch
  use-pybytes-for-attr-in-trace-event-python.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.uRWCoN/_old  2019-01-11 14:06:52.435716445 +0100
+++ /var/tmp/diff_new_pack.uRWCoN/_new  2019-01-11 14:06:52.435716445 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -45,6 +45,7 @@
 %endif
 BuildRequires:  newt-devel
 BuildRequires:  openssl-devel
+BuildRequires:  python3-devel
 BuildRequires:  xmlto
 BuildRequires:  zlib-devel
 # dl_open requirement so not autodetected
@@ -57,6 +58,28 @@
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
+Patch1: update-tests-attr.py-to-support-python3.patch
+Patch2: remove-shebang-from-scripts-python.patch
+Patch3: remove-shebang-from-tests-attr.py.patch
+Patch4: remove-shebang-from-util-setup.py.patch
+Patch5: add-trace_context-extension-module-to-sys-modules.patch
+Patch6: use-pybytes-for-attr-in-trace-event-python.patch
+Patch7: port-event_analyzing_sample-script-to-python3.patch
+Patch8: port-failed-syscalls-by-pid-script-to-python3.patch
+Patch9: port-futex-contention-script-to-python3.patch
+Patch10:port-intel-pt-events-script-to-python3.patch
+Patch11:port-mem-phys-addr-to-python3.patch
+Patch12:port-netdev-times-script-to-python3.patch
+Patch13:port-net_dropmonitor-script-to-python3.patch
+Patch14:port-powerpc-hcalls-script-to-python3.patch
+Patch15:port-python-syscall-counts-script-to-python3.patch
+Patch16:port-sctop-script-to-python3.patch

commit perf for openSUSE:Factory

2018-12-13 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2018-12-13 19:49:27

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new.28833 (New)


Package is "perf"

Thu Dec 13 19:49:27 2018 rev:46 rq:657723 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2018-10-18 
15:38:30.410149140 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new.28833/perf.changes 2018-12-13 
19:49:30.576618332 +0100
@@ -1,0 +2,5 @@
+Wed Dec 12 22:11:49 UTC 2018 - Tony Jones 
+
+- Update packaged include files to resolve build failures
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.hX9TPD/_old  2018-12-13 19:49:31.184617547 +0100
+++ /var/tmp/diff_new_pack.hX9TPD/_new  2018-12-13 19:49:31.184617547 +0100
@@ -80,7 +80,7 @@
 export WERROR=0
 make -f Makefile.perf V=1 EXTRA_CFLAGS="%{optflags}" prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install 
install-doc %{_perf_unwind} tipdir=share/doc/packages/perf
 mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
-mv %{buildroot}/usr/lib//perf/include/bpf/bpf.h 
%{buildroot}/%{_docdir}/perf/examples/bpf
+mv %{buildroot}/usr/lib/perf/include/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 mv %{buildroot}/usr/lib/perf/examples/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 
 %files




commit perf for openSUSE:Factory

2018-10-18 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2018-10-18 15:38:26

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Thu Oct 18 15:38:26 2018 rev:45 rq:642717 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2018-08-28 
09:25:10.088963537 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2018-10-18 
15:38:30.410149140 +0200
@@ -1,0 +2,5 @@
+Tue Oct 16 22:51:15 UTC 2018 - Tony Jones 
+
+- Update examples paths to resolve build failures.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.gtEWMh/_old  2018-10-18 15:38:31.294148132 +0200
+++ /var/tmp/diff_new_pack.gtEWMh/_new  2018-10-18 15:38:31.294148132 +0200
@@ -12,7 +12,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -80,8 +80,8 @@
 export WERROR=0
 make -f Makefile.perf V=1 EXTRA_CFLAGS="%{optflags}" prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install 
install-doc %{_perf_unwind} tipdir=share/doc/packages/perf
 mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
-mv %{buildroot}/usr/lib/include/perf/bpf/bpf.h 
%{buildroot}/%{_docdir}/perf/examples/bpf
-mv %{buildroot}/usr/lib/examples/perf/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
+mv %{buildroot}/usr/lib//perf/include/bpf/bpf.h 
%{buildroot}/%{_docdir}/perf/examples/bpf
+mv %{buildroot}/usr/lib/perf/examples/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 
 %files
 %defattr(-, root, root)




commit perf for openSUSE:Factory

2018-08-28 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2018-08-28 09:25:03

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Tue Aug 28 09:25:03 2018 rev:44 rq:631855 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2018-08-27 
12:59:12.584807049 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2018-08-28 
09:25:10.088963537 +0200
@@ -1,0 +2,7 @@
+Mon Aug 27 19:43:01 UTC 2018 - to...@suse.com
+
+- libebl ppc64 dependancy was inadvertantly dropped, regression from
+  "Thu Jun 15 22:27:56 - Add ppc64 requires on libebl (bsc#1040770)".
+  Re-add dependancy (bsc#1106048)
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.OOQsFl/_old  2018-08-28 09:25:10.612965172 +0200
+++ /var/tmp/diff_new_pack.OOQsFl/_new  2018-08-28 09:25:10.612965172 +0200
@@ -47,6 +47,10 @@
 BuildRequires:  openssl-devel
 BuildRequires:  xmlto
 BuildRequires:  zlib-devel
+# dl_open requirement so not autodetected
+%ifarch ppc64 ppc64le
+Requires:   libebl
+%endif
 %{perl_requires}
 %{?libperl_requires}
 




commit perf for openSUSE:Factory

2018-08-27 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2018-08-27 12:59:06

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Mon Aug 27 12:59:06 2018 rev:43 rq:631427 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2018-04-27 
16:09:30.373886083 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2018-08-27 
12:59:12.584807049 +0200
@@ -1,0 +2,5 @@
+Fri Aug 24 19:39:55 UTC 2018 - to...@suse.com
+
+- Package bpf examples into %{_docdir}/perf/examples/bpf
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.PXNR3r/_old  2018-08-27 12:59:13.196807717 +0200
+++ /var/tmp/diff_new_pack.PXNR3r/_new  2018-08-27 12:59:13.204807726 +0200
@@ -75,6 +75,9 @@
 cd tools/perf
 export WERROR=0
 make -f Makefile.perf V=1 EXTRA_CFLAGS="%{optflags}" prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install 
install-doc %{_perf_unwind} tipdir=share/doc/packages/perf
+mkdir -p %{buildroot}/%{_docdir}/perf/examples/bpf
+mv %{buildroot}/usr/lib/include/perf/bpf/bpf.h 
%{buildroot}/%{_docdir}/perf/examples/bpf
+mv %{buildroot}/usr/lib/examples/perf/bpf/* 
%{buildroot}/%{_docdir}/perf/examples/bpf
 
 %files
 %defattr(-, root, root)
@@ -94,5 +97,9 @@
 %{_libexecdir}/%{name}-core
 %{_datarootdir}/%{name}-core
 %{_mandir}/man1/perf*
+%dir %{_docdir}/perf
+%dir %{_docdir}/perf/examples
+%dir %{_docdir}/perf/examples/bpf
+%{_docdir}/perf/examples/bpf/*
 
 %changelog




commit perf for openSUSE:Factory

2018-04-27 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2018-04-27 16:09:30

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Fri Apr 27 16:09:30 2018 rev:42 rq:601689 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2017-12-08 
13:01:21.565079420 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2018-04-27 
16:09:30.373886083 +0200
@@ -1,0 +2,7 @@
+Thu Apr 26 19:36:51 UTC 2018 - to...@suse.com
+
+- Fix build errors
+  Drop patch: perf-vendor-events-powerpc-update-power9-events.patch (upstream)
+  Drop patch: perf-provide-definition-for-einval-on-32bit.patch (upstream)
+
+---

Old:

  perf-provide-definition-for-einval-on-32bit.patch
  perf-vendor-events-powerpc-update-power9-events.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.3YbIz0/_old  2018-04-27 16:09:31.125858504 +0200
+++ /var/tmp/diff_new_pack.3YbIz0/_new  2018-04-27 16:09:31.129858358 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -21,7 +21,7 @@
 Version:%{version}
 Release:0
 Summary:Performance Monitoring Tools for Linux
-License:GPL-2.0
+License:GPL-2.0-only
 Group:  Development/Tools/Debuggers
 Url:https://perf.wiki.kernel.org/
 BuildRequires:  asciidoc
@@ -49,8 +49,6 @@
 BuildRequires:  zlib-devel
 %{perl_requires}
 %{?libperl_requires}
-Patch1: perf-provide-definition-for-einval-on-32bit.patch
-Patch2: perf-vendor-events-powerpc-update-power9-events.patch
 
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -66,8 +64,6 @@
 # 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
 
 %build
 cd tools/perf




commit perf for openSUSE:Factory

2017-12-08 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2017-12-08 13:01:06

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Fri Dec  8 13:01:06 2017 rev:41 rq:555026 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2017-12-06 
08:59:24.723177742 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2017-12-08 
13:01:21.565079420 +0100
@@ -1,0 +2,6 @@
+Thu Dec  7 11:15:39 UTC 2017 - dims...@opensuse.org
+
+- Escape the usage of %{VERSION} when calling out to rpm.
+  RPM 4.14 has %{VERSION} defined as 'the main packages version'.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.kA5laK/_old  2017-12-08 13:01:22.461047062 +0100
+++ /var/tmp/diff_new_pack.kA5laK/_new  2017-12-08 13:01:22.461047062 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   perf
-%define version %(rpm -q --qf '%{VERSION}' kernel-source)
+%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
 Version:%{version}
 Release:0
 Summary:Performance Monitoring Tools for Linux




commit perf for openSUSE:Factory

2017-12-05 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2017-12-06 08:59:23

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Wed Dec  6 08:59:23 2017 rev:40 rq:548440 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2017-09-17 
22:38:29.219319927 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2017-12-06 
08:59:24.723177742 +0100
@@ -1,0 +2,8 @@
+Mon Dec  4 20:20:33 UTC 2017 - to...@suse.com
+
+- Update power9 events (bsc#1069737)
+  New patch: perf-vendor-events-powerpc-update-power9-events.patch
+- Update patch context
+  Refresh patch: perf-provide-definition-for-einval-on-32bit.patch
+
+---

New:

  perf-vendor-events-powerpc-update-power9-events.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.PL0yH0/_old  2017-12-06 08:59:25.223159440 +0100
+++ /var/tmp/diff_new_pack.PL0yH0/_new  2017-12-06 08:59:25.227159294 +0100
@@ -50,6 +50,7 @@
 %{perl_requires}
 %{?libperl_requires}
 Patch1: perf-provide-definition-for-einval-on-32bit.patch
+Patch2: perf-vendor-events-powerpc-update-power9-events.patch
 
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -66,6 +67,7 @@
 (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
 
 %build
 cd tools/perf

++ perf-provide-definition-for-einval-on-32bit.patch ++
--- /var/tmp/diff_new_pack.PL0yH0/_old  2017-12-06 08:59:25.259158123 +0100
+++ /var/tmp/diff_new_pack.PL0yH0/_new  2017-12-06 08:59:25.263157977 +0100
@@ -3,11 +3,10 @@
 References: none
 Upstream: pending
 
-diff --git a/tools/perf/arch/x86/util/unwind-libunwind.c 
b/tools/perf/arch/x86/util/unwind-libunwind.c
-index 4f16661cbdbb..88934cce977b 100644
 a/tools/perf/arch/x86/util/unwind-libunwind.c
-+++ b/tools/perf/arch/x86/util/unwind-libunwind.c
-@@ -1,6 +1,6 @@
+--- a/tools/perf/arch/x86/util/unwind-libunwind.c.orig 2017-12-04 
22:16:57.977477073 +0100
 b/tools/perf/arch/x86/util/unwind-libunwind.c  2017-12-04 
22:17:21.217862484 +0100
+@@ -1,7 +1,7 @@
+ // SPDX-License-Identifier: GPL-2.0
 +#include 
  
  #ifndef REMOTE_UNWIND_LIBUNWIND

++ perf-vendor-events-powerpc-update-power9-events.patch ++
 843 lines (skipped)




commit perf for openSUSE:Factory

2017-09-17 Thread root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2017-09-17 22:38:23

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Sun Sep 17 22:38:23 2017 rev:39 rq:526437 version:MACRO

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2016-09-07 
11:44:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2017-09-17 
22:38:29.219319927 +0200
@@ -1,0 +2,6 @@
+Fri Sep 15 21:26:35 UTC 2017 - to...@suse.com
+
+- Fix x86 32bit build error
+  New patch: perf-provide-definition-for-einval-on-32bit.patch
+
+---

New:

  perf-provide-definition-for-einval-on-32bit.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.uY0aSY/_old  2017-09-17 22:38:29.931219836 +0200
+++ /var/tmp/diff_new_pack.uY0aSY/_new  2017-09-17 22:38:29.931219836 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -49,6 +49,7 @@
 BuildRequires:  zlib-devel
 %{perl_requires}
 %{?libperl_requires}
+Patch1: perf-provide-definition-for-einval-on-32bit.patch
 
 Requires:   kernel >= 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -64,6 +65,7 @@
 # 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
 
 %build
 cd tools/perf

++ perf-provide-definition-for-einval-on-32bit.patch ++
From: Tony Jones 
Subject: provide definition for EINVAL on 32bit
References: none
Upstream: pending

diff --git a/tools/perf/arch/x86/util/unwind-libunwind.c 
b/tools/perf/arch/x86/util/unwind-libunwind.c
index 4f16661cbdbb..88934cce977b 100644
--- a/tools/perf/arch/x86/util/unwind-libunwind.c
+++ b/tools/perf/arch/x86/util/unwind-libunwind.c
@@ -1,6 +1,6 @@
+#include 
 
 #ifndef REMOTE_UNWIND_LIBUNWIND
-#include 
 #include 
 #include "perf_regs.h"
 #include "../../util/unwind.h"



commit perf for openSUSE:Factory

2016-09-07 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2016-09-07 11:44:35

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2016-06-09 
16:16:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2016-09-07 
11:44:36.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep  1 15:00:13 UTC 2016 - to...@suse.com
+
+- Fix build error (tips.txt) on Leap42.2
+- Fix doc file attributes
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.FZCfEe/_old  2016-09-07 11:44:37.0 +0200
+++ /var/tmp/diff_new_pack.FZCfEe/_new  2016-09-07 11:44:37.0 +0200
@@ -78,8 +78,10 @@
 
 %files
 %defattr(-, root, root)
-%doc COPYING CREDITS README tools/perf/design.txt
-%doc %{_docdir}/perf/tips.txt
+%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




commit perf for openSUSE:Factory

2016-06-09 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2016-06-09 16:11:27

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2016-04-07 
13:32:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2016-06-09 
16:16:03.0 +0200
@@ -1,0 +2,7 @@
+Mon Jun  6 12:29:26 UTC 2016 - jsl...@suse.com
+
+- disable Werror completely. It breaks build due to shadow variables
+  in external (perl) headers.
+- add %{?_smp_mflags}
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.uDS7aw/_old  2016-06-09 16:16:06.0 +0200
+++ /var/tmp/diff_new_pack.uDS7aw/_new  2016-06-09 16:16:06.0 +0200
@@ -67,8 +67,9 @@
 
 %build
 cd tools/perf
+export WERROR=0
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
-make -f Makefile.perf EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core all doc %{_perf_unwind} 
tipdir=share/doc/packages/perf
+make %{?_smp_mflags} -f Makefile.perf 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




commit perf for openSUSE:Factory

2016-04-07 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2016-04-07 13:32:22

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2016-01-20 
09:54:57.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2016-04-07 
13:32:23.0 +0200
@@ -1,0 +2,6 @@
+Mon Apr  4 21:56:53 UTC 2016 - to...@suse.com
+
+- Package perf-tips as docs.
+- Include support for xz compressed images
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.FeYhZp/_old  2016-04-07 13:32:24.0 +0200
+++ /var/tmp/diff_new_pack.FeYhZp/_new  2016-04-07 13:32:24.0 +0200
@@ -33,6 +33,7 @@
 BuildRequires:  kernel-source >= 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
+BuildRequires:  xz-devel
 %ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc
 BuildRequires:  libnuma-devel
 %endif
@@ -67,16 +68,17 @@
 %build
 cd tools/perf
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
-make -f Makefile.perf EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
+make -f Makefile.perf 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 EXTRA_CFLAGS="%{optflags}" prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install 
install-doc %{_perf_unwind}
+make -f Makefile.perf V=1 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)
 %doc COPYING CREDITS README tools/perf/design.txt
+%doc %{_docdir}/perf/tips.txt
 %{_bindir}/perf
 %{_bindir}/trace
 %{_libdir}/libperf-gtk.so




commit perf for openSUSE:Factory

2016-01-20 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2016-01-20 09:54:48

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-10-14 
16:45:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2016-01-20 
09:54:57.0 +0100
@@ -1,0 +2,5 @@
+Mon Jan 11 11:10:36 UTC 2016 - to...@suse.com
+
+- Support strace/data.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.Klats4/_old  2016-01-20 09:54:58.0 +0100
+++ /var/tmp/diff_new_pack.Klats4/_new  2016-01-20 09:54:58.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -87,6 +87,7 @@
 %endif
 %attr(0644, -, -) %{_sysconfdir}/bash_completion.d/perf
 %{_libexecdir}/%{name}-core
+%{_datarootdir}/%{name}-core
 %{_mandir}/man1/perf*
 
 %changelog




commit perf for openSUSE:Factory

2015-10-14 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-10-14 16:45:06

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is "perf"

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-07-20 
11:23:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-10-14 
16:45:07.0 +0200
@@ -1,0 +2,5 @@
+Sun Oct 11 16:43:49 UTC 2015 - dmuel...@suse.com
+
+- enable numa support for aarch64
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.TNmfRH/_old  2015-10-14 16:45:07.0 +0200
+++ /var/tmp/diff_new_pack.TNmfRH/_new  2015-10-14 16:45:07.0 +0200
@@ -33,7 +33,7 @@
 BuildRequires:  kernel-source >= 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
-%ifarch ia64 x86_64 ppc64 ppc64le ppc %sparc
+%ifarch aarch64 ia64 x86_64 ppc64 ppc64le ppc %sparc
 BuildRequires:  libnuma-devel
 %endif
 %ifarch s390x s390




commit perf for openSUSE:Factory

2015-07-20 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-07-20 11:22:55

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-06-30 
10:19:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-07-20 
11:23:06.0 +0200
@@ -1,0 +2,5 @@
+Thu Jul 16 21:06:11 UTC 2015 - antoine.belv...@laposte.net
+
+- Remove perf-fix-branch-stack-mode-cannot-be-set.patch (upstreamed).
+
+---

Old:

  perf-fix-branch-stack-mode-cannot-be-set.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.cl91MR/_old  2015-07-20 11:23:07.0 +0200
+++ /var/tmp/diff_new_pack.cl91MR/_new  2015-07-20 11:23:07.0 +0200
@@ -24,8 +24,6 @@
 License:GPL-2.0
 Group:  Development/Tools/Debuggers
 Url:https://perf.wiki.kernel.org/
-# PATCH-FIX-UPSTREAM perf-fix-branch-stack-mode-cannot-be-set.patch -- fix 
build with GCC 5 (fix wrong comparison logic)
-Patch:  perf-fix-branch-stack-mode-cannot-be-set.patch
 BuildRequires:  asciidoc
 BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
@@ -65,7 +63,6 @@
 # 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
-%patch -p1
 
 %build
 cd tools/perf




commit perf for openSUSE:Factory

2015-06-30 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-06-30 10:19:34

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-05-15 
07:44:26.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-06-30 
10:19:37.0 +0200
@@ -1,0 +2,6 @@
+Sun Jun 28 15:54:43 UTC 2015 - antoine.belv...@laposte.net
+
+- Fix build with GCC 5
+  * perf-fix-branch-stack-mode-cannot-be-set.patch
+
+---

New:

  perf-fix-branch-stack-mode-cannot-be-set.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.uvzut0/_old  2015-06-30 10:19:37.0 +0200
+++ /var/tmp/diff_new_pack.uvzut0/_new  2015-06-30 10:19:37.0 +0200
@@ -24,6 +24,8 @@
 License:GPL-2.0
 Group:  Development/Tools/Debuggers
 Url:https://perf.wiki.kernel.org/
+# PATCH-FIX-UPSTREAM perf-fix-branch-stack-mode-cannot-be-set.patch -- fix 
build with GCC 5 (fix wrong comparison logic)
+Patch:  perf-fix-branch-stack-mode-cannot-be-set.patch
 BuildRequires:  asciidoc
 BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
@@ -63,6 +65,7 @@
 # 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
+%patch -p1
 
 %build
 cd tools/perf

++ perf-fix-branch-stack-mode-cannot-be-set.patch ++
From fefd2d9619de3bf0bf02a8622e9f445c3d19cc3f Mon Sep 17 00:00:00 2001
From: He Kuang heku...@huawei.com
Date: Sun, 15 Feb 2015 10:33:37 +0800
Subject: perf report: Fix branch stack mode cannot be set

When perf.data file is obtained using 'perf record -b', perf report
should use branch stack mode to generate output. But this function is
broken by improper comparison between boolean and constant -1.

before this patch:

  $ perf report -b -i perf.data
  Samples: 16  of event 'cycles', Event count (approx.): 3171896
  Overhead  Command  Shared Object  Symbol
13.59%  ls   [kernel.kallsyms]  [k] prio_tree_remove
13.16%  ls   [kernel.kallsyms]  [k] change_pte_range
12.09%  ls   [kernel.kallsyms]  [k] page_fault
12.02%  ls   [kernel.kallsyms]  [k] zap_pte_range
  ...

after this patch:

  $ perf report -b -i perf.data
  Samples: 256  of event 'cycles', Event count (approx.): 256
  Overhead  Command  Source Shared Object  Source Symbol
   Target Shared Object  Target Symbol
 9.38%  ls   [unknown] [k]  
   [unknown] [k] 
 6.25%  ls   libc-2.19.so  [.] _dl_addr 
   libc-2.19.so  [.] _dl_addr
 6.25%  ls   [kernel.kallsyms] [k] zap_pte_range
   [kernel.kallsyms] [k] zap_pte_range
 6.25%  ls   [kernel.kallsyms] [k] change_pte_range 
   [kernel.kallsyms] [k] change_pte_range
 0.39%  ls   [kernel.kallsyms] [k] prio_tree_remove 
   [kernel.kallsyms] [k] prio_tree_remove
  ...

Signed-off-by: He Kuang heku...@huawei.com
Tested-by: Arnaldo Carvalho de Melo a...@redhat.com
Cc: Paul Mackerras pau...@samba.org
Cc: Peter Zijlstra a.p.zijls...@chello.nl
Cc: Wang Nan wangn...@huawei.com
Link: 
http://lkml.kernel.org/r/1423967617-28879-1-git-send-email-heku...@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo a...@redhat.com

diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 0ba5f07..fb35034 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -768,7 +768,7 @@ repeat:
 * 0/1 means the user chose a mode.
 */
if (((branch_mode == -1  has_br_stack) || branch_mode == 1) 
-   branch_call_mode == -1) {
+   !branch_call_mode) {
sort__mode = SORT_MODE__BRANCH;
symbol_conf.cumulate_callchain = false;
}
-- 
cgit v0.10.2




commit perf for openSUSE:Factory

2015-05-14 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-05-15 07:43:59

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-03-11 
09:58:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-05-15 
07:44:26.0 +0200
@@ -1,0 +2,5 @@
+Wed May 13 00:33:23 UTC 2015 - to...@suse.com
+
+- Fix ppc64/ppc64le breakage due to libexecdir/libdir 
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.PXeCAd/_old  2015-05-15 07:44:27.0 +0200
+++ /var/tmp/diff_new_pack.PXeCAd/_new  2015-05-15 07:44:27.0 +0200
@@ -79,19 +79,12 @@
 %doc COPYING CREDITS README tools/perf/design.txt
 %{_bindir}/perf
 %{_bindir}/trace
-%ifarch ppc64 ppc64le
-%{_libexecdir}/libperf-gtk.so
-%dir %{_libexecdir}/traceevent
-%dir %{_libexecdir}/traceevent/plugins
-%{_libexecdir}/traceevent/plugins/plugin_*.so
-%else
 %{_libdir}/libperf-gtk.so
 %ifnarch armv7l
 %dir %{_libdir}/traceevent
 %dir %{_libdir}/traceevent/plugins
 %{_libdir}/traceevent/plugins/plugin_*.so
 %endif
-%endif
 %attr(0644, -, -) %{_sysconfdir}/bash_completion.d/perf
 %{_libexecdir}/%{name}-core
 %{_mandir}/man1/perf*




commit perf for openSUSE:Factory

2015-03-11 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-03-11 09:58:18

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2015-01-08 
23:03:29.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-03-11 
09:58:18.0 +0100
@@ -1,0 +2,5 @@
+Mon Mar  9 13:13:37 UTC 2015 - dims...@opensuse.org
+
+- Inject libdir=%{_libdir} into make calls.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.zgjKyy/_old  2015-03-11 09:58:19.0 +0100
+++ /var/tmp/diff_new_pack.zgjKyy/_new  2015-03-11 09:58:19.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -67,12 +67,12 @@
 %build
 cd tools/perf
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
-make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
+make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
 
 %install
 cd tools/perf
 export WERROR=0
-make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc 
%{_perf_unwind}
+make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
libdir=%{_libdir} perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install 
install-doc %{_perf_unwind}
 
 %files
 %defattr(-, root, root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2015-01-08 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2015-01-08 23:03:28

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2014-12-16 
14:47:21.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2015-01-08 
23:03:29.0 +0100
@@ -1,0 +2,5 @@
+Thu Jan  8 09:01:23 UTC 2015 - dims...@opensuse.org
+
+- Remove build hack for kernel not building against glibc 2.20.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.C3cSgd/_old  2015-01-08 23:03:30.0 +0100
+++ /var/tmp/diff_new_pack.C3cSgd/_new  2015-01-08 23:03:30.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -66,16 +66,6 @@
 
 %build
 cd tools/perf
-# Temporary hack to build until the kernel update lands - we fail once the 
kernel update is there, so we know when to drop the hack
-if grep _DEFAULT_SOURCE util/util.h; then
-  # glibc 2.20 deprecated _BSD_SOURCE in favor of _DEFAULT_SOURCE; so if we 
have _DEFAULT_SOURCE defined, we're compatible already and don't need the hack
-  echo Please remove this hack - the kernel has been updated to build fine 
with glibc 2.20
-  false
-else
-  # if the kernel is not yet ready for glibc 2.20, we accept warnings without 
raising them to errors.
-  # Don't forget to remove the export WERROR=0 in the install section
-  export WERROR=0
-fi
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
 make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2014-12-16 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2014-12-16 14:47:57

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2014-07-02 
15:05:31.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2014-12-16 
14:47:21.0 +0100
@@ -1,0 +2,8 @@
+Thu Nov 27 12:06:49 UTC 2014 - dims...@opensuse.org
+
+- Build hack: if util/util.h does not (yet) define _DEFAULT_SOURCE,
+  we export WERROR=0, which removes -Werror from CFLAGS. Once a
+  kernel lands that defines _DEFAULT_SOURCE, we fail the build in
+  to remove this hack, making it a (hopefully_ short-livinging one.
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.pQOWxx/_old  2014-12-16 14:47:22.0 +0100
+++ /var/tmp/diff_new_pack.pQOWxx/_new  2014-12-16 14:47:22.0 +0100
@@ -66,11 +66,22 @@
 
 %build
 cd tools/perf
+# Temporary hack to build until the kernel update lands - we fail once the 
kernel update is there, so we know when to drop the hack
+if grep _DEFAULT_SOURCE util/util.h; then
+  # glibc 2.20 deprecated _BSD_SOURCE in favor of _DEFAULT_SOURCE; so if we 
have _DEFAULT_SOURCE defined, we're compatible already and don't need the hack
+  echo Please remove this hack - the kernel has been updated to build fine 
with glibc 2.20
+  false
+else
+  # if the kernel is not yet ready for glibc 2.20, we accept warnings without 
raising them to errors.
+  # Don't forget to remove the export WERROR=0 in the install section
+  export WERROR=0
+fi
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
 make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
 
 %install
 cd tools/perf
+export WERROR=0
 make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc 
%{_perf_unwind}
 
 %files

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2014-07-02 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2014-07-02 15:05:16

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2014-03-28 
12:11:56.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2014-07-02 
15:05:31.0 +0200
@@ -1,0 +2,5 @@
+Fri Jun 27 17:46:46 UTC 2014 - to...@suse.com
+
+- Build for s390[x] without libunwind (bnc#882855)
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.EbvClJ/_old  2014-07-02 15:05:32.0 +0200
+++ /var/tmp/diff_new_pack.EbvClJ/_new  2014-07-02 15:05:32.0 +0200
@@ -36,7 +36,12 @@
 %ifarch 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
@@ -62,11 +67,11 @@
 %build
 cd tools/perf
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
-make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc
+make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc %{_perf_unwind}
 
 %install
 cd tools/perf
-make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc
+make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc 
%{_perf_unwind}
 
 %files
 %defattr(-, root, root)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2014-03-28 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2014-03-28 12:11:55

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2014-02-04 
19:56:33.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2014-03-28 
12:11:56.0 +0100
@@ -1,0 +2,14 @@
+Tue Mar 25 10:24:55 UTC 2014 - a...@ajaissle.de
+
+- Fix current build including 'trace event' plugins
+- Do not include 'trace event' plugins when on armv7l
+
+- BuildRequire libnuma-devel to enable 'perf bench numa mem', but
+  only require if we build for ia64 x86_64 ppc64 ppc64le  ppc %sparc
+
+- Spec cleanup:
+  * Add Url: https://perf.wiki.kernel.org/
+  * Drop %clean-section: We don't need to cleanup the buildroot
+  * bash_completion.d/perf doesn't need executable bit
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.pLmXTt/_old  2014-03-28 12:11:57.0 +0100
+++ /var/tmp/diff_new_pack.pLmXTt/_new  2014-03-28 12:11:57.0 +0100
@@ -23,6 +23,7 @@
 Summary:Performance Monitoring Tools for Linux
 License:GPL-2.0
 Group:  Development/Tools/Debuggers
+Url:https://perf.wiki.kernel.org/
 BuildRequires:  asciidoc
 BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
@@ -32,6 +33,9 @@
 BuildRequires:  kernel-source = 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
+%ifarch ia64 x86_64 ppc64 ppc64le ppc %sparc
+BuildRequires:  libnuma-devel
+%endif
 BuildRequires:  libunwind-devel
 BuildRequires:  newt-devel
 BuildRequires:  openssl-devel
@@ -64,16 +68,25 @@
 cd tools/perf
 make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %defattr(-, root, root)
 %doc COPYING CREDITS README tools/perf/design.txt
 %{_bindir}/perf
 %{_bindir}/trace
+%ifarch ppc64 ppc64le
+%{_libexecdir}/libperf-gtk.so
+%dir %{_libexecdir}/traceevent
+%dir %{_libexecdir}/traceevent/plugins
+%{_libexecdir}/traceevent/plugins/plugin_*.so
+%else
 %{_libdir}/libperf-gtk.so
-%{_sysconfdir}/bash_completion.d/perf
+%ifnarch armv7l
+%dir %{_libdir}/traceevent
+%dir %{_libdir}/traceevent/plugins
+%{_libdir}/traceevent/plugins/plugin_*.so
+%endif
+%endif
+%attr(0644, -, -) %{_sysconfdir}/bash_completion.d/perf
 %{_libexecdir}/%{name}-core
 %{_mandir}/man1/perf*
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2014-02-04 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2014-02-04 19:56:32

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-12-06 
11:47:13.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2014-02-04 
19:56:33.0 +0100
@@ -1,0 +2,7 @@
+Fri Jan 24 18:48:52 UTC 2014 - to...@suse.com
+
+- Fix build errors (invoke Makefile.perf directly to pass perfexecdir)
+- Add /usr/bin/trace alias for perf (mainline b52bc234)
+- Add libperf-gtk.so (loaded via dlsym, mainline fc67297b)
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.MFz6dm/_old  2014-02-04 19:56:34.0 +0100
+++ /var/tmp/diff_new_pack.MFz6dm/_new  2014-02-04 19:56:34.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -58,11 +58,11 @@
 %build
 cd tools/perf
 # PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
-make EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
+make -f Makefile.perf EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 prefix=/usr 
perfexecdir=lib/%{name}-core all doc
 
 %install
 cd tools/perf
-make EXTRA_CFLAGS=%{optflags} install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
+make -f Makefile.perf V=1 EXTRA_CFLAGS=%{optflags} prefix=/usr 
perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc
 
 %clean
 rm -rf %{buildroot}
@@ -71,8 +71,10 @@
 %defattr(-, root, root)
 %doc COPYING CREDITS README tools/perf/design.txt
 %{_bindir}/perf
+%{_bindir}/trace
+%{_libdir}/libperf-gtk.so
 %{_sysconfdir}/bash_completion.d/perf
-%{_libexecdir}/%{name}
+%{_libexecdir}/%{name}-core
 %{_mandir}/man1/perf*
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2013-12-06 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-12-06 11:47:12

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-09-07 
07:43:57.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-12-06 
11:47:13.0 +0100
@@ -1,0 +2,5 @@
+Wed Dec  4 23:30:29 UTC 2013 - to...@suse.com
+
+- Drop patch perl-5.18-nowarn.patch (mainline)
+
+---

Old:

  perl-5.18-nowarn.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.72CMAt/_old  2013-12-06 11:47:14.0 +0100
+++ /var/tmp/diff_new_pack.72CMAt/_new  2013-12-06 11:47:14.0 +0100
@@ -40,8 +40,6 @@
 %{perl_requires}
 %{?libperl_requires}
 
-Patch1: perl-5.18-nowarn.patch
-
 Requires:   kernel = 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -56,7 +54,6 @@
 # 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
 
 %build
 cd tools/perf

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2013-09-06 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-09-07 07:43:56

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-08-22 
10:54:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-09-07 
07:43:57.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep  5 18:24:22 CEST 2013 - m...@suse.de
+
+- add libperl_requires, as we link against libperl and thus
+  need a specific version of perl
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.DXa1Mi/_old  2013-09-07 07:43:59.0 +0200
+++ /var/tmp/diff_new_pack.DXa1Mi/_new  2013-09-07 07:43:59.0 +0200
@@ -38,6 +38,7 @@
 BuildRequires:  xmlto
 BuildRequires:  zlib-devel
 %{perl_requires}
+%{?libperl_requires}
 
 Patch1: perl-5.18-nowarn.patch
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2013-08-22 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-08-22 10:54:46

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-07-12 
20:51:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-08-22 
10:54:47.0 +0200
@@ -1,0 +2,7 @@
+Wed Aug 21 22:41:56 UTC 2013 - to...@suse.com
+
+- Resolve build errors
+- Drop patch perf-tests-ppc64-fix-compile-errors.patch (mainline)
+- Refresh patch perl-5.18-nowarn.patch 
+
+---

Old:

  perf-tests-ppc64-fix-compile-errors.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.PzAcgm/_old  2013-08-22 10:54:48.0 +0200
+++ /var/tmp/diff_new_pack.PzAcgm/_new  2013-08-22 10:54:48.0 +0200
@@ -40,7 +40,6 @@
 %{perl_requires}
 
 Patch1: perl-5.18-nowarn.patch
-Patch2: perf-tests-ppc64-fix-compile-errors.patch
 
 Requires:   kernel = 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -57,7 +56,6 @@
 (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
 
 %build
 cd tools/perf

++ perl-5.18-nowarn.patch ++
--- /var/tmp/diff_new_pack.PzAcgm/_old  2013-08-22 10:54:48.0 +0200
+++ /var/tmp/diff_new_pack.PzAcgm/_new  2013-08-22 10:54:48.0 +0200
@@ -47,16 +47,16 @@
 index b0f164b..3230f9e 100644
 --- a/tools/perf/Makefile
 +++ b/tools/perf/Makefile
-@@ -1035,10 +1035,10 @@
-   $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Wno-redundant-decls $
+@@ -631,10 +631,10 @@
+   $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -Wno-redundant-decls $
  
  $(OUTPUT)util/scripting-engines/trace-event-perl.o: 
util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS
--  $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $
-+  $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow 
-Wno-undef -Wno-switch-default $
+-  $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $
++  $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow 
-Wno-undef -Wno-switch-default $
  
  $(OUTPUT)scripts/perl/Perf-Trace-Util/Context.o: 
scripts/perl/Perf-Trace-Util/Context.c $(OUTPUT)PERF-CFLAGS
--  $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs $
-+  $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs -Wno-undef -Wno-switch-default $
+-  $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs $
++  $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs -Wno-undef -Wno-switch-default $
  
  $(OUTPUT)util/scripting-engines/trace-event-python.o: 
util/scripting-engines/trace-event-python.c $(OUTPUT)PERF-CFLAGS
-   $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PYTHON_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $
+   $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PYTHON_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2013-07-12 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-07-12 20:51:02

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-07-10 
17:30:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-07-12 
20:51:04.0 +0200
@@ -1,0 +2,6 @@
+Wed Jul 10 17:41:39 UTC 2013 - to...@suse.com
+
+- Add patch 'perf-tests-ppc64-fix-compile-errors.patch' to resolve
+  openSUSE:Factory:PowerPC testsuite build errors
+
+---

New:

  perf-tests-ppc64-fix-compile-errors.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.7JPM1A/_old  2013-07-12 20:51:05.0 +0200
+++ /var/tmp/diff_new_pack.7JPM1A/_new  2013-07-12 20:51:05.0 +0200
@@ -40,6 +40,7 @@
 %{perl_requires}
 
 Patch1: perl-5.18-nowarn.patch
+Patch2: perf-tests-ppc64-fix-compile-errors.patch
 
 Requires:   kernel = 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -56,6 +57,7 @@
 (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
 
 %build
 cd tools/perf

++ perf-tests-ppc64-fix-compile-errors.patch ++
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri Apr 26 10:17:56 2013 -0700
Subject: perf tests: Fix compile errors in bp_signal files
References: none
Git-commit: b3539d214f6000217aae97b5ae32df5b03faf850
Signed-off-by: Tony Jones to...@suse.de

When building on powerpc,  we get compile errors in bp_signal.c and
bp_signal_overflow.c due to __u64 and '%llx'.

Powerpc, needs __SANE_USERSPACE_TYPES__ to be defined so we pick up
asm-generic/int-ll64.h and define __u64 as unsigned long long.

Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Cc: Jiri Olsa jo...@redhat.com
Link: http://lkml.kernel.org/r/20130426173320.ga7...@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo a...@redhat.com

diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c
index 68daa28..aba0954 100644
--- a/tools/perf/tests/bp_signal.c
+++ b/tools/perf/tests/bp_signal.c
@@ -4,6 +4,12 @@
  * (git://github.com/deater/perf_event_tests)
  */
 
+/*
+ * Powerpc needs __SANE_USERSPACE_TYPES__ before linux/types.h to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+
 #include stdlib.h
 #include stdio.h
 #include unistd.h
diff --git a/tools/perf/tests/bp_signal_overflow.c 
b/tools/perf/tests/bp_signal_overflow.c
index fe7ed28..44ac821 100644
--- a/tools/perf/tests/bp_signal_overflow.c
+++ b/tools/perf/tests/bp_signal_overflow.c
@@ -3,6 +3,12 @@
  * perf_event_tests (git://github.com/deater/perf_event_tests)
  */
 
+/*
+ * Powerpc needs __SANE_USERSPACE_TYPES__ before linux/types.h to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+
 #include stdlib.h
 #include stdio.h
 #include unistd.h
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2013-07-10 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-07-10 17:30:16

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2013-01-10 
13:50:48.0 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-07-10 
17:30:17.0 +0200
@@ -1,0 +2,11 @@
+Tue Jul  9 01:17:02 UTC 2013 - to...@suse.com
+
+- Add audit-devel, gtk2-devel and libunwind-devel to support optional
+  functionality.
+- Add 'perl-5.18-nowarn.patch' to squelch build errors from perl.h
+- Add perl_requires
+- Fix --version output (copy submakefiles from kernel-source)
+- Pass SUSE rpm optflags into make as EXTRA_CFLAGS not CFLAGS
+- Stop building with V=1, make output easier to parse
+
+---

New:

  perl-5.18-nowarn.patch



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.8d4omx/_old  2013-07-10 17:30:17.0 +0200
+++ /var/tmp/diff_new_pack.8d4omx/_new  2013-07-10 17:30:17.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,16 +24,23 @@
 License:GPL-2.0
 Group:  Development/Tools/Debuggers
 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:  libunwind-devel
 BuildRequires:  newt-devel
 BuildRequires:  openssl-devel
 BuildRequires:  xmlto
 BuildRequires:  zlib-devel
+%{perl_requires}
+
+Patch1: perl-5.18-nowarn.patch
+
 Requires:   kernel = 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -46,16 +53,18 @@
 
 %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} lib) | tar -xf -
+(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
 
 %build
 cd tools/perf
-make V=1 CFLAGS=%{optflags} ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
+# PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
+make EXTRA_CFLAGS=%{optflags} ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
 
 %install
 cd tools/perf
-make CFLAGS=%{optflags} install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
+make EXTRA_CFLAGS=%{optflags} install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
 
 %clean
 rm -rf %{buildroot}

++ perl-5.18-nowarn.patch ++
From: Kirill A. Shutemov kir...@shutemov.name
Reference: https://groups.google.com/forum/#!topic/linux.kernel/Ws4ZajStT9A
Signed-off-by: Tony Jones to...@suse.de

perl.h from new Perl release doesn't like -Wundef and -Wswitch-default:

/usr/lib/perl5/core_perl/CORE/perl.h:548:5: error: SILENT_NO_TAINT_SUPPORT is 
not defined [-Werror=undef]
 #if SILENT_NO_TAINT_SUPPORT  !defined(NO_TAINT_SUPPORT)
 ^
/usr/lib/perl5/core_perl/CORE/perl.h:556:5: error: NO_TAINT_SUPPORT is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
 ^
In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3471:0,
 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/sv.h:1455:5: error: NO_TAINT_SUPPORT is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
 ^
In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3472:0,
 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/regexp.h:436:5: error: NO_TAINT_SUPPORT is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
 ^
In file included from /usr/lib/perl5/core_perl/CORE/hv.h:592:0,
 from /usr/lib/perl5/core_perl/CORE/perl.h:3480,
 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_siphash_2_4’:
/usr/lib/perl5/core_perl/CORE/hv_func.h:222:3: error: switch missing default 
case [-Werror=switch-default]
   switch( left )
   ^
/usr/lib/perl5/core_perl/CORE/hv_func.h: In function 

commit perf for openSUSE:Factory

2013-01-10 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-01-10 13:50:46

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf, Maintainer is to...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2012-05-21 
07:29:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-01-10 
13:50:48.0 +0100
@@ -1,0 +2,5 @@
+Tue Dec 25 00:00:02 UTC 2012 - to...@suse.com
+
+- Add /etc/bash_completion.d/perf to %files (fix build error)
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.YMISPF/_old  2013-01-10 13:50:49.0 +0100
+++ /var/tmp/diff_new_pack.YMISPF/_new  2013-01-10 13:50:49.0 +0100
@@ -64,6 +64,7 @@
 %defattr(-, root, root)
 %doc COPYING CREDITS README tools/perf/design.txt
 %{_bindir}/perf
+%{_sysconfdir}/bash_completion.d/perf
 %{_libexecdir}/%{name}
 %{_mandir}/man1/perf*
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2012-05-20 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2012-05-21 07:29:17

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf, Maintainer is to...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/perf/perf.changes2011-09-23 
12:21:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2012-05-21 
07:29:22.0 +0200
@@ -1,0 +2,6 @@
+Wed May 16 08:34:37 UTC 2012 - tog...@opensuse.org
+
+- Fix build for factory 
+  * added flex and bison to buildrequires 
+
+---



Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.39OidR/_old  2012-05-21 07:29:26.0 +0200
+++ /var/tmp/diff_new_pack.39OidR/_new  2012-05-21 07:29:26.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,17 @@
 #
 
 
-
 Name:   perf
 %define version %(rpm -q --qf '%{VERSION}' kernel-source)
 Version:%{version}
-Release:14
-License:GPL-2.0
+Release:0
 Summary:Performance Monitoring Tools for Linux
+License:GPL-2.0
 Group:  Development/Tools/Debuggers
 BuildRequires:  asciidoc
 BuildRequires:  binutils-devel
+BuildRequires:  bison
+BuildRequires:  flex
 BuildRequires:  kernel-source = 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2011-12-06 18:37:00

Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and  /work/SRC/openSUSE:Factory/.perf.new (New)


Package is perf, Maintainer is to...@suse.com

Changes:




Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.w2tkQy/_old  2011-12-06 19:03:56.0 +0100
+++ /var/tmp/diff_new_pack.w2tkQy/_new  2011-12-06 19:03:56.0 +0100
@@ -21,7 +21,7 @@
 %define version %(rpm -q --qf '%{VERSION}' kernel-source)
 Version:%{version}
 Release:14
-License:GPLv2
+License:GPL-2.0
 Summary:Performance Monitoring Tools for Linux
 Group:  Development/Tools/Debuggers
 BuildRequires:  asciidoc

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit perf for openSUSE:Factory

2011-05-12 Thread h_root

Hello community,

here is the log from the commit of package perf for openSUSE:Factory
checked in at Thu May 12 10:15:15 CEST 2011.




--- perf/perf.changes   2010-03-09 04:08:23.0 +0100
+++ /mounts/work_src_done/STABLE/perf/perf.changes  2011-05-05 
14:02:40.0 +0200
@@ -1,0 +2,8 @@
+Thu May  5 11:44:03 UTC 2011 - idoen...@novell.com
+
+- Also copy arch/lib to fix compilation on x86-64
+- Correctly depend on libdw-devel to fix dwarf support
+- Add newt-devel dependency to enable text user interface 
+- Re-enable as-needed support since it works now
+
+---

calling whatdependson for head-i586




Other differences:
--
++ perf.spec ++
--- /var/tmp/diff_new_pack.JbGGAl/_old  2011-05-12 10:12:20.0 +0200
+++ /var/tmp/diff_new_pack.JbGGAl/_new  2011-05-12 10:12:20.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package perf (Version MACRO)
+# spec file for package perf
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,22 @@
 
 
 Name:   perf
-BuildRequires:  asciidoc binutils-devel libdwarf-devel libelf-devel 
openssl-devel xmlto zlib-devel
-BuildRequires:  kernel-source = 2.6.32
-Summary:Performance Monitoring Tools for Linux
-Requires:   kernel = 2.6.31
 %define version %(rpm -q --qf '%{VERSION}' kernel-source)
-Version:%version
-Release:4
-Group:  Development/Tools/Debuggers
+Version:%{version}
+Release:14
 License:GPLv2
-AutoReqProv:on
+Summary:Performance Monitoring Tools for Linux
+Group:  Development/Tools/Debuggers
+BuildRequires:  asciidoc
+BuildRequires:  binutils-devel
+BuildRequires:  kernel-source = 2.6.31
+BuildRequires:  libdw-devel
+BuildRequires:  libelf-devel
+BuildRequires:  newt-devel
+BuildRequires:  openssl-devel
+BuildRequires:  xmlto
+BuildRequires:  zlib-devel
+Requires:   kernel = 2.6.31
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -37,31 +43,26 @@
 This subsystem utilizes the Performance Monitoring Unit (PMU) / hardware 
 counters of the underlying cpu architecture (if supported).
 
-Authors:
-
-Ingo Molnar mi...@elte.hu et al.
-
 %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) | tar -xf -
+(cd /usr/src/linux ; tar -cf - COPYING CREDITS README tools include scripts 
Kbuild Makefile arch/*/{include,lib} lib) | tar -xf -
 chmod +x tools/perf/util/generate-cmdlist.sh
 
 %build
 cd tools/perf
-export SUSE_ASNEEDED=0
-make V=1 CFLAGS=$RPM_OPT_FLAGS ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
+make V=1 CFLAGS=%{optflags} ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
 
 %install
 cd tools/perf
-make CFLAGS=$RPM_OPT_FLAGS install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=$RPM_BUILD_ROOT
+make CFLAGS=%{optflags} install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %files
 %defattr(-, root, root)
 %doc COPYING CREDITS README tools/perf/design.txt
-/usr/bin/perf
+%{_bindir}/perf
 %{_libexecdir}/%{name}
 %{_mandir}/man1/perf*
 






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org