08 Nov, 2011

5 commits

  • If the set_ftrace_filter is cleared by writing just whitespace to
    it, then the filter hash refcounts will be decremented but not
    updated. This causes two bugs:

    1) No functions will be enabled for tracing when they all should be

    2) If the users clears the set_ftrace_filter twice, it will crash ftrace:

    ------------[ cut here ]------------
    WARNING: at /home/rostedt/work/git/linux-trace.git/kernel/trace/ftrace.c:1384 __ftrace_hash_rec_update.part.27+0x157/0x1a7()
    Modules linked in:
    Pid: 2330, comm: bash Not tainted 3.1.0-test+ #32
    Call Trace:
    [] warn_slowpath_common+0x83/0x9b
    [] warn_slowpath_null+0x1a/0x1c
    [] __ftrace_hash_rec_update.part.27+0x157/0x1a7
    [] ? ftrace_regex_release+0xa7/0x10f
    [] ? kfree+0xe5/0x115
    [] ftrace_hash_move+0x2e/0x151
    [] ftrace_regex_release+0xba/0x10f
    [] fput+0xfd/0x1c2
    [] filp_close+0x6d/0x78
    [] sys_dup3+0x197/0x1c1
    [] sys_dup2+0x4f/0x54
    [] system_call_fastpath+0x16/0x1b
    ---[ end trace 77a3a7ee73794a02 ]---

    Link: http://lkml.kernel.org/r/20111101141420.GA4918@debian

    Reported-by: Rabin Vincent
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • A update is made to the sched:sched_switch event that adds some
    logic to the first parameter of the __print_flags() that shows the
    state of tasks. This change cause perf to fail parsing the flags.

    A simple fix is needed to have the parser be able to process ops
    within the argument.

    Cc: stable@vger.kernel.org
    Reported-by: Andrew Vagin
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • If cpu A calls jump_label_inc() just after atomic_add_return() is
    called by cpu B, atomic_inc_not_zero() will return value greater then
    zero and jump_label_inc() will return to a caller before jump_label_update()
    finishes its job on cpu B.

    Link: http://lkml.kernel.org/r/20111018175551.GH17571@redhat.com

    Cc: stable@vger.kernel.org
    Cc: Peter Zijlstra
    Acked-by: Jason Baron
    Signed-off-by: Gleb Natapov
    Signed-off-by: Steven Rostedt

    Gleb Natapov
     
  • A forced undef of a config value was used for testing and was
    accidently left in during the final commit. This causes x86 to
    run slower than needed while running function tracing as well
    as causes the function graph selftest to fail when DYNMAIC_FTRACE
    is not set. This is because the code in MCOUNT expects the ftrace
    code to be processed with the config value set that happened to
    be forced not set.

    The forced config option was left in by:
    commit 6331c28c962561aee59e5a493b7556a4bb585957
    ftrace: Fix dynamic selftest failure on some archs

    Link: http://lkml.kernel.org/r/20111102150255.GA6973@debian

    Cc: stable@vger.kernel.org
    Reported-by: Rabin Vincent
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • The pretty print of the lockdep debug splat uses just the lock name
    to show how the locking scenario happens. But when it comes to
    nesting locks, the output becomes confusing which takes away the point
    of the pretty printing of the lock scenario.

    Without displaying the subclass info, we get the following output:

    Possible unsafe locking scenario:

    CPU0 CPU1
    ---- ----
    lock(slock-AF_INET);
    lock(slock-AF_INET);
    lock(slock-AF_INET);
    lock(slock-AF_INET);

    *** DEADLOCK ***

    The above looks more of a A->A locking bug than a A->B B->A.
    By adding the subclass to the output, we can see what really happened:

    other info that might help us debug this:

    Possible unsafe locking scenario:

    CPU0 CPU1
    ---- ----
    lock(slock-AF_INET);
    lock(slock-AF_INET/1);
    lock(slock-AF_INET);
    lock(slock-AF_INET/1);

    *** DEADLOCK ***

    This bug was discovered while tracking down a real bug caught by lockdep.

    Link: http://lkml.kernel.org/r/20111025202049.GB25043@hostway.ca

    Cc: Peter Zijlstra
    Reported-by: Thomas Gleixner
    Tested-by: Simon Kirby
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

05 Nov, 2011

2 commits

  • Preds is no longer stored in a fixed-size stack. The max preds now
    is 2^14, and is way more than enough, so don't bother to document it.

    Link: http://lkml.kernel.org/r/4EAA5E54.1080102@cn.fujitsu.com

    Signed-off-by: Li Zefan
    Signed-off-by: Steven Rostedt

    Li Zefan
     
  • The system filter can be used to set multiple event filters that
    exist within the system. But currently it displays the last filter
    written that does not necessarily correspond to the filters within
    the system. The system filter itself is not used to filter any events.
    The system filter is just a means to set filters of the events within
    it.

    Because this causes an ambiguous state when the system filter reads
    a filter string but the events within the system have different strings
    it is best to just show a boiler plate:

    ### global filter ###
    # Use this to set filters for multiple events.
    # Only events with the given fields will be affected.
    # If no events are modified, an error message will be displayed here.

    If an error occurs while writing to the system filter, the system
    filter will replace the boiler plate with the error message as it
    currently does.

    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

03 Nov, 2011

1 commit

  • Though not all events have field 'prev_pid', it was allowed to do this:

    # echo 'prev_pid == 100' > events/sched/filter

    but commit 75b8e98263fdb0bfbdeba60d4db463259f1fe8a2 (tracing/filter: Swap
    entire filter of events) broke it without any reason.

    Link: http://lkml.kernel.org/r/4EAF46CF.8040408@cn.fujitsu.com

    Signed-off-by: Li Zefan
    Signed-off-by: Steven Rostedt

    Li Zefan
     

01 Nov, 2011

1 commit

  • Fix a bug introduced by e9dbfae5, which prevents event_subsystem from
    ever being released.

    Ref_count was added to keep track of subsystem users, not for counting
    events. Subsystem is created with ref_count = 1, so there is no need to
    increment it for every event, we have nr_events for that. Fix this by
    touching ref_count only when we actually have a new user -
    subsystem_open().

    Cc: stable@vger.kernel.org
    Signed-off-by: Ilya Dryomov
    Link: http://lkml.kernel.org/r/1320052062-7846-1-git-send-email-idryomov@gmail.com
    Signed-off-by: Steven Rostedt

    Ilya Dryomov
     

21 Oct, 2011

3 commits

  • Fglrx propietary driver has symbol names over 128 chars (:S). This
    breaks the function kallsyms__parse.

    This fix increases the size of KSYM_NAME_LEN, so kallsyms__parse can
    work on such kernels.

    The only counterparty, is that such function requires 128 more bytes to
    work.

    Acked-by: Pekka Enberg
    Cc: Anton Blanchard
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1319096606-11568-1-git-send-email-ricardo.ribalda@gmail.com
    Signed-off-by: Ricardo Ribalda Delgado
    Signed-off-by: Arnaldo Carvalho de Melo

    Ricardo Ribalda Delgado
     
  • We don't allocate the histogram data structures for --sort lists without
    "sym", so, just like was done for the menu, don't try to annotate when
    'a' is pressed, just warn the user about it.

    Reported-by: David Ahern
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-27mjg02s2mbw8lfxqv7jpzec@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Just another step in stopping the use of libnewt in perf.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-uy6s534uqxq8tenh6s3k8ocj@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

20 Oct, 2011

5 commits

  • Fixing the way the tracing information is stored within record command.
    The current implementation is causing issues for pipe output.

    Following commands fail currently:
    perf script syscall-counts ls
    perf record -e syscalls:sys_exit_read ls | ./perf report -i -

    The tracing information is part of the perf data file. It contains
    several files from within the tracing debugfs and procs directories.

    Beside some static header files, for each tracing event the format
    file is added. The /proc/kallsyms file is also added.

    The tracing data are stored with preceeding size. This is causing some
    dificulties for pipe output, since there's no way to tell debugfs/proc
    file size before reading it. So, for pipe output, all the debugfs files
    were read twice. Once to get the overall size and once to store the
    content itself. This can cause problem in case any of these file
    changed, within the storage time.

    To fix this behaviour and ensure the integrity of the tracing data, we:
    - read debugfs/proc file into the temp file
    - get temp file size and dump it to the pipe
    - dump the temp file contents to the pipe

    Cc: Eric Dumazet
    Cc: Ingo Molnar
    Cc: Neil Horman
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/20111020135943.GD2092@jolsa.brq.redhat.com
    Signed-off-by: Jiri Olsa
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • And also no leed to show the [.] (level: k, . for userspace) when
    showing just one DSO.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-4h3f6ro5o7ebepjbssxf0dd3@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-rf01wktu1e3f3az32nry86vu@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Following the 'perf report' model we don't zap hist_entry instances from
    the rb tree, we just keep them with he->filtered set to a mask of the
    filters applied to it (thread, parent, DSO so far).

    In top we need to decay even filtered entries, but we better not touch
    total_period for them...

    Now everything seems to work when filters are applied on top as they
    worked in 'report', i.e. both dynamic and static hist entry browsing
    works with filters.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-yt4xsbq20u9x9ypuwwyw2kao@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • We lost that when we move it outside hist_entry__snprintf, but better
    leave it untangled of 'perf diff' stuff (pair_hist, etc).

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-qlhb6ictf5twykog6x344s0b@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

19 Oct, 2011

14 commits

  • TUI help states for multiple event sessions the TAB/UNTAB keys are used
    to switch events. For single event sessions (e.g., the default) the tab
    key currently causes the tui to exit. Change that to do nothing since
    there is not no second event to switch to.

    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1319045867-12728-1-git-send-email-dsahern@gmail.com
    Signed-off-by: David Ahern
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • When the user navigates to another annotation browser pressing -> on a
    'callq' line, on exit (
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-z5vgver0jgevbiicfndqni5g@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Feature bitmap is declared as an array of unsigned longs -- not good
    since its size can differ between the host that generated the data file
    and the host analyzing the file.

    We need to handle endianness, but we don't know the size of the unsigned
    long where the file was generated. Take a best guess at determining it:
    try 64-bit swap first (ie., file created on a 64-bit host), and check if
    the hostname feature bit is set (this feature bit is forced on as of
    fbe96f2). If the bit is not, undo the 64-bit swap and try a 32-bit
    swap. If the hostname bit is still not set (e.g., older data file), punt
    and fallback to the original behavior -- clearing all feature bits and
    setting buildid.

    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/1318980841-12616-1-git-send-email-dsahern@gmail.com
    Signed-off-by: David Ahern
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • Following a prelink run mapped files for long running processes can show
    as deleted. The current message suggests restarting long running
    processes. Add to that a suggestion that prelink might be the cause.

    Old message:
    /lib64/libc-2.14.so was updated, restart the long running
    apps that use it!

    New message:
    /lib64/libc-2.14.so was updated (is prelink enabled?).
    Restart the long running apps that use it!

    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1318985085-20776-1-git-send-email-dsahern@gmail.com
    Signed-off-by: David Ahern
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • "perf script -v" emits:

    unknown feature 3, continuing...
    unknown feature 4, continuing...
    unknown feature 5, continuing...
    unknown feature 6, continuing...
    unknown feature 7, continuing...
    unknown feature 8, continuing...
    unknown feature 9, continuing...
    unknown feature 10, continuing...
    unknown feature 11, continuing...
    unknown feature 12, continuing...
    unknown feature 13, continuing...
    unknown feature 14, continuing...

    These are all new features added by fbe96f2. Update
    perf_file_section__process to know they are valid feature ids.

    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/1318984464-20650-1-git-send-email-dsahern@gmail.com
    Signed-off-by: David Ahern
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • Now that we dynamicly add entries on the timer we need to not only
    traverse all entries when the user zooms into threads and/or DSOs, but
    as well after that apply it to the new batches of hist entries in
    hists__collapse_resort.

    Reported-by: Mike Galbraith
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-zustn633c7hnrae94x6nld1p@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Since with dynamic addition of new hist entries we need to apply those
    filters as we merge new batches of hist_entry instances, for instance in
    perf top.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-zjhhf8kh9w1buty9p10od6rz@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • So slang after all _has_ a 'default' color, call me color blind. Change
    the default to it.

    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: Tom Zanussi
    Link: http://lkml.kernel.org/n/tip-1dfxivxv0jhwldpds3v4zla2@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • And like it was in the old top.

    Another change so that the familiarity with the old visual is maintained.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-ypmyx9p0ah4byqaygrnb09x8@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Just use as a starting point the "[colors]" section of
    tools/perf/Documentation/perfconfig.example.

    Changed the colors to be the ones in the old perf tool if used in a green on
    black xterm.

    The next patches should allow using the colors configured for the xterm.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-3vqmyerkaqltqolmnlehonew@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • That was just filling the screen with blue, even if not a crash, not
    something pleasant nor useful ;-)

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-58znjqvan9b1mv5pojxboidg@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • We can't have color correctly set there because in libslang (and in a future
    GUI) the colors must be set on a separate function call, so move that part to a
    separate function and make the stdio fprintf function call it.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-jpgy42438ce9tgbqppm397lq@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • The selection and scroll bar are really needed only when the user starts
    navigating, before that it just provide distractions.

    This also brings the initial screen to look more like the stdio UI,
    which more people are used to.

    The new code is flexible enough that menu like browsers can opt out and
    start with those UI elements.

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-jfgok30kkerpfw8wtcltgy6z@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • Resetting the terminal to a sane state.

    Reported-by: Ingo Molnar
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-myu44ujofadcy3y6an2mk383@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

18 Oct, 2011

6 commits

  • The navigation keys were missing (UP, DOWN arrows, etc).

    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-3pnln0bws5v0yoqwd3f020nx@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • When compiling an i386_defconfig kernel with
    gcc-4.6.1-9.fc15.i686, I noticed a warning about the asm operand
    for test_bit in kprobes' can_boost. I discovered that this
    caused only the first long of twobyte_is_boostable[] to be
    output.

    Jakub filed and fixed gcc PR50571 to correct the warning and
    this output issue. But to solve it for less current gcc, we can
    make kprobes' twobyte_is_boostable[] volatile, and it won't be
    optimized out.

    Before:

    CC arch/x86/kernel/kprobes.o
    In file included from include/linux/bitops.h:22:0,
    from include/linux/kernel.h:17,
    from [...]/arch/x86/include/asm/percpu.h:44,
    from [...]/arch/x86/include/asm/current.h:5,
    from [...]/arch/x86/include/asm/processor.h:15,
    from [...]/arch/x86/include/asm/atomic.h:6,
    from include/linux/atomic.h:4,
    from include/linux/mutex.h:18,
    from include/linux/notifier.h:13,
    from include/linux/kprobes.h:34,
    from arch/x86/kernel/kprobes.c:43:
    [...]/arch/x86/include/asm/bitops.h: In function ‘can_boost.part.1’:
    [...]/arch/x86/include/asm/bitops.h:319:2: warning: use of memory input without lvalue in asm operand 1 is deprecated [enabled by default]

    $ objdump -rd arch/x86/kernel/kprobes.o | grep -A1 -w bt
    551: 0f a3 05 00 00 00 00 bt %eax,0x0
    554: R_386_32 .rodata.cst4

    $ objdump -s -j .rodata.cst4 -j .data arch/x86/kernel/kprobes.o

    arch/x86/kernel/kprobes.o: file format elf32-i386

    Contents of section .data:
    0000 48000000 00000000 00000000 00000000 H...............
    Contents of section .rodata.cst4:
    0000 4c030000 L...

    Only a single long of twobyte_is_boostable[] is in the object
    file.

    After, with volatile:

    $ objdump -rd arch/x86/kernel/kprobes.o | grep -A1 -w bt
    551: 0f a3 05 20 00 00 00 bt %eax,0x20
    554: R_386_32 .data

    $ objdump -s -j .rodata.cst4 -j .data arch/x86/kernel/kprobes.o

    arch/x86/kernel/kprobes.o: file format elf32-i386

    Contents of section .data:
    0000 48000000 00000000 00000000 00000000 H...............
    0010 00000000 00000000 00000000 00000000 ................
    0020 4c030000 0f000200 ffff0000 ffcff0c0 L...............
    0030 0000ffff 3bbbfff8 03ff2ebb 26bb2e77 ....;.......&..w

    Now all 32 bytes are output into .data instead.

    Signed-off-by: Josh Stone
    Acked-by: Masami Hiramatsu
    Cc: Srikar Dronamraju
    Cc: Jakub Jelinek
    Link: http://lkml.kernel.org/r/1318899645-4068-1-git-send-email-jistone@redhat.com
    Signed-off-by: Ingo Molnar

    Josh Stone
     
  • …stedt/linux-trace into perf/core

    Ingo Molnar
     
  • Atomic64 is now a valid type in Linux. Archs that do not have their own
    version of atomic64 operators are to use the generic operations.

    The m32r architecture needs to define GENERIC_ATOMIC64.

    Link: http://lkml.kernel.org/r/20111013085936.GA13046@elte.hu
    Link: http://lkml.kernel.org/r/1318516816.12224.12.camel@gandalf.stny.rr.com
    Link: http://lkml.kernel.org/r/20111017185440.GB5545@elte.hu

    Acked-by: Hirokazu Takata
    Acked-by: David Rientjes
    Reported-by: Ingo Molnar
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • Ingo Molnar
     
  • …stedt/linux-trace into perf/core

    Ingo Molnar
     

17 Oct, 2011

3 commits

  • CC util/ui/browsers/annotate.o
    In file included from util/ui/browsers/annotate.c:2:0:
    util/ui/browsers/../helpline.h:9:42: error: expected declaration
    specifiers or ‘...’ before ‘va_list’
    CC util/ui/browsers/hists.o
    make: *** [util/ui/browsers/annotate.o] Error 1
    make: *** Waiting for unfinished jobs....

    Signed-off-by: Mike Galbraith
    Link: http://lkml.kernel.org/n/tip-9vefl2807smi7t4luhs00tg6@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Mike Galbraith
     
  • We were not recognizing 'E' as a hotkey due to a bug introduced when
    switching to the new, hist_entry based top. Fix it by returning that 'E'
    is mapped if evlist->nr_entries > 1.

    Reported-by: Mike Galbraith
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-zcx055vnhagddvqlaqxvdhtb@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     
  • The new decay routine (__hists__decay_entries) wasn't being passed the
    toggles, fix it.

    Reported-by: Mike Galbraith
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/n/tip-hg6m0mi1colket982oq9hhly@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo