Commit Graph

3758 Commits

Author SHA1 Message Date
Kevin Hilman
106f1ce29f Merge branch 'v3.10/topic/gator' into linux-linaro-lsk-v3.10
* v3.10/topic/gator:
  gator: Enable multiple source copies to exist in Android build environments
  gator: Add config for building the module in-tree
  gator: Version 5.21.1
2015-05-12 15:35:14 -07:00
Alex Shi
8134585f1c Merge tag 'v3.10.77' into linux-linaro-lsk
This is the 3.10.77 stable release

 Conflicts:
	drivers/video/console/Kconfig
	scripts/kconfig/menu.c
2015-05-12 14:53:40 +08:00
Jon Medhurst
66de4b5dc6 gator: Enable multiple source copies to exist in Android build environments
An Android build environment may contain multiple copies of the gator
source code, e.g. if it's been copied into a kernel tree as well as
having a standalone copy, or if there are two kernel trees with copies.

As Android builds tend to include all Android.mk it finds, this can
lead to build errors because there is more that one makefile trying to
build the daemon.

To allow this situation to be catered for we update Android.mk so that
if the variable GATOR_DAEMON_PATH is defined, and the makefile doesn't
live under that path, then the makefile contents are ignored. An Android
build environment can then set GATOR_DAEMON_PATH to specify the copy
it wants to use.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
2015-05-11 14:34:54 +01:00
Jon Medhurst
b1d07441d0 gator: Version 5.21.1
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2015-05-08 12:04:18 +01:00
Thomas D
bc7df9868f tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
commit f82263c698 upstream.

Since commit ee0778a301
("tools/power: turbostat: make Makefile a bit more capable")
turbostat's Makefile is using

  [...]
  BUILD_OUTPUT    := $(PWD)
  [...]

which obviously causes trouble when building "turbostat" with

  make -C /usr/src/linux/tools/power/x86/turbostat ARCH=x86 turbostat

because GNU make does not update nor guarantee that $PWD is set.

This patch changes the Makefile to use $CURDIR instead, which GNU make
guarantees to set and update (i.e. when using "make -C ...") and also
adds support for the O= option (see "make help" in your root of your
kernel source tree for more details).

Link: https://bugs.gentoo.org/show_bug.cgi?id=533918
Fixes: ee0778a301 ("tools/power: turbostat: make Makefile a bit more capable")
Signed-off-by: Thomas D. <whissi@whissi.de>
Cc: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-06 21:56:26 +02:00
Mark Brown
c293f79246 This is the 3.10.65 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABCAAGBQJUuSd1AAoJEDjbvchgkmk+wMoQAKJJYrJzZZwsrc0xc4hdAhkR
 JN1hiFgJovcsVsAbz5VWBMJQGFfVVDGS3z8zZWFsAWNI1IwKqH/HzoUQ6PqDF/Vx
 /RtwD5ggYklB5jQY1khX2ITDh8Kr2do+JPyB7MyF9AVblNF6FI6JdqBA1sbZEAmO
 uJrw9859nI+XZ9tnR6+HJpSYXQgViT8StIQ1zk+cMmJfH8Pmv7H3VIOIyjUX6QAU
 bhPQPqdtmm95e/2SGLUsRg8iGpbj3+91k/El4Wox1r6G9ZrRiHZe/Xzb63IuynZI
 GQa072w3pT3iDZeweb3F2UNNx09XkcsAHNLGpq6g9Z+CgKoi9WCnXh2wkXa4DBmz
 MgbQjNIrW2JWf8GAdcODC3PCaN9dd4Jrhmmin8ilOaeG3J++hm0sIPiuBQLuYG6y
 Vggd5kg9DN0p9LxDTVtJmjqM1gMks8DBbVmCYqSCrfgZfebDOPtrW+uD303WdN4l
 VpXX7H6DFYQqRO9ssQwu+kObwb3+rlhxWUG2yBP8oh9ILcsYyaKpf3jO3QVWVEbI
 rN79nTcyhBi7baHf0V8vvxfTWn7/W7VYdOwAJ8L98txLzV/AE7xPx7nz5V7ZRM6I
 V71kfLZE/WpLJgkb6f0jrftb+RWZC2Qzdw5R/fO3GfcQTc6pVG2xxM6VYEoa9SrC
 wEQBYGiKtRNSFS6BdQf4
 =w+fk
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.65' into linux-linaro-lsk

This is the 3.10.65 stable release
2015-01-16 22:06:35 +00:00
Jiri Olsa
2788d619a6 perf session: Do not fail on processing out of order event
commit f61ff6c06d upstream.

Linus reported perf report command being interrupted due to processing
of 'out of order' event, with following error:

  Timestamp below last timeslice flush
  0x5733a8 [0x28]: failed to process type: 3

I could reproduce the issue and in my case it was caused by one CPU
(mmap) being behind during record and userspace mmap reader seeing the
data after other CPUs data were already stored.

This is expected under some circumstances because we need to limit the
number of events that we queue for reordering when we receive a
PERF_RECORD_FINISHED_ROUND or when we force flush due to memory
pressure.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1417016371-30249-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[zhangzhiqiang: backport to 3.10:
 - adjust context
 - commit f61ff6c06d struct events_stats was defined in tools/perf/util/event.h
   while 3.10 stable defined in tools/perf/util/hist.h.
 - 3.10 stable there is no pr_oe_time() which used for debug.
 - After the above adjustments, becomes same to the original patch:
   f61ff6c06d
]
Signed-off-by: Zhiqiang Zhang <zhangzhiqiang.zhang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-16 06:59:03 -08:00
Mark Brown
bbba26b2fc This is the 3.10.64 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABCAAGBQJUrsVLAAoJEDjbvchgkmk+RrQP/A7r5xtIXvZ8+La82XYrsgd5
 wWL1Md1B8e1i78Te/TUA5jlcz8r2owE0LS8ZKJLvR0zbYSFsd5qKGoXKFZGnTBFE
 wKk5goj35f3/kiHe3z7wSiE2H94xcuq7Tl3dmwpToHg6xHrPs+Eb2/ndWRPPug80
 IVuaNFKx/bHg0DLX5zEfCDdoFM4LWjTadecFw7sKOKTO5ZIResbpY7c/B5augmI9
 g8tQchnuahVatoHjz8kmTnhLfOwkMTb8wCDfXGZKHCHJgr84DS8JBilnm7tfjTBw
 dWjlWEHrGfLcx/QP3n2oSvZjPW0TVAhD4CREQqj9lP4t9TuLDgOSVykXGUN39nvo
 giIa6AXiseeB76D6ZmTaoFOlUKelYtAqXkYJ32FCHuBMrozn/BN8Tncl5QdvBjtb
 mefUtKuClQuNstBGMeQ0TFR/r/nh2wZZRHq8lp0bEJ4La7JrsjEfiaaqB+F51eTT
 U1l1ksBViYrIw4AsuN0yV5x1bF2Ozbul/UayufJrsCXj/ztlKSni6tdMr3XEjoWV
 JQlBYJXXA2f1VqTlnQ9sGHBmIMewQvrk+sscMO1npT+wnXjDHSs5ig/1RPO8m4IG
 nE7zJlMRp/zFh6R6JlhpRlXXNmpMW3h2fleBGt+ZBFzz95QGtfpNofwQJDNemXwL
 GvBxJj3DEbPYXeF2n4dE
 =NWX6
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.64' into linux-linaro-lsk

This is the 3.10.64 stable release
2015-01-08 18:54:04 +00:00
Eric W. Biederman
3150a5ae1c userns: Unbreak the unprivileged remount tests
commit db86da7cb7 upstream.

A security fix in caused the way the unprivileged remount tests were
using user namespaces to break.  Tweak the way user namespaces are
being used so the test works again.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-08 09:58:17 -08:00
Eric W. Biederman
260cb8f431 mnt: Update unprivileged remount test
commit 4a44a19b47 upstream.

- MNT_NODEV should be irrelevant except when reading back mount flags,
  no longer specify MNT_NODEV on remount.

- Test MNT_NODEV on devpts where it is meaningful even for unprivileged mounts.

- Add a test to verify that remount of a prexisting mount with the same flags
  is allowed and does not change those flags.

- Cleanup up the definitions of MS_REC, MS_RELATIME, MS_STRICTATIME that are used
  when the code is built in an environment without them.

- Correct the test error messages when tests fail.  There were not 5 tests
  that tested MS_RELATIME.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-08 09:58:16 -08:00
Mark Brown
d91fd22083 Merge remote-tracking branch 'lsk/v3.10/topic/gator' into linux-linaro-lsk 2014-10-31 16:30:39 +00:00
Jon Medhurst
96b56157b3 gator: Version 5.20
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-10-30 18:04:22 +00:00
Mark Brown
0ee8bb9c48 This is the 3.10.56 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABAgAGBQJUMb4bAAoJEDjbvchgkmk+0YwP/2KHqjcUUWzYecZMPiUmqgCV
 ioBxsmEWO97H8MtsJe90bXiXG/Tl4D37EcxTqqJIqVoSOjhwdiiVxZ5zFwbWtAqx
 pOdphSK40OU4RqhErlLFB+JjOceVQ+G550yoRS2BASmSojEyQ4JzDqJGVgOuuHrS
 n1ULUVLD+ThrK8Hy9DAKv+51o0UTPf0yUiWBxsXGUPbyXK5BSEf+z7/LO1B05M8h
 UH9VmD0o5eX11SNmRFZ2ApDiPxjluG+9ihZPm6Ngyg914mMwxQ3wo9n6yta5TwCa
 Du4q/aYxaCV+4NujhLE9uXchcNSgKWsEmwJG71IQ42gxo5kYV8/CkG+wkDVEQtjs
 Oh0OOCCZQLQo/HSzG3CkihA7VuMCWid5Fz5dRSAm6NOgqJOr2jBS8qSWEaXoJ12c
 oyn+sWUc4DyIUSW1c1bKm3BZQmqJ0oDCqMz8RLNLUdjhRxC9I7Dx79XG3B7PH1sb
 XzaXdYF8fOYVIuUhRS7ou9at2v5MmH0tY47HTop8nVS/V4drTj+zHecOAZbc7d6k
 QhBE25g6oP9NU5S5aUE08HCX2/beF+nwWZHQ3Q+oeLaQokK+ImADajVbtkCTF/p6
 JcK46cxV4L8c75bqjtzTRXB7If7g3E7q6hxbylqFP5leGtxJgUWR5WRB410cKE9J
 a4PahYitZDCyFW6v64F3
 =UuDd
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.56' into linux-linaro-lsk

This is the 3.10.56 stable release
2014-10-06 17:33:17 +01:00
Jiri Olsa
e7fa68ba61 perf kmem: Make it work again on non NUMA machines
commit 4921e32024 upstream.

The commit '2814eb0 perf kmem: Remove die() calls' disabled 'perf kmem'
command for machines without numa support. It made the command fail if
'/sys/devices/system/node' dir wasn't found.

Skipping the numa based initialization in case the directory is not
found and continue execution.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1379003976-5839-5-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: zhangzhiqiang <zhangzhiqiang.zhang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-05 14:54:14 -07:00
Mark Brown
d831fd1b46 This is the 3.10.55 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABAgAGBQJUGblWAAoJEDjbvchgkmk+bh8P/jyuQ+tl8/8MnJLHFsnQ6OLE
 JWVR4GlBzy33ainaPbPtCvDlDWjuYE05/jHeTjhRj5h7uYjDcwkfrexprN78q4pO
 wLkrR4ouEsZRC7iU05ZbGcKsmFojoRPz7CxDkT8MptBPM6FdaSqtf3jn53mEyo78
 a/4z5AaBZLeKIxq8F5xuSk7zsSWjWz/gHgSzXCW4PslgmDn6mN4R1YpWMPfEsNqm
 4B+EyuGkVPz4h3Y9kYKAmfqKpcJpn6c7GQo2yfjUJw5PycyXf963osoeyHc8Nd2p
 7reNpaZLiHw1DqfWk+Glu08hpq75pM/U28rQA23h/EZlnm9KWdGyGQ1RB7TIuBL2
 EqsIfYqsP9h1p6PseGc23TCnFY1OFmemV9v/oBn8ov8XuxZDONlhqNWU9ke1a6k7
 aNsGal1oEwqzF/3+leob1A921B9R+4o20gsbZbdHddpaKkfzxKTXBRxTMygZUGTk
 h5aq1WqPZso81CxSnzXSB+Pwmc1RGoVhnUHP5UBb/fLOgjGb8M8To5W/17BEEMKd
 QGz7U5Y1GB8xGvVEVC8Kzmbn4iJY0yyjVLYeuRESN1Wkt2JpkGiHgW77ZTO1g+zP
 sS+AUhiiCvKDMy3vR+yMrnLsKVDnKV1jvagncRRL8IetBYhjiaBoamycSz/790/e
 tv3Cwl+QQ5UkM157dq7W
 =Ld83
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.55' into linux-linaro-lsk

This is the 3.10.55 stable release
2014-09-18 10:49:28 -07:00
Eric W. Biederman
bbeed681a5 mnt: Add tests for unprivileged remount cases that have found to be faulty
commit db181ce011 upstream.

Kenton Varda <kenton@sandstorm.io> discovered that by remounting a
read-only bind mount read-only in a user namespace the
MNT_LOCK_READONLY bit would be cleared, allowing an unprivileged user
to the remount a read-only mount read-write.

Upon review of the code in remount it was discovered that the code allowed
nosuid, noexec, and nodev to be cleared.  It was also discovered that
the code was allowing the per mount atime flags to be changed.

The first naive patch to fix these issues contained the flaw that using
default atime settings when remounting a filesystem could be disallowed.

To avoid this problems in the future add tests to ensure unprivileged
remounts are succeeding and failing at the appropriate times.

Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-17 09:04:00 -07:00
Mark Brown
029c613dad Merge remote-tracking branch 'lsk/v3.10/topic/gator' into linux-linaro-lsk 2014-08-05 11:46:51 +01:00
Jon Medhurst
e31266f780 gator: Version 5.19
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-08-04 15:47:44 +01:00
Mark Brown
fa6e052947 This is the 3.10.48 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABAgAGBQJTvYZ3AAoJEDjbvchgkmk+kxQQANSNDDaXvV6QBukk5sx/ZFjn
 sZP0MjDABfmI0p9/u1/kCnPL70eMZCU7xYj8QDhicgOtbE4qBoXKNRYRnSXH+2JC
 sJwL4Cz7ryMfnT2hFFZQOPdHY5fkpSdZZFgvmua/ZyDnxIFKbHUkHr/6rCRLlR2Y
 O74oG1B4ODPMGN+DWd8Ym6cKf0r2Gf3QO4qOvapQLnFvpq18c+Dtlv8q9gIXR3Ol
 oD+QYG2QW+QRjErlEHo7UUM9PDGVOwGJQdFTI0Snc6oDC7FW4kh+jZb69JUHNWtS
 Ne2ELKwop6ExlO4Zwsbq7G4h2uBtQLOkHOV6UVukEY8DKSMT06YW48NTE/VF9MSI
 8lbnkF/VymwRZePCPLFyHUFwa4ZdnhEzuo1BgR7WcOTiBDvFEodFfNCjX79gX2K/
 WAnFRDsj6Ncb7PIb1mXyLavNfO4LvvBLEhFO8GrYVvhlY6hYImay7QmYrhDc/BfA
 EsF0+nT+GmXyHclw7EFE5Iqqw8aILLvPKVgBCJO3x/RKomTb/RxFniiulvTWm3r6
 gWMsQ5BkrFKoTtJVz3xAA8Tps554vnVRa1gX7KMMcatLHD6VhEZdQmJbbFIFdpSW
 P2x+/3eno5oaHA8H4gYqC3kur+xEf1E3+5vbS2BDGbbkAKVG/F5Fb6nOtbsZn3zJ
 RNRWVhNDi2BtyioJy0BW
 =Llg3
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.48' into linux-linaro-lsk

This is the 3.10.48 stable release
2014-07-14 10:45:20 +01:00
Michal Nazarewicz
8bee745a7a tools: ffs-test: fix header values endianess
commit f35f71244d upstream.

It appears that no one ever run ffs-test on a big-endian machine,
since it used cpu-endianess for fs_count and hs_count fields which
should be in little-endian format.  Fix by wrapping the numbers in
cpu_to_le32.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:14:02 -07:00
Alex Shi
5f00470fca Merge tag v3.10.43 into linux-linaro-lsk
This is the 3.10.43 stable release
2014-06-12 15:01:53 +08:00
David Ahern
509a6ce860 perf evsel: Fix printing of perf_event_paranoid message
commit b69e63a45f upstream.

message is currently shown as:

  Error:
  You may not have permission to collect %sstats.
  Consider tweaking /proc/sys/kernel/perf_event_paranoid:

Note the %sstats. With patch this becomes:

  Error:
  You may not have permission to collect stats.
  Consider tweaking /proc/sys/kernel/perf_event_paranoid:

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1369526040-1368-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: xiakaixu <xiakaixu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-11 12:03:22 -07:00
Mark Brown
fb8cade31f Merge branch 'v3.10/topic/gator' of git://git.linaro.org/kernel/linux-linaro-stable into linux-linaro-lsk 2014-04-10 17:19:17 +01:00
Jon Medhurst
7bf87fba32 gator-daemon: Fix compilation error: 'sa_family_t' does not name a type
When compiling on Linaro Android we get the following error:

bionic/libc/kernel/common/linux/netlink.h:52:2: error: 'sa_family_t' does not name a type
  sa_family_t nl_family;

This is related to an issue that was fixed in Linux 3.1 by commit
6602a4baf4 (net: Make userland include of netlink.h more sane)
but it seems that the Linux headers used by bionic predate that.

Fortunately, the fix for us is simple: reorder the header file includes
so that the definition of sa_family_t from sys/socket.h is picked up
before being used by linux/netlink.h

Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-04-10 12:11:42 +01:00
Jon Medhurst
15ce78dafc gator: Version 5.18
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-04-10 12:11:17 +01:00
Mark Brown
8415e60445 This is the 3.10.30 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQIcBAABAgAGBQJS/T2oAAoJEDjbvchgkmk+St0QAMSLN95GKAIRjOMpkz9VAncw
 gw5KdMFYcdT4pQAIX6/yIpv9o+YVDNFjvtGv2Jlrp+EZDLFSsTG/kvlgYN/SrkkM
 Lr4X6sC4yNh5LD/nTtwZE2KagKwydIPedOqKXlwW7in4xK6Y8BvUN+9YMTujO8nS
 VyDKAdKHYIDtWoAYgn5uYj9RSwvYLKJuYqs7FWQvoluyWNbPc/rS0J1k/dcOO41i
 dNwvDMBniJ3xx/upg/RhZ9U+bIlNE2xQOYSBLXBZzWcl4YsZN/6O26oXpsz7fUpK
 lL3fqldCArCAgHr4hYBVcXantrQ3gRPM1xA3cX19eqbdSempQlSJQgiCeN+mJYuR
 c7vMM1fxL1kwHqv7sRyS9LaumspHX6AnqKm5eir60Vz7QCiHT0WBt65hnwlB8eRy
 pt+W1YKyPSW9FVDkNuu4I2u+V985HB3H4Fo4wNrF3pV/6JRhIsNWaGKeDIKGJqDT
 AeEhL+J+0qYlp8TOBSSUChHJQg6NRO0JoXnJV58dBDl6FrIQHfsAskZv1M/BuSax
 poW2Hg9AgmrIDvL7Mcn45mmspH/93673PO+58AK2PRfnjaZ/50GuFWklzX2lPLdW
 7XaCyvRx4L8ws6moxoKhxqBaPT3XgfAiskeNuknwYrH8QKH8n+F+Ljj0veHD6fn3
 XIz1/8sI84e1/lFynk0T
 =/s7B
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.30' into linux-linaro-lsk

This is the 3.10.30 stable release
2014-02-14 12:15:46 +00:00
Josh Triplett
0e2d79ded0 turbostat: Use GCC's CPUID functions to support PIC
commit 2b92865e64 upstream.

turbostat uses inline assembly to call cpuid.  On 32-bit x86, on systems
that have certain security features enabled by default that make -fPIC
the default, this causes a build error:

turbostat.c: In function ‘check_cpuid’:
turbostat.c:1906:2: error: PIC register clobbered by ‘ebx’ in ‘asm’
  asm("cpuid" : "=a" (fms), "=c" (ecx), "=d" (edx) : "a" (1) : "ebx");
  ^

GCC provides a header cpuid.h, containing a __get_cpuid function that
works with both PIC and non-PIC.  (On PIC, it saves and restores ebx
around the cpuid instruction.)  Use that instead.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-13 13:48:00 -08:00
Josh Triplett
73cb6cf10e turbostat: Don't put unprocessed uapi headers in the include path
commit b731f3119d upstream.

turbostat's Makefile puts arch/x86/include/uapi/ in the include path, so
that it can include <asm/msr.h> from it.  It isn't in general safe to
include even uapi headers directly from the kernel tree without
processing them through scripts/headers_install.sh, but asm/msr.h
happens to work.

However, that include path can break with some versions of system
headers, by overriding some system headers with the unprocessed versions
directly from the kernel source.  For instance:

In file included from /build/x86-generic/usr/include/bits/sigcontext.h:28:0,
                 from /build/x86-generic/usr/include/signal.h:339,
                 from /build/x86-generic/usr/include/sys/wait.h:31,
                 from turbostat.c:27:
../../../../arch/x86/include/uapi/asm/sigcontext.h:4:28: fatal error: linux/compiler.h: No such file or directory

This occurs because the system bits/sigcontext.h on that build system
includes <asm/sigcontext.h>, and asm/sigcontext.h in the kernel source
includes <linux/compiler.h>, which scripts/headers_install.sh would have
filtered out.

Since turbostat really only wants a single header, just include that one
header rather than putting an entire directory of kernel headers on the
include path.

In the process, switch from msr.h to msr-index.h, since turbostat just
wants the MSR numbers.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-13 13:48:00 -08:00
Mark Brown
4b9c8ddadc This is the 3.10.29 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQIcBAABAgAGBQJS8927AAoJEDjbvchgkmk+UVEQANVz5E9/k3TXXtWX2yfIEBOC
 0mKz+8iz0Vhioa6gvVKRycMqMF224zK947BQXuZAqjvkiNM8jnM/dbP0+fGpi22q
 JHvj+ecqFiNEScafqF8TrtiY8WBKk5yQiDZiIkrOL5XI73uPMqyTOkCTGcRXqlOm
 XdhDUi41Jkuy9Y+sGTQNQcVjCd5mlerIN0lu9ToGIq4jVz9imcUo17Kuoobp1T6F
 SNxcfM9L2s97XeQ9ZylEulC0C6A6Kxg4/ThHU0+uv51/1LTXgrP0GtlHV04mFmVk
 mbFIFRB2RiLoAoFeftSqy6r0n8IG0E7rhbvhdHPOvgx//n35nyy7NEDsYfaUHipu
 1wT9vs84uOSV47OnnQ3ndmWAdkWE3khHp4bs3fIUjbRVIQcmuLa3RCLkmIhej0xx
 tOJV40T278s+a0IBdzFDWDt4REdiSDCow7bsXFmcYo7GYhSIabPcysykdLwgwg/n
 lD1Rjis+6IydoRmChVr9G7/om8zEKoIVSr9W4BUjbCIz7XEDFYn8hpuGSbzzQ2dj
 gTSZ+wruXwupnjwZXivJ9oHjw50Ldjjj/JIunORlwC2G1SYHtw7hlkm4yYWhFuJu
 gj5OUcPQxAqVDHtolLDNGsNuZY55OwQo6UCJ986f0pR6WIIzjZjvLydHCbY+MKcQ
 AjCdaSSASK+CqgJlV0J8
 =qAeM
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.29' into linux-linaro-lsk

This is the 3.10.29 stable release
2014-02-10 17:37:43 +00:00
Dongsheng Yang
6157969f15 perf kvm: Fix kvm report without guestmount.
commit ad85ace07a upstream.

Currently, if we use perf kvm --guestkallsyms --guestmodules report, we
can not get the perf information from perf data file. All sample are
shown as unknown.

Reproducing steps:
	# perf kvm --guestkallsyms /tmp/kallsyms --guestmodules /tmp/modules record -a sleep 1
	[ perf record: Woken up 1 times to write data ]
	[ perf record: Captured and wrote 0.624 MB perf.data.guest (~27260 samples) ]
	# perf kvm --guestkallsyms /tmp/kallsyms --guestmodules /tmp/modules report |grep %
	   100.00%  [guest/6471]  [unknown]         [g] 0xffffffff8164f330

This bug was introduced by 207b57926 (perf kvm: Fix regression with guest machine creation).
In original code, it uses perf_session__find_machine(), it means we deliver symbol to machine
which has the same pid, if no machine found, deliver it to *default* guest. But if we use
perf_session__findnew_machine() here, if no machine was found, new machine with pid will be built
and added. Then the default guest which with pid == 0 will never get a symbol.

And because the new machine initialized here has no kernel map created, the symbol delivered to
it will be marked as "unknown".

This patch here is to revert commit 207b57926 and fix the SEGFAULT bug in another way.

Verification steps:
	# ./perf kvm --guestkallsyms /home/kallsyms --guestmodules /home/modules record -a sleep 1
	[ perf record: Woken up 1 times to write data ]
	[ perf record: Captured and wrote 0.651 MB perf.data.guest (~28437 samples) ]
	# ./perf kvm --guestkallsyms /home/kallsyms --guestmodules /home/modules report |grep %
	    22.64%    :6471  [guest.kernel.kallsyms]  [g] update_rq_clock.part.70
	    19.99%    :6471  [guest.kernel.kallsyms]  [g] d_free
	    18.46%    :6471  [guest.kernel.kallsyms]  [g] bio_phys_segments
	    16.25%    :6471  [guest.kernel.kallsyms]  [g] dequeue_task
	    12.78%    :6471  [guest.kernel.kallsyms]  [g] __switch_to
	     7.91%    :6471  [guest.kernel.kallsyms]  [g] scheduler_tick
	     1.75%    :6471  [guest.kernel.kallsyms]  [g] native_apic_mem_write
	     0.21%    :6471  [guest.kernel.kallsyms]  [g] apic_timer_interrupt

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1387564907-3045-1-git-send-email-yangds.fnst@cn.fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-06 11:08:15 -08:00
Mark Brown
51ad557e21 This is the 3.10.28 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQIcBAABAgAGBQJS4+byAAoJEDjbvchgkmk+Wg8P/iOMXMLpEpqq8dLFbeWsBGu4
 eEL1eSBBYwX9tT4Aud2cK2y2wGrQKnAggii8e4A10rMi7rgtoinCwPOCambgdT7M
 MlPtZFOKGgqhv4ZCqs6vtxXSZX9dHZrlF5jWgCf8o0C99R9mc0l353yZ6khZtamt
 ZMbI2hWpqPodjArwaVGmh7Lg+0AxMSwUe0tBb3sw7jArp0LUKylge81poy4caRwI
 oSMpcHkOSdy5r2YUQjBTkKGqgCWk/9y1I9svMlzN7P2e1ob9FT/4cAlY5vWduvv3
 zuTePiCbqK/kKZtbZs91BNr1bv9+LvWZmY6qb8bofReNto8Nt/Bv9guF+bhmswtL
 5lP2KR1ibI+YyvWWGjquyva80ANQmIeQ9NAuoLFsXAb+5D9nLH0qpHBLtR09876s
 VlEGmK4gT4xs6EfJl8TEpuLLuBp+1WNOLgihPDu9qtwcNlvkLtl1eZ9YHKbtmnsY
 gnXLZpHgbYk3H1Mm8tDgd3ciwF1AH8IRqL/sF8ihmZXy5tyWRZ1O/JD3A4AXXRbF
 KF8pb2jQyqIYn9MgVHZLGlZPOt9SYsubQbXKRsdwgPadjZfr8DnoFM1Q3o5YVhG8
 ooOdq73vkIQScS9TUTVgxJHI64Srm09owV5LCnOPJMoyNP4QBp76++OOS1t9KB+r
 nWBHx5ihymT/jbRw0UW2
 =aixp
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.28' into linux-linaro-lsk

This is the 3.10.28 stable release
2014-01-27 14:57:25 +00:00
Arnaldo Carvalho de Melo
77dbd11a37 perf scripting perl: Fix build error on Fedora 12
commit 3b16ff8967 upstream.

Cast __u64 to u64 to silence this warning on older distros, such as
Fedora 12:

    CC       /tmp/build/perf/util/scripting-engines/trace-event-perl.o
  cc1: warnings being treated as errors
  util/scripting-engines/trace-event-perl.c: In function ‘perl_process_tracepoint’:
  util/scripting-engines/trace-event-perl.c:285: error: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘__u64’
  make[1]: *** [/tmp/build/perf/util/scripting-engines/trace-event-perl.o] Error 1
  make: *** [install] Error 2
  make: Leaving directory `/home/acme/git/linux/tools/perf'
  [acme@fedora12 linux]$

Reported-by: Waiman Long <Waiman.Long@hp.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: Waiman Long <Waiman.Long@hp.com>
Link: http://lkml.kernel.org/n/tip-nlxofdqcdjfm0w9o6bgq4kqv@git.kernel.org
Link: http://lkml.kernel.org/r/1381265120-58532-1-git-send-email-Waiman.Long@hp.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-25 08:27:11 -08:00
Alex Shi
450cdfa9c5 Merge remote-tracking branch 'stable/linux-3.10.y' into linux-linaro-lsk
Conflicts:
	arch/arm64/kernel/smp.c

Signed-off-by: Alex Shi <alex.shi@linaro.org>
2014-01-10 10:50:57 +08:00
Josh Boyer
37b1780623 cpupower: Fix segfault due to incorrect getopt_long arugments
commit f447ef4a56 upstream.

If a user calls 'cpupower set --perf-bias 15', the process will end with
a SIGSEGV in libc because cpupower-set passes a NULL optarg to the atoi
call.  This is because the getopt_long structure currently has all of
the options as having an optional_argument when they really have a
required argument.  We change the structure to use required_argument to
match the short options and it resolves the issue.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1000439

Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-09 12:24:22 -08:00
Jon Medhurst
0025d2eacc gator: Version 5.17
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Alex Shi <alex.shi@linaro.org>

Conflicts:
	drivers/gator/Makefile
2014-01-03 14:10:08 +08:00
Jon Medhurst
34d9769988 gator: Version 5.17
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2013-12-19 09:23:06 +00:00
Mark Brown
dffe2a3eed This is the 3.10.22 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQIcBAABAgAGBQJSn3yKAAoJEDjbvchgkmk+6+4QAJCzOlF08RObk8BVowyl2wIO
 tq40xxwdaoXbZVfrViGWuIRdsuCFbFvr/h6A7e8bkFn7QXBnliRZ/U0YUj4DnN64
 NWSRglL7SYpPqXOrNof4RkoDvvhBHMgqwAc70Xl+tfQjnJFPmoA21pILDGJLsQVU
 yjos/Z6cyTWC4i2ESL6+OIHfbKJI8VYx5zMEx86FerCb6GD48qRLalQbVxRQtGdJ
 BVW4/x7wW4dD+GzuqP6vu/Y//lkOgZfOLWgd/D5TEgODuZQjbderWvCOamz3eufr
 I9uvX1DLqOagkeVpxoXJAT29b0M3Y/xUuE2SejkxPyXKTQmaujmJL50hnK8JG94F
 TTQ8IHzDCrietbxVDMA41dcCsc4DnO4bkUiFkOcBBXLKPrQ9+1gx8IFvOFsUodwK
 mMuDEcjm2VqxR6ndoCLknGDzun2dQfUoW0DndPDtRq7WTWZHAgL9Y2bq5JtxKuwO
 4CkLJo45uXKmaR8WosNs/Ribtp9cYRsUSgLu0b7e92Ja7rHq3Q30CnwWkm2hVn9t
 AMSa2AlL0PBok07tHrUeVF5BG+3n1DNAvcxZCy27MvuiIv4oERMBK5w+ESTgi8Sq
 Je9fjhB42UZVRl9HPnQB+JKUsj8IAKP0JBPhRcrm4NMZY1+vAb5mThBxn132gS8a
 ib3xDiX/iQOy1ueE0gip
 =ulxm
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.22' into linux-linaro-lsk

This is the 3.10.22 stable release
2013-12-05 10:15:16 +00:00
Michael Hudson-Doyle
9dfd005a3f perf tools: Remove cast of non-variadic function to variadic
commit 53805eca3d upstream.

The 4fb71074a5 (perf ui/hist: Consolidate hpp helpers) cset introduced
a cast of percent_color_snprintf to a function pointer type with
varargs.  Change percent_color_snprintf to be variadic and remove the
cast.

The symptom of this was all percentages being reported as 0.00% in perf
report --stdio output on the armhf arch.

Signed-off-by: Michael Hudson-Doyle <michael.hudson@linaro.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/87zjppvw7y.fsf@canonical.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-04 10:55:49 -08:00
Alex Shi
93570f4be1 Merge remote-tracking branch 'arm-landing/lsk-3.10-gator' into linux-linaro-lsk-test 2013-10-15 10:29:57 +08:00
Jon Medhurst
d369859ea6 gator: Version 5.16
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2013-10-11 12:43:21 +01:00
Jon Medhurst
aaf37a3203 gator: Version 5.15
Signed-off-by: Jon Medhurst <tixy@linaro.org>
2013-10-08 14:57:44 +01:00
Mark Brown
a3dfd8c063 This is the 3.10.15 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.21 (GNU/Linux)
 
 iQIcBAABAgAGBQJSUB6KAAoJEDjbvchgkmk+Kq8P/2ehUrXv8VCbW1GO4U7aYqsn
 S8dj19FRuSDYX9D6VbZYMEkNLljiJKjTwH8bmbUPOI6Wd6xkdmL77RA7VLpbUGxt
 I7YpPAKiAWGq9jWNWEDPtSzKITOVh1FrYUB15ISJhcOif3U3ox1xTcfsHAlJmtL/
 9uYx2kUMv70iuW3cnrwaBLS0tSI3hL/aeF8pf2nIA77+pgj6OfKTM8pLpf0tIyIg
 R9q61syVwMba3dVQT6hcbAsqDfxcFAEasP3WT82mPW+s0usO43PS0nl8lirmjvQv
 /d/npoeDZDs5vicS8bGygiV6mDr778nVbJtWheUSyBX0R78u89lfyYL6s27FHbIX
 eBMGu3lGcP7lz8fN1fPvPz+M1QzIcvb+PLrqSkfAgKiPNW4I7bWQe1jxbUUhB48H
 eSP22xSXP0KkxdK5N5BJwAAT00ENFfL9NRTIsjHWTZs0sq4I3FYU3EznZ5IwXalN
 rwR2gWyVv0df+t4825rszSBv8E+9noamOpLUx1a82pgdb0n99+xtob1DSLI65LLD
 KXFAok60a6+s4bESwhnWPQM9NSUQ0C+Q+RHv3AKg+Cdn4UJGPp+LMizTtiENCkAD
 AGl+v2fZtTdiNInWlR1dQbTzcWhn3OUziplTarr2W3X4QvqW4c1Utr+eS32AZkGh
 VmHkeePBH+cAYSQHHBeV
 =ymNh
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.15' into linux-linaro-lsk

This is the 3.10.15 stable release
2013-10-06 14:30:53 +01:00
Vinson Lee
655325c7e4 tools lib lk: Uninclude linux/magic.h in debugfs.c
commit ce7eebe5c3 upstream.

The compilation only looks for linux/magic.h from the default include
paths, which does not include the source tree. This results in a build
error if linux/magic.h is not available or not installed.

For example, this build error occurs on CentOS 5.

$ make -C tools/lib/lk V=1
[...]
gcc -o debugfs.o -c -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6
-D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement
-Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wno-system-headers
-Wold-style-definition -Wpacked -Wredundant-decls -Wshadow
-Wstrict-aliasing=3 -Wstrict-prototypes -Wswitch-default -Wswitch-enum
-Wundef -Wwrite-strings -Wformat  -fPIC  -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 debugfs.c
debugfs.c:8:25: error: linux/magic.h: No such file or directory

The only symbol from linux/magic.h needed by debugfs.c is DEBUGFS_MAGIC,
and that is already defined in debugfs.h. linux/magic.h isn't providing
any extra symbols and can unincluded. This is similar to the approach by
perf, which has its own magic.h wrapper at
tools/perf/util/include/linux/magic.h

Signed-off-by: Vinson Lee <vlee@twitter.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@suse.de>
Cc: Vinson Lee <vlee@freedesktop.org>
Link: http://lkml.kernel.org/r/1379546200-17028-1-git-send-email-vlee@freedesktop.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-05 07:13:10 -07:00
Mark Brown
18d8ff256f This is the 3.10.14 stable release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.21 (GNU/Linux)
 
 iQIcBAABAgAGBQJSSvXIAAoJEDjbvchgkmk+PXsP/0PdzaphWC5BTRGYgm/iTSXA
 7sPBBEEVXdQwbzXu4lpRvMbxoa+JV0RdHJXwnkqqneb6JKTlhEuUj28SA58ZPY+f
 4nXU8QI63+nqYT9cfzhllvlIxwvgbWeEVC6f8Fgbr1n8wUer38cWlvImW3WmuEe1
 EOErgYzSUmQE391lvIi55PuBqeGP5JhJquOFVb8Mr3A7nnhe1ARgnp78cNY/gP8F
 3sfCSKhAAUP+N6Kd0FNU7EPM6UFsqh2T3TPdu1+r41r0rJDbVebdV91JozyRmuxN
 LPHumMrS8rykpkFS0xPo03r6ANLvq3nBbfpDZp+lrGiWowN0E+vV73x3CdrJ6ol8
 gxQ3+H6JjHu/CU3Hq8rLX97bgk1H6fY99Cjy8egiZyHkyBoWVQEiWtm1jXftHVz4
 Z+IY+Zh53R6xJKFfQRaNiiFhrgUpgClSrmYaqXYcNVldWN8fbvvqwW1nUwvBF+f6
 or8wDrj8YMgCAEQnl/Siq9gaHUqWxPUSOfTc/W/tzdZ10JEOz5FMg8u8ZwkPBSre
 CbFDcq2mRFbXnz+FP69mBEBYvthSFQrWZ7HUsGVnWvvc+diLlTTh+0ifXut+mPHG
 vHcT6RjndQSCDWTz3bVYOQI1Wq99vUPicHPcXXcrJMHPYWZpedGN/BF6V+qJUNVD
 lebGa0Op8y148hyjsc8l
 =82Dz
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.14' into linux-linaro-lsk

This is the 3.10.14 stable release
2013-10-04 00:30:17 +01:00
Andi Kleen
71828ed939 perf tools: Handle JITed code in shared memory
commit 89365e6c9a upstream.

Need to check for /dev/zero.

Most likely more strings are missing too.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1366848182-30449-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-01 09:17:48 -07:00
Mark Brown
f04d4ffdd3 Merge remote-tracking branch 'lsk/v3.10/topic/misc' into linux-linaro-lsk 2013-08-21 16:11:36 +01:00
Rabin Vincent
9991ec3a98 tools lib lk: Respect CROSS_COMPILE
Make lk use CROSS_COMPILE, in order to be able to cross compile perf
again.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1368822464-4887-1-git-send-email-rabin@rab.in
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
(cherry picked from commit 3c4797d46c)
2013-08-21 16:10:10 +01:00
Michael Witten
2652eb4444 perf tools: Revert regression in configuration of Python support
commit a363a9da65 upstream.

Among other things, the following:

  commit 31160d7fea
  Date:   Tue Jan 8 16:22:36 2013 -0500
  perf tools: Fix GNU make v3.80 compatibility issue

attempts to aid the user by tapping into an existing error message,
as described in the commit message:

  ... Also fix an issue where _get_attempt was called with only
  one argument. This prevented the error message from printing
  the name of the variable that can be used to fix the problem.

or more precisely:

  -$(if $($(1)),$(call _ge_attempt,$($(1)),$(1)),$(call _ge_attempt,$(2)))
  +$(if $($(1)),$(call _ge_attempt,$($(1)),$(1)),$(call _ge_attempt,$(2),$(1)))

However, The "missing" argument was in fact missing on purpose; it's
absence is a signal that the error message should be skipped, because
the failure would be due to the default value, not any user-supplied
value.  This can be seen in how `_ge_attempt' uses `gea_err' (in the
config/utilities.mak file):

  _ge_attempt = $(if $(get-executable),$(get-executable),$(_gea_warn)$(call _gea_err,$(2)))
  _gea_warn = $(warning The path '$(1)' is not executable.)
  _gea_err  = $(if $(1),$(error Please set '$(1)' appropriately))

That is, because the argument is no longer missing, the value `$(1)'
(associated with `_gea_err') always evaluates to true, thus always
triggering the error condition that is meant to be reserved for
only the case when a user explicitly supplies an invalid value.

Concretely, the result is a regression in the Makefile's configuration
of python support; rather than gracefully disable support when the
relevant executables cannot be found according to default values, the
build process halts in error as though the user explicitly supplied
the values.

This new commit simply reverts the offending one-line change.

Reported-by: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/CAOJsxLHv17Ys3M7P5q25imkUxQW6LE_vABxh1N3Tt7Mv6Ho4iw@mail.gmail.com
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Cc: Mark Brown <broonie@sirena.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-04 16:51:17 +08:00
K. Y. Srinivasan
0ac7e44316 Tools: hv: KVP: Fix a bug in IPV6 subnet enumeration
commit ed4bb9744b upstream.

Each subnet string needs to be separated with a semicolon. Fix this bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-04 16:50:58 +08:00
Josh Triplett
b844db3187 turbostat: Increase output buffer size to accommodate C8-C10
On platforms with C8-C10 support, the additional C-states cause
turbostat to overrun its output buffer of 128 bytes per CPU.  Increase
this to 256 bytes per CPU.

[ As a bugfix, this should go into 3.10; however, since the C8-C10
  support didn't go in until after 3.9, this need not go into any stable
  kernel. ]

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Cc: Len Brown <len.brown@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-06-13 09:55:56 -07:00