22 Jul, 2015

1 commit

  • commit 60df4642a83546fa6ea8286f5094ce8c0906c3ec upstream.

    Make 3.81 doesn't have the 'undefine' command. Using undefine
    to clear LDFLAGS fails when make version 3.81 is used. Fix it
    to use override to clear LDFLAGS.

    Tested-by: Shuah Khan
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Michael Ellerman
    Link: http://lkml.kernel.org/r/20150514151225.GH23588@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Shuah Khan
    Cc: Sudip Mukherjee
    Signed-off-by: Greg Kroah-Hartman

    Arnaldo Carvalho de Melo
     

30 Jun, 2015

1 commit

  • commit 75e84ab906ef8935cff3df3d8929f1bafea81599 upstream.

    Invoking Makefile.perf with prefix= breaks the build since Makefile.perf
    hands that variable down to Makefile.build where it overrides

    prefix := $(subst ./,,$(OUTPUT)$(dir)/)

    leading to errors like this:

    No rule to make target '/usrabspath.o', needed by '/usrlibperf-in.o'

    Signed-off-by: Lukas Wunner
    Acked-by: Jiri Olsa
    Cc: David Ahern
    Fixes: c819e2cf2eb6f65d3208d195d7a0edef6108d5
    Link: http://lkml.kernel.org/r/5582c48a.84a22b0a.a918.5285SMTPIN_ADDED_MISSING@mx.google.com
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Greg Kroah-Hartman

    Lukas Wunner
     

06 Jun, 2015

1 commit

  • Pull x86 fixes from Ingo Molnar:
    "Misc fixes:

    - early_idt_handlers[] fix that fixes the build with bleeding edge
    tooling

    - build warning fix on GCC 5.1

    - vm86 fix plus self-test to make it harder to break it again"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/asm/irq: Stop relying on magic JMP behavior for early_idt_handlers
    x86/asm/entry/32, selftests: Add a selftest for kernel entries from VM86 mode
    x86/boot: Add CONFIG_PARAVIRT_SPINLOCKS quirk to arch/x86/boot/compressed/misc.h
    x86/asm/entry/32: Really make user_mode() work correctly for VM86 mode

    Linus Torvalds
     

01 Jun, 2015

1 commit

  • Pull turbostat tool fixes from Len Brown:
    "Just one minor kernel dependency in this batch -- added a #define to
    msr-index.h"

    * 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
    tools/power turbostat: update version number to 4.7
    tools/power turbostat: allow running without cpu0
    tools/power turbostat: correctly decode of ENERGY_PERFORMANCE_BIAS
    tools/power turbostat: enable turbostat to support Knights Landing (KNL)
    tools/power turbostat: correctly display more than 2 threads/core

    Linus Torvalds
     

30 May, 2015

1 commit

  • Test a couple of special cases in 32-bit kernels for entries
    from vm86 mode. This will OOPS both old kernels due to a bug
    and and 4.1-rc5 due to a regression I introduced, and it should
    make sure that the SYSENTER-from-vm86-mode hack in the kernel
    keeps working.

    Signed-off-by: Andy Lutomirski
    Cc: Jan Beulich
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Shuah Khan
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/09a9916761e0a9e42d4922f147af45a0079cc1e8.1432936374.git.luto@kernel.org
    Tests: 394838c96013 x86/asm/entry/32: Fix user_mode() misuses
    Tests: 7ba554b5ac69 x86/asm/entry/32: Really make user_mode() work correctly for VM86 mode
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     

28 May, 2015

5 commits


27 May, 2015

1 commit

  • With recent debugging, I noticed that bpf_jit_disasm segfaults when
    there's no debugging output from the JIT compiler to the kernel log.

    Reason is that when regexec(3) doesn't match on anything, start/end
    offsets are not being filled out and contain some uninitialized garbage
    from stack. Thus, we need zero out offsets first.

    Signed-off-by: Daniel Borkmann
    Signed-off-by: David S. Miller

    Daniel Borkmann
     

17 May, 2015

2 commits

  • Pull thermal fixes from Zhang Rui:
    "Specifics:

    - fix an issue in intel_powerclamp driver that idle injection target
    is not accurately maintained on newer Intel CPUs. Package C8 to
    C10 states are introduced on these CPUs but they were not included
    in the package c-state residency calculation. From Jacob Pan.

    - fix a problem that package c-state idle injection was missing on
    Broadwell server, by adding its id to intel_powerclamp driver.
    From Jacob Pan.

    - a couple of small fixes and cleanups from Joe Perches, Mathias
    Krause, Dan Carpenter and Anand Moon"

    * 'for-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
    tools/thermal: tmon: fixed the 'make install' command
    thermal: rockchip: fix an error code
    thermal/powerclamp: fix missing newer package c-states
    thermal/intel_powerclamp: add id for broadwell server
    thermal/intel_powerclamp: add __init / __exit annotations
    thermal: Use bool function return values of true/false not 1/0

    Linus Torvalds
     
  • …/git/shuah/linux-kselftest

    Pull kselftest fixes from Shuah Khan:
    "Urgent fix for Kselftest regression introduced in 4.1-rc1 by the new
    x86 test due to its hard dependency on 32-bit build environment.

    A set of 5 patches fix the make kselftest run and kselftest install"

    * tag 'linux-kselftest-4.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
    selftests, x86: Rework x86 target architecture detection
    selftests, x86: Remove useless run_tests rule
    selftests/x86: install tests
    selftest/x86: have no dependency on all when cross building
    selftest/x86: build both bitnesses

    Linus Torvalds
     

15 May, 2015

1 commit


13 May, 2015

9 commits


09 May, 2015

1 commit

  • To install tmon we issue "make install" which produces bellow error.

    root@odroidxu3:/usr/src/odroidxu3-4.y-testing/tools/thermal/tmon# make install
    mkdir -p /usr/bin
    install -m 755 -p "tmon" "/usr/bin/tmon"
    mkdir -p /
    install -m 644 -p "" "/"
    install: cannot stat ‘’: No such file or directory
    make: [install] Error 1 (ignored)

    Signed-off-by: Anand Moon
    Acked-by: Jacob Pan
    Signed-off-by: Zhang Rui

    Anand Moon
     

07 May, 2015

1 commit

  • Pull perf fixes from Ingo Molnar:
    "Mostly tooling fixes, but also an uncore PMU driver fix and an uncore
    PMU driver hardware-enablement addition"

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf probe: Fix segfault if passed with ''.
    perf report: Fix -T/--threads option to work again
    perf bench numa: Fix immediate meeting of convergence condition
    perf bench numa: Fixes of --quiet argument
    perf bench futex: Fix hung wakeup tasks after requeueing
    perf probe: Fix bug with global variables handling
    perf top: Fix a segfault when kernel map is restricted.
    tools lib traceevent: Fix build failure on 32-bit arch
    perf kmem: Fix compiles on RHEL6/OL6
    tools lib api: Undefine _FORTIFY_SOURCE before setting it
    perf kmem: Consistently use PRIu64 for printing u64 values
    perf trace: Disable events and drain events when forked workload ends
    perf trace: Enable events when doing system wide tracing and starting a workload
    perf/x86/intel/uncore: Move PCI IDs for IMC to uncore driver
    perf/x86/intel/uncore: Add support for Intel Haswell ULT (lower power Mobile Processor) IMC uncore PMUs
    perf/x86/intel: Add cpu_(prepare|starting|dying) for core_pmu

    Linus Torvalds
     

05 May, 2015

1 commit

  • Since parse_perf_probe_point() deals with a user passed argument, we
    should not assume it to be a valid string.

    Without this patch, if pass '' to perf probe, a segfault raises:

    $ perf probe -a ''
    Segmentation fault

    This patch checks argument of parse_perf_probe_point() before
    string processing.

    After this patch:

    $ perf probe -a ''

    usage: perf probe [] 'PROBEDEF' ['PROBEDEF' ...]
    or: perf probe [] --add 'PROBEDEF' [--add 'PROBEDEF' ...]
    ...

    Signed-off-by: Wang Nan
    Acked-by: Masami Hiramatsu
    Tested-by: Arnaldo Carvalho de Melo
    Cc: David Ahern
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Zefan Li
    Link: http://lkml.kernel.org/r/1430210769-94177-1-git-send-email-wangnan0@huawei.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Wang Nan
     

01 May, 2015

2 commits

  • The commit 512ae1bd6acb ("perf tools: Consolidate management of default
    sort orders") changed default value of the 'sort_order' variable to NULL
    indicating that users don't set any sort keys on the command line.

    However it missed to update a check in perf_evlist__tty_browse_hists()
    so that 'perf report -T' cannot show the per-thread values after the
    normal output. This patch fixes it to work again.

    Note that the -T option only works on --stdio and neither --sort nor
    --parent option was given.

    Signed-off-by: Namhyung Kim
    Cc: Andi Kleen
    Cc: David Ahern
    Cc: Jiri Olsa
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1430309328-28317-1-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • My patch to add install support for the powerpc selftests had a typo,
    leading to the three tests in the pmu directory itself not being
    installed.

    Fixes: 6faeeea44b84 ("selftests: Add install support for the powerpc tests")
    Signed-off-by: Michael Ellerman

    Michael Ellerman
     

30 Apr, 2015

1 commit

  • This reverts commit feba40362b11341bee6d8ed58d54b896abbd9f84.

    Although the principle of this change is good, the implementation has a
    few issues.

    Firstly we can sometimes fail to abort a syscall because r12 may have
    been clobbered by C code if we went down the virtual CPU accounting
    path, or if syscall tracing was enabled.

    Secondly we have decided that it is safer to abort the syscall even
    earlier in the syscall entry path, so that we avoid the syscall tracing
    path when we are transactional.

    So that we have time to thoroughly test those changes we have decided to
    revert this for this merge window and will merge the fixed version in
    the next window.

    NB. Rather than reverting the selftest we just drop tm-syscall from
    TEST_PROGS so that it's not run by default.

    Fixes: feba40362b11 ("powerpc/tm: Abort syscalls in active transactions")
    Signed-off-by: Michael Ellerman

    Michael Ellerman
     

28 Apr, 2015

5 commits

  • This patch fixes the race in the beginning of benchmark run when some
    threads hasn't got assigned curr_cpu yet so they don't occur in
    nodes-of-process stats and benchmark concludes that all remaining
    threads are converged already.

    The race can be reproduced with small amount of threads and some bigger
    amount of shared process memory, e.g. one process, two threads and 5GB
    of process memory.

    Signed-off-by: Petr Holasek
    Reviewed-by: Ingo Molnar
    Cc: Jiri Olsa
    Link: http://lkml.kernel.org/r/1429198699-25039-4-git-send-email-pholasek@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Petr Holasek
     
  • Corrected description and fixed function of --quiet argument.

    Signed-off-by: Petr Holasek
    Reviewed-by: Ingo Molnar
    Cc: Jiri Olsa
    Link: http://lkml.kernel.org/r/1429198699-25039-2-git-send-email-pholasek@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Petr Holasek
     
  • The futex-requeue benchmark can hang because of missing wakeups once the
    benchmark is done, ie:

    [Run 1]: Requeued 1024 of 1024 threads in 0.3290 ms
    perf: couldn't wakeup all tasks (135/1024)

    This bug, while perhaps suggesting missing wakeups in kernel futex code,
    is merely a consequence of the crappy FUTEX_CMP_REQUEUE man page,
    incorrectly mentioning that the number of requeued tasks is in fact
    returned, not the wakeups.

    This patch acknowledges this and updates the corresponding futex_wake
    code around it.

    Signed-off-by: Davidlohr Bueso
    Cc: Mel Gorman
    Link: http://lkml.kernel.org/r/1429894848.10273.44.camel@stgolabs.net
    Signed-off-by: Arnaldo Carvalho de Melo

    Davidlohr Bueso
     
  • There are missing curly braces which causes find_variable() return wrong
    value when probing with global variables.

    This problem can be reproduced as following:

    $ perf probe -v --add='generic_perform_write global_variable_for_test'
    ...
    Try to find probe point from debuginfo.
    Probe point found: generic_perform_write+0
    Searching 'global_variable_for_test' variable in context.
    An error occurred in debuginfo analysis (-2).
    Error: Failed to add events. Reason: No such file or directory (Code: -2)

    After this patch:

    $ perf probe -v --add='generic_perform_write global_variable_for_test'
    ...
    Converting variable global_variable_for_test into trace event.
    global_variable_for_test type is int.
    Found 1 probe_trace_events.
    Opening /sys/kernel/debug/tracing/kprobe_events write=1
    Added new event:
    Writing event: p:probe/generic_perform_write _stext+1237464
    global_variable_for_test=@global_variable_for_test+0:s32
    probe:generic_perform_write (on generic_perform_write with
    global_variable_for_test)

    You can now use it in all perf tools, such as:

    perf record -e probe:generic_perform_write -aR sleep 1

    Signed-off-by: He Kuang
    Acked-by: Masami Hiramatsu
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Wang Nan
    Link: http://lkml.kernel.org/r/1429949338-18678-1-git-send-email-hekuang@huawei.com
    Signed-off-by: Arnaldo Carvalho de Melo

    He Kuang
     
  • Perf top raise a warning if a kernel sample is collected but kernel map
    is restricted. The warning message needs to dereference al.map->dso...

    However, previous perf_event__preprocess_sample() doesn't always
    guarantee al.map != NULL, for example, when kernel map is restricted.

    This patch validates al.map before dereferencing, avoid the segfault.

    Before this patch:

    $ cat /proc/sys/kernel/kptr_restrict
    1
    $ perf top -p 120183
    perf: Segmentation fault
    -------- backtrace --------
    /path/to/perf[0x509868]
    /lib64/libc.so.6(+0x3545f)[0x7f9a1540045f]
    /path/to/perf[0x448820]
    /path/to/perf(cmd_top+0xe3c)[0x44a5dc]
    /path/to/perf[0x4766a2]
    /path/to/perf(main+0x5f5)[0x42e545]
    /lib64/libc.so.6(__libc_start_main+0xf4)[0x7f9a153ecbd4]
    /path/to/perf[0x42e674]

    And gdb call trace:

    Program received signal SIGSEGV, Segmentation fault.
    perf_event__process_sample (machine=0xa44030, sample=0x7fffffffa4c0, evsel=0xa43b00, event=0x7ffff41c3000, tool=0x7fffffffa8a0)
    at builtin-top.c:736
    736 !RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION]) ?
    (gdb) bt
    #0 perf_event__process_sample (machine=0xa44030, sample=0x7fffffffa4c0, evsel=0xa43b00, event=0x7ffff41c3000, tool=0x7fffffffa8a0)
    at builtin-top.c:736
    #1 perf_top__mmap_read_idx (top=top@entry=0x7fffffffa8a0, idx=idx@entry=0) at builtin-top.c:855
    #2 0x000000000044a5dd in perf_top__mmap_read (top=0x7fffffffa8a0) at builtin-top.c:872
    #3 __cmd_top (top=0x7fffffffa8a0) at builtin-top.c:997
    #4 cmd_top (argc=, argv=, prefix=) at builtin-top.c:1267
    #5 0x00000000004766a3 in run_builtin (p=p@entry=0x8a6ce8 , argc=argc@entry=3, argv=argv@entry=0x7fffffffdf70)
    at perf.c:371
    #6 0x000000000042e546 in handle_internal_command (argv=0x7fffffffdf70, argc=3) at perf.c:430
    #7 run_argv (argv=0x7fffffffdcf0, argcp=0x7fffffffdcfc) at perf.c:474
    #8 main (argc=3, argv=0x7fffffffdf70) at perf.c:589
    (gdb)

    Signed-off-by: Wang Nan
    Tested-by: Arnaldo Carvalho de Melo
    Cc: David Ahern
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Zefan Li
    Link: http://lkml.kernel.org/r/1429946703-80807-1-git-send-email-wangnan0@huawei.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Wang Nan
     

27 Apr, 2015

1 commit

  • Pull more power management and ACPI updates from Rafael Wysocki:
    "These are fixes mostly (intel_pstate, ACPI core, ACPI EC driver,
    cpupower tool), a new CPU ID for the Intel RAPL driver and one
    intel_pstate driver improvement that didn't make it to my previous
    pull requests due to timing.

    Specifics:

    - Fix a build warning in the intel_pstate driver showing up in
    non-SMP builds (Borislav Petkov)

    - Change one of the intel_pstate's P-state selection parameters for
    Baytrail and Cherrytrail CPUs to significantly improve performance
    at the cost of a small increase in energy consumption (Kristen
    Carlson Accardi)

    - Fix a NULL pointer dereference in the ACPI EC driver due to an
    unsafe list walk in the query handler removal routine (Chris
    Bainbridge)

    - Get rid of a false-positive lockdep warning in the ACPI container
    hot-remove code (Rafael J Wysocki)

    - Prevent the ACPI device enumeration code from creating device
    objects of a wrong type in some cases (Rafael J Wysocki)

    - Add Skylake processors support to the Intel RAPL power capping
    driver (Brian Bian)

    - Drop the stale MAINTAINERS entry for the ACPI dock driver that is
    regarded as part of the ACPI core and maintained along with it now
    (Chao Yu)

    - Fix cpupower tool breakage caused by a library API change in libpci
    3.3.0 (Lucas Stach)"

    * tag 'pm+acpi-4.1-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI / scan: Add a scan handler for PRP0001
    ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline()
    ACPI / EC: fix NULL pointer dereference in acpi_ec_remove_query_handler()
    MAINTAINERS: remove maintainship entry of docking station driver
    powercap / RAPL: Add support for Intel Skylake processors
    cpufreq: intel_pstate: Fix an annoying !CONFIG_SMP warning
    intel_pstate: Change the setpoint for Atom params
    cpupower: fix breakage from libpci API change

    Linus Torvalds
     

24 Apr, 2015

5 commits

  • In my i386 build, it failed like this:

    CC event-parse.o
    event-parse.c: In function 'print_str_arg':
    event-parse.c:3868:5: warning: format '%lu' expects argument of type 'long unsigned int',
    but argument 3 has type 'uint64_t' [-Wformat]

    Signed-off-by: Namhyung Kim
    Acked-by: Javi Merino
    Link: http://lkml.kernel.org/r/20150424020218.GF1905@sejong
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • 0d68bc92c48 breaks compiles on RHEL6/OL6:
    cc1: warnings being treated as errors
    builtin-kmem.c: In function ‘search_page_alloc_stat’:
    builtin-kmem.c:322: error: declaration of ‘stat’ shadows a global declaration
    node = &parent->rb_left;
    /usr/include/sys/stat.h:455: error: shadowed declaration is here
    builtin-kmem.c: In function ‘perf_evsel__process_page_alloc_event’:
    builtin-kmem.c:378: error: declaration of ‘stat’ shadows a global declaration
    /usr/include/sys/stat.h:455: error: shadowed declaration is here
    builtin-kmem.c: In function ‘perf_evsel__process_page_free_event’:
    builtin-kmem.c:431: error: declaration of ‘stat’ shadows a global declaration
    /usr/include/sys/stat.h:455: error: shadowed declaration is here

    Rename local variable to pstat to avoid the name conflict.

    Signed-off-by: David Ahern
    Link: http://lkml.kernel.org/r/1429033773-31383-1-git-send-email-david.ahern@oracle.com
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the
    built-in, default args. This causes perf builds to fail with:

    :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
    : note: this is the location of the previous definition cc1:
    all warnings being treated as errors

    To avoid this, undefine _FORTIFY_SOURCE before (possibly re-)defining it
    in tools/lib/api.

    v2 applies cleanly on top of already pulled kbuild changes for 4.1-rc1.

    Signed-off-by: Bobby Powers
    Acked-by: Jiri Olsa
    Cc: Dirk Gouders
    Cc: Michal Marek
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: linux-kbuild@vger.kernel.org
    Link: http://lkml.kernel.org/r/1429658381-3039-1-git-send-email-bobbypowers@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Bobby Powers
     
  • Building the perf tool for 32-bit ARM results in the following build
    error due to a combination of an incorrect conversion specifier and
    compiling with -Werror:

    builtin-kmem.c: In function ‘print_page_summary’:
    builtin-kmem.c:644:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ [-Werror=format=]
    nr_alloc_freed, (total_alloc_freed_bytes) / 1024);
    ^
    builtin-kmem.c:647:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ [-Werror=format=]
    (total_page_alloc_bytes - total_alloc_freed_bytes) / 1024);
    ^
    cc1: all warnings being treated as errors

    This patch fixes the problem by consistently using PRIu64 for printing
    out u64 values.

    Signed-off-by: Will Deacon
    Cc: David Ahern
    Cc: Jiri Olsa
    Cc: Joonsoo Kim
    Cc: Minchan Kim
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1429796437-1790-1-git-send-email-will.deacon@arm.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Will Deacon
     
  • We were not checking in the inner event processing loop if the forked workload
    had finished, which, on a busy system, may make it take a long time trying to
    drain events, entering a seemingly neverending loop, waiting for the system to
    get idle enough to make it drain the buffers.

    Fix it by disabling the events when 'done' is true, in the inner loop, to start
    draining what is in the buffers.

    Now:

    [root@ssdandy ~]# time trace --filter-pids 14003 -a sleep 1 | tail
    996.748 ( 0.002 ms): sh/30296 rt_sigprocmask(how: SETMASK, nset: 0x7ffc83418160, sigsetsize: 8) = 0
    996.751 ( 0.002 ms): sh/30296 rt_sigprocmask(how: BLOCK, nset: 0x7ffc834181f0, oset: 0x7ffc83418270, sigsetsize: 8) = 0
    996.755 ( 0.002 ms): sh/30296 rt_sigaction(sig: INT, act: 0x7ffc83417f50, oact: 0x7ffc83417ff0, sigsetsize: 8) = 0
    1004.543 ( 0.362 ms): tail/30198 ... [continued]: read()) = 4096
    1004.548 ( 7.791 ms): sh/30296 wait4(upid: -1, stat_addr: 0x7ffc834181a0) ...
    1004.975 ( 0.427 ms): tail/30198 read(buf: 0x7633f0, count: 8192) = 4096
    1005.390 ( 0.410 ms): tail/30198 read(buf: 0x765410, count: 8192) = 4096
    1005.743 ( 0.348 ms): tail/30198 read(buf: 0x7633f0, count: 8192) = 4096
    1006.197 ( 0.449 ms): tail/30198 read(buf: 0x765410, count: 8192) = 4096
    1006.492 ( 0.290 ms): tail/30198 read(buf: 0x7633f0, count: 8192) = 4096

    real 0m1.219s
    user 0m0.704s
    sys 0m0.331s
    [root@ssdandy ~]#

    Reported-by: Michael Petlan
    Suggested-by: Jiri Olsa
    Acked-by: Jiri Olsa
    Cc: Adrian Hunter
    Cc: Borislav Petkov
    Cc: David Ahern
    Cc: Don Zickus
    Cc: Frederic Weisbecker
    Cc: Namhyung Kim
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-p6kpn1b26qcbe47pufpw0tex@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo