07 May, 2015

3 commits

  • …nux-stable into ti-linux-3.14.y

    This is the 3.14.41 stable release

    * tag 'v3.14.41' of http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable: (93 commits)
    Linux 3.14.41
    nosave: consolidate __nosave_{begin,end} in <asm/sections.h>
    fs: take i_mutex during prepare_binprm for set[ug]id executables
    driver core: bus: Goto appropriate labels on failure in bus_add_device
    memstick: mspro_block: add missing curly braces
    C6x: time: Ensure consistency in __init
    crypto: omap-aes - Fix support for unequal lengths
    wl18xx: show rx_frames_per_rates as an array as it really is
    lib: memzero_explicit: use barrier instead of OPTIMIZER_HIDE_VAR
    e1000: add dummy allocator to fix race condition between mtu change and netpoll
    ksoftirqd: Enable IRQs and call cond_resched() before poking RCU
    RCU pathwalk breakage when running into a symlink overmounting something
    drm/i915: cope with large i2c transfers
    drm/radeon: fix doublescan modes (v2)
    i2c: core: Export bus recovery functions
    IB/mlx4: Fix WQE LSO segment calculation
    IB/core: don't disallow registering region starting at 0x0
    IB/core: disallow registering 0-sized memory region
    stk1160: Make sure current buffer is released
    mvsas: fix panic on expander attached SATA devices
    ...

    Signed-off-by: Texas Instruments Auto Merger <lcpd_integration@list.ti.com>

    Texas Instruments Auto Merger
     
  • commit f82263c6989c31ae9b94cecddffb29dcbec38710 upstream.

    Since commit ee0778a30153
    ("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: ee0778a30153 ("tools/power: turbostat: make Makefile a bit more capable")
    Signed-off-by: Thomas D.
    Cc: Mark Asselstine
    Signed-off-by: Len Brown
    Signed-off-by: Greg Kroah-Hartman

    Thomas D
     
  • commit c5e691928bf166ac03430e957038b60adba3cf6c upstream.

    When a event PADDING is hit (a deleted event that is still in the ring
    buffer), translate_data() sets the length of the padding and also updates
    the data pointer which is passed back to the caller.

    This is unneeded because the caller also updates the data pointer with
    the passed back length. translate_data() should not update the pointer,
    only set the length.

    Signed-off-by: Steven Rostedt
    Cc: Andrew Morton
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Link: http://lkml.kernel.org/r/20150324135923.461431960@goodmis.org
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Greg Kroah-Hartman

    Steven Rostedt (Red Hat)
     

20 Jan, 2015

1 commit

  • …nux-stable into ti-linux-3.14.y

    This is the 3.14.29 stable release

    * tag 'v3.14.29' of http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable: (165 commits)
    Linux 3.14.29
    mm: Don't count the stack guard page towards RLIMIT_STACK
    mm: propagate error from stack expansion even for guard page
    mm, vmscan: prevent kswapd livelock due to pfmemalloc-throttled process being killed
    mmc: sdhci: Fix sleep in atomic after inserting SD card
    spi: fsl: Fix problem with multi message transfers
    perf session: Do not fail on processing out of order event
    perf: Fix events installation during moving group
    perf/x86/intel/uncore: Make sure only uncore events are collected
    Btrfs: don't delay inode ref updates during log replay
    arm64: kernel: fix __cpu_suspend mm switch on warm-boot
    arm64: Move cpu_resume into the text section
    arm64: kernel: refactor the CPU suspend API for retention states
    arm64: kernel: add missing __init section marker to cpu_suspend_init
    ACPI / PM: Fix PM initialization for devices that are not present
    ARM: mvebu: disable I/O coherency on non-SMP situations on Armada 370/375/38x/XP
    Revert "ARM: 7830/1: delay: don't bother reporting bogomips in /proc/cpuinfo"
    ARM: OMAP4: PM: Only do static dependency configuration in omap4_init_static_deps
    ARM: dts: Enable PWM node by default for s3c64xx
    ARM: dts: DRA7: wdt: Fix compatible property for watchdog node
    ...

    Conflicts:
    drivers/usb/host/xhci.c

    Signed-off-by: Denys Dmytriyenko <denys@ti.com>

    Denys Dmytriyenko
     

16 Jan, 2015

1 commit

  • commit f61ff6c06dc8f32c7036013ad802c899ec590607 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
    Signed-off-by: Jiri Olsa
    Acked-by: Ingo Molnar
    Cc: Andi Kleen
    Cc: Corey Ashford
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Linus Torvalds
    Cc: Matt Fleming
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1417016371-30249-1-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo
    [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:
    https://github.com/torvalds/linux/commit/f61ff6c06dc8f32c7036013ad802c899ec590607
    ]
    Signed-off-by: Zhiqiang Zhang
    Signed-off-by: Greg Kroah-Hartman

    Jiri Olsa
     

09 Jan, 2015

2 commits

  • commit db86da7cb76f797a1a8b445166a15cb922c6ff85 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"
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • commit 4a44a19b470a886997d6647a77bb3e38dcbfa8c5 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
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     

18 Sep, 2014

2 commits

  • …nux-stable into ti-linux-3.14.y

    This is the 3.14.19 stable release

    * tag 'v3.14.19' of http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable: (114 commits)
    Linux 3.14.19
    KEYS: Fix termination condition in assoc array garbage collection
    KEYS: Fix use-after-free in assoc_array_gc()
    libceph: gracefully handle large reply messages from the mon
    vfs: fix bad hashing of dentries
    drm/nouveau: Bump version from 1.1.1 to 1.1.2
    IB/srp: Fix deadlock between host removal and multipathd
    mtd: nand: omap: Fix 1-bit Hamming code scheme, omap_calculate_ecc()
    mtd/ftl: fix the double free of the buffers allocated in build_maps()
    CIFS: Fix wrong restart readdir for SMB1
    CIFS: Fix wrong filename length for SMB2
    CIFS: Fix directory rename error
    vfs: add d_is_dir()
    CIFS: Fix wrong directory attributes after rename
    CIFS: Possible null ptr deref in SMB2_tcon
    CIFS: Fix async reading on reconnects
    CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2
    libceph: do not hard code max auth ticket len
    libceph: add process_one_ticket() helper
    libceph: set last_piece in ceph_msg_data_pages_cursor_init() correctly
    ...

    Signed-off-by: Dan Murphy <DMurphy@ti.com>

    Dan Murphy
     
  • commit db181ce011e3c033328608299cd6fac06ea50130 upstream.

    Kenton Varda 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
    Signed-off-by: "Eric W. Biederman"
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     

11 Jul, 2014

1 commit

  • …nux-stable into ti-linux-3.14.y

    This is the 3.14.12 stable release

    * tag 'v3.14.12' of http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable: (96 commits)
    Linux 3.14.12
    mm: fix crashes from mbind() merging vmas
    sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue
    slab: fix oops when reading /proc/slab_allocators
    mm/numa: Remove BUG_ON() in __handle_mm_fault()
    drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap
    arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error
    ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined
    ALSA: usb-audio: Suppress repetitive debug messages from retire_playback_urb()
    audit: remove superfluous new- prefix in AUDIT_LOGIN messages
    aio: block io_destroy() until all context requests are completed
    drm/i915: fix display power sw state reporting
    mmc: rtsx: add R1-no-CRC mmc command type handle
    brcmfmac: Fix brcmf_chip_ai_coredisable not applying reset bits to BCMA_IOCTL
    netfilter: nf_nat: fix oops on netns removal
    tty: Correct INPCK handling
    serial: Fix IGNBRK handling
    clk: qcom: Fix mmcc-8974's PLL configurations
    clk: qcom: Fix clk_rcg2_is_enabled() check
    mlx4_core: Fix incorrect FLAGS1 bitmap test in mlx4_QUERY_FUNC_CAP
    ...

    Conflicts:
    drivers/usb/musb/musb_cppi41.c

    Signed-off-by: Dan Murphy <dmurphy@ti.com>

    Dan Murphy
     

10 Jul, 2014

1 commit

  • commit f35f71244da6e51db4e1f2c7e318581f498ececf 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
    Signed-off-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Michal Nazarewicz
     

18 Jun, 2014

1 commit

  • [ Upstream commit b34e08d5c7062c19a3f582d23d5f649c79ff3409 ]

    This patch adds two example applications showing usage of Asynchronous I/O API
    of FunctionFS. First one (aio_simple) is simple example of bidirectional data
    transfer. Second one (aio_multibuff) shows multi-buffer data transfer, which
    may to be used in high performance applications.

    Both examples contains userspace applications for device and for host.
    It needs libaio library on the device, and libusb library on host.

    Signed-off-by: Robert Baldyga
    Signed-off-by: Felipe Balbi
    Signed-off-by: Sekhar Nori

    Robert Baldyga
     

01 Jun, 2014

1 commit

  • commit de04f8657de9d3351a2d5880f1f7080b23b798cf upstream.

    Commit 12e55569a244 "tools lib traceevent: Use helper trace-seq in print
    functions like kernel does" added a extra trace_seq helper to process
    string arguments like the kernel does it. But the difference between the
    kernel and the userspace library is that the kernel's trace_seq structure
    has a static allocated buffer. The userspace one has a dynamically
    allocated one. It requires a trace_seq_destroy(), otherwise it produces
    a nasty memory leak.

    Signed-off-by: Steven Rostedt
    Link: http://lkml.kernel.org/r/20140422192330.6bb09bf8@gandalf.local.home
    Signed-off-by: Jiri Olsa
    Signed-off-by: Greg Kroah-Hartman

    Steven Rostedt
     

13 May, 2014

1 commit

  • commit be40d5ccab34d579512d932fc1c6cfaffe9d1551 upstream.

    Fixes the following build failure:

    cc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
    -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD
    -U_FORTIFY_SOURCE -c -o virtio_test.o virtio_test.c
    virtio_test.c: In function ‘run_test’:
    virtio_test.c:176:7: error: expected ‘)’ before ‘r’
    r = -1;
    ^

    Fixes: 53c18c9906441 (virtio_test: verify if virtqueue_kick() succeeded)
    Cc: Heinz Graalfs
    Signed-off-by: Joel Stanley
    Acked-by: Michael S. Tsirkin
    Signed-off-by: Rusty Russell
    Signed-off-by: Greg Kroah-Hartman

    Joel Stanley
     

18 Mar, 2014

1 commit

  • …it/acme/linux into perf/urgent

    Pull two 'perf bench' fixes from Arnaldo:

    * Make 'perf bench mem' (i.e. no args) mean 'run all tests' so that we can run
    all tests, not stopping at the numa ones. (Arnaldo Carvalho de Melo)

    * Fix NULL pointer dereference after last test in in "perf bench all" (Patrick Palka)

    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

    Ingo Molnar
     

17 Mar, 2014

1 commit


15 Mar, 2014

1 commit

  • The for_each_bench() macro must check that the "benchmarks" field of a
    collection is not NULL before dereferencing it because the "all"
    collection in particular has a NULL "benchmarks" field (signifying that
    it has no benchmarks to iterate over).

    This fixes this NULL pointer dereference when running "perf bench all":

    [root@ssdandy ~]# perf bench all

    # Running mem/memset benchmark...
    # Copying 1MB Bytes ...

    2.453675 GB/Sec
    12.056327 GB/Sec (with prefault)

    Segmentation fault (core dumped)
    [root@ssdandy ~]#

    Signed-off-by: Patrick Palka
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1394664051-6037-1-git-send-email-patrick@parcs.ath.cx
    Signed-off-by: Arnaldo Carvalho de Melo

    Patrick Palka
     

14 Mar, 2014

2 commits

  • If we call just:

    perf bench numa mem

    it will present the same output as:

    perf bench numa mem -h

    i.e. ask for instructions about what to run.

    While that is kinda ok, using 'run all tests' as the default, i.e.
    making 'no parms' be equivalent to:

    perf bench numa mem -a

    Will allow:

    perf bench numa all

    to actually do what is asked: i.e. run all the 'bench' tests, instead of
    responding to that by asking what to do.

    That, in turn, allows:

    perf bench all

    to actually complete, for the same reasons.

    And after that, the tests that come after that, and that at some point
    hit a NULL deref, will run, allowing me to reproduce a recently reported
    problem.

    That when you have the needed numa libraries, which wasn't the case for
    the reporter, making me a bit confused after trying to reproduce his
    report.

    So make no parms mean -a.

    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Patrick Palka
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-x7h0ghx4pef4n0brywg21krk@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Pull networking fixes from David Miller:
    "I know this is a bit more than you want to see, and I've told the
    wireless folks under no uncertain terms that they must severely scale
    back the extent of the fixes they are submitting this late in the
    game.

    Anyways:

    1) vmxnet3's netpoll doesn't perform the equivalent of an ISR, which
    is the correct implementation, like it should. Instead it does
    something like a NAPI poll operation. This leads to crashes.

    From Neil Horman and Arnd Bergmann.

    2) Segmentation of SKBs requires proper socket orphaning of the
    fragments, otherwise we might access stale state released by the
    release callbacks.

    This is a 5 patch fix, but the initial patches are giving
    variables and such significantly clearer names such that the
    actual fix itself at the end looks trivial.

    From Michael S. Tsirkin.

    3) TCP control block release can deadlock if invoked from a timer on
    an already "owned" socket. Fix from Eric Dumazet.

    4) In the bridge multicast code, we must validate that the
    destination address of general queries is the link local all-nodes
    multicast address. From Linus Lüssing.

    5) The x86 BPF JIT support for negative offsets puts the parameter
    for the helper function call in the wrong register. Fix from
    Alexei Starovoitov.

    6) The descriptor type used for RTL_GIGA_MAC_VER_17 chips in the
    r8169 driver is incorrect. Fix from Hayes Wang.

    7) The xen-netback driver tests skb_shinfo(skb)->gso_type bits to see
    if a packet is a GSO frame, but that's not the correct test. It
    should use skb_is_gso(skb) instead. Fix from Wei Liu.

    8) Negative msg->msg_namelen values should generate an error, from
    Matthew Leach.

    9) at86rf230 can deadlock because it takes the same lock from it's
    ISR and it's hard_start_xmit method, without disabling interrupts
    in the latter. Fix from Alexander Aring.

    10) The FEC driver's restart doesn't perform operations in the correct
    order, so promiscuous settings can get lost. Fix from Stefan
    Wahren.

    11) Fix SKB leak in SCTP cookie handling, from Daniel Borkmann.

    12) Reference count and memory leak fixes in TIPC from Ying Xue and
    Erik Hugne.

    13) Forced eviction in inet_frag_evictor() must strictly make sure all
    frags are deleted, otherwise module unload (f.e. 6lowpan) can
    crash. Fix from Florian Westphal.

    14) Remove assumptions in AF_UNIX's use of csum_partial() (which it
    uses as a hash function), which breaks on PowerPC. From Anton
    Blanchard.

    The main gist of the issue is that csum_partial() is defined only
    as a value that, once folded (f.e. via csum_fold()) produces a
    correct 16-bit checksum. It is legitimate, therefore, for
    csum_partial() to produce two different 32-bit values over the
    same data if their respective alignments are different.

    15) Fix endiannes bug in MAC address handling of ibmveth driver, also
    from Anton Blanchard.

    16) Error checks for ipv6 exthdrs offload registration are reversed,
    from Anton Nayshtut.

    17) Externally triggered ipv6 addrconf routes should count against the
    garbage collection threshold. Fix from Sabrina Dubroca.

    18) The PCI shutdown handler added to the bnx2 driver can wedge the
    chip if it was not brought up earlier already, which in particular
    causes the firmware to shut down the PHY. Fix from Michael Chan.

    19) Adjust the sanity WARN_ON_ONCE() in qdisc_list_add() because as
    currently coded it can and does trigger in legitimate situations.
    From Eric Dumazet.

    20) BNA driver fails to build on ARM because of a too large udelay()
    call, fix from Ben Hutchings.

    21) Fair-Queue qdisc holds locks during GFP_KERNEL allocations, fix
    from Eric Dumazet.

    22) The vlan passthrough ops added in the previous release causes a
    regression in source MAC address setting of outgoing headers in
    some circumstances. Fix from Peter Boström"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (70 commits)
    ipv6: Avoid unnecessary temporary addresses being generated
    eth: fec: Fix lost promiscuous mode after reconnecting cable
    bonding: set correct vlan id for alb xmit path
    at86rf230: fix lockdep splats
    net/mlx4_en: Deregister multicast vxlan steering rules when going down
    vmxnet3: fix building without CONFIG_PCI_MSI
    MAINTAINERS: add networking selftests to NETWORKING
    net: socket: error on a negative msg_namelen
    MAINTAINERS: Add tools/net to NETWORKING [GENERAL]
    packet: doc: Spelling s/than/that/
    net/mlx4_core: Load the IB driver when the device supports IBoE
    net/mlx4_en: Handle vxlan steering rules for mac address changes
    net/mlx4_core: Fix wrong dump of the vxlan offloads device capability
    xen-netback: use skb_is_gso in xenvif_start_xmit
    r8169: fix the incorrect tx descriptor version
    tools/net/Makefile: Define PACKAGE to fix build problems
    x86: bpf_jit: support negative offsets
    bridge: multicast: enable snooping on general queries only
    bridge: multicast: add sanity check for general query destination
    tcp: tcp_release_cb() should release socket ownership
    ...

    Linus Torvalds
     

12 Mar, 2014

1 commit

  • Fixes the following build problem with binutils-2.24

    gcc -Wall -O2 -c -o bpf_jit_disasm.o bpf_jit_disasm.c
    In file included from bpf_jit_disasm.c:25:0:
    /usr/include/bfd.h:35:2: error: #error config.h must be included
    before this header
    #error config.h must be included before this header

    This is similar to commit 3ce711a6abc27abce1554e1d671a8762b7187690
    "perf tools: bfd.h/libbfd detection fails with recent binutils"

    See: https://sourceware.org/bugzilla/show_bug.cgi?id=14243

    CC: David S. Miller
    CC: Daniel Borkmann
    CC: netdev@vger.kernel.org
    Acked-by: Daniel Borkmann
    Signed-off-by: Markos Chandras
    Signed-off-by: David S. Miller

    Markos Chandras
     

11 Mar, 2014

2 commits


10 Mar, 2014

3 commits

  • When trying to map a bunch of instruction addresses to their respective
    threads, I kept getting a lot of bogus entries [I forget the exact
    reason as I patched my code months ago].

    Looking through ip__resolve_ams, I noticed the check for

    if (al.sym)

    and realized, most times I have an al.map definition but sometimes an
    al.sym is undefined. In the cases where al.sym is undefined, the loop
    keeps going even though a valid al.map exists.

    Modify this check to use the more reliable al.map. This fixed my bogus
    entries.

    Signed-off-by: Don Zickus
    Cc: Jiri Olsa
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1393386227-149412-2-git-send-email-dzickus@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Don Zickus
     
  • Fixing crash in elf_section_by_name function caused by missing section
    name in elf binary.

    Reported-by: Albert Strasheim
    Signed-off-by: Jiri Olsa
    Cc: Albert Strasheim
    Cc: Corey Ashford
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1393767127-599-1-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • SIGSTKFLT is not defined on alpha, mips or sparc.

    SIGEMT and SIGSWI are defined on some architectures and should be
    decoded here if so.

    Signed-off-by: Ben Hutchings
    Fixes: 8bad5b0abfdb ('perf trace: Beautify signal number arg in several syscalls')
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: stable@vger.kernel.org
    Link: http://lkml.kernel.org/r/1391648441.3003.101.camel@deadeye.wl.decadent.org.uk
    Signed-off-by: Arnaldo Carvalho de Melo

    Ben Hutchings
     

04 Mar, 2014

1 commit

  • Pull liblockdep fixes from Ingo Molnar:
    "A handful of build fixes for liblockdep"

    * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    tools/liblockdep: Use realpath for srctree and objtree
    tools/liblockdep: Add a stub for new rcu_is_watching
    tools/liblockdep: Mark runtests.sh as executable
    tools/liblockdep: Add include directory to allow tests to compile
    tools/liblockdep: Fix include of asm/hash.h
    tools/liblockdep: Fix initialization code path

    Linus Torvalds
     

28 Feb, 2014

2 commits

  • When compiling perf tool code with gcc 4.4.7 I'm getting
    following error:

    CC util/session.o
    cc1: warnings being treated as errors
    util/session.c: In function ‘perf_session_deliver_event’:
    tools/perf/util/include/linux/bitops.h:109: error: dereferencing pointer ‘p’ does break strict-aliasing rules
    tools/perf/util/include/linux/bitops.h:101: error: dereferencing pointer ‘p’ does break strict-aliasing rules
    util/session.c:697: note: initialized from here
    tools/perf/util/include/linux/bitops.h:101: note: initialized from here
    make[1]: *** [util/session.o] Error 1
    make: *** [util/session.o] Error 2

    The aliased types here are u64 and unsigned long pointers, which is safe
    for the find_first_bit processing.

    This error shows up for me only for gcc 4.4 on 32bit x86, even for
    -Wstrict-aliasing=3, while newer gcc are quiet and scream here for
    -Wstrict-aliasing={2,1}. Looks like newer gcc changed the rules for
    strict alias warnings.

    The gcc documentation offers workaround for valid aliasing by using
    __may_alias__ attribute:

    http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Type-Attributes.html

    Using this workaround for the find_first_bit function.

    Signed-off-by: Jiri Olsa
    Cc: Corey Ashford
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1393434867-20271-1-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • opensuse libbfd requires -lz -liberty to build. Add those to the BFD
    feature detection.

    Signed-off-by: Andi Kleen
    Acked-by: David Ahern
    Acked-by: Jiri Olsa
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Link: http://lkml.kernel.org/r/1389469379-13340-2-git-send-email-andi@firstfloor.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Andi Kleen
     

27 Feb, 2014

8 commits


24 Feb, 2014

2 commits

  • Stephane reported that perf report and annotate failed to process data
    using lots of (> 500) shared libraries. It was because of the limit on
    number of open files (ulimit -n).

    Currently when perf loads a DSO, it'll look for normal and dynamic
    symbol tables. And if it fails to find out both tables, it'll iterate
    all of possible symtab types. But many of them are useless since they
    have no additional information and the problem is that it's not closing
    those files even though they're not used. Fix it.

    Reported-by: Stephane Eranian
    Signed-off-by: Namhyung Kim
    Cc: Cody P Schafer
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1392859976-32760-2-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The TUI of perf report and top support annotation, but stdio and GTK
    don't. So it should be checked before calling hist_entry__inc_addr_
    samples() to avoid wasting resources that will never be used.

    perf annotate need it regardless of UI and sort keys, so the check
    of whether to allocate resources should be on the tools that have
    annotate as an option in the TUI, 'report' and 'top', not on the
    function called by all of them.

    It caused perf annotate on ppc64 to produce zero output, since the
    buckets were not being allocated.

    Reported-by: Anton Blanchard
    Signed-off-by: Namhyung Kim
    Cc: Anton Blanchard
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1392859976-32760-1-git-send-email-namhyung@kernel.org
    [ Renamed (report,top)__needs_annotate() to ui__has_annotation() ]
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

23 Feb, 2014

1 commit

  • Pull perf fixes from Ingo Molnar:
    "Misc fixlets from all around the place"

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf/x86/uncore: Fix IVT/SNB-EP uncore CBOX NID filter table
    perf/x86: Correctly use FEATURE_PDCM
    perf, nmi: Fix unknown NMI warning
    perf trace: Fix ioctl 'request' beautifier build problems on !(i386 || x86_64) arches
    perf trace: Add fallback definition of EFD_SEMAPHORE
    perf list: Fix checking for supported events on older kernels
    perf tools: Handle PERF_RECORD_HEADER_EVENT_TYPE properly
    perf probe: Do not add offset twice to uprobe address
    perf/x86: Fix Userspace RDPMC switch
    perf/x86/intel/p6: Add userspace RDPMC quirk for PPro

    Linus Torvalds
     

14 Feb, 2014

1 commit

  • Supporting decoding the ioctl 'request' parameter needs more work to
    properly support more architectures, the current approach doesn't work
    on at least powerpc and sparc, as reported by Ben Hutchings in
    http://lkml.kernel.org/r/1391593985.3003.48.camel@deadeye.wl.decadent.org.uk .

    Work around that by making it to be ifdefed for the architectures known
    to work with the current, limited approach, i386 and x86_64 till better
    code is written.

    Reported-by: Ben Hutchings
    Acked-by: Ben Hutchings
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: # 3.13 Fixes: 78645cf3ed32 ("perf trace: Initial beautifier for ioctl's 'cmd' arg")
    Link: http://lkml.kernel.org/n/tip-ss04k11insqlu329xh5g02q0@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo