03 Aug, 2012

3 commits

  • The clean target uses brace expansion to remove some generated files. However,
    the default shells on many systems do not support this feature resulting in
    some generated files not being removed by clean.

    Signed-off-by: Palmer Cox
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1343598883-17907-1-git-send-email-p@lmercox.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Palmer Cox
     
  • Built on rblist - like strlist. Used in the next patch.

    Signed-off-by: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1343709095-7089-4-git-send-email-dsahern@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     
  • rblist is the rbtree based code from strlist. It will be the common code
    for strlist and the to-be-introduced intlist.

    Signed-off-by: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1343709095-7089-2-git-send-email-dsahern@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     

25 Jul, 2012

2 commits

  • Bison 2.6 started to generate parse_events_parse() declaration in header. In
    this case we have redundant redeclaration:

    util/parse-events.c:29:5: error: redundant redeclaration of ‘parse_events_parse’ [-Werror=redundant-decls]
    In file included from util/parse-events.c:14:0:
    util/parse-events-bison.h:99:5: note: previous declaration of ‘parse_events_parse’ was here
    cc1: all warnings being treated as errors

    Let's disable -Wredundant-decls for util/parse-events.c since it includes
    header we can't control.

    Signed-off-by: Kirill A. Shutemov
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/20120723210407.GA25186@shutemov.name
    Signed-off-by: Arnaldo Carvalho de Melo

    Kirill A. Shutemov
     
  • Adding automated test for DSO data reading. Testing raw/cached reads
    from different file/cache locations.

    Signed-off-by: Jiri Olsa
    Cc: Arun Sharma
    Cc: Benjamin Redelings
    Cc: Corey Ashford
    Cc: Cyrill Gorcunov
    Cc: Frank Ch. Eigler
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Masami Hiramatsu
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Robert Richter
    Cc: Stephane Eranian
    Cc: Tom Zanussi
    Cc: Ulrich Drepper
    Link: http://lkml.kernel.org/r/1342959280-5361-18-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

28 Jun, 2012

1 commit

  • References to OUTPUT should not be followed by a '/'. When a build
    output directory is not specified for this case you get:

    gcc -o builtin-annotate.o -c ... -I/util ...

    which is wrong.

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

    David Ahern
     

20 Jun, 2012

2 commits

  • The GtkInfoBar is a modern UI component to display messages without
    bothering the main window. It'll be used for showing a warning message.

    As the GtkInfoBar requires 2.18 (or newer) version of GTK+ library, add
    availability check to Makefile too.

    Suggested-by: Sunjin Yang
    Signed-off-by: Namhyung Kim
    Acked-by: Pekka Enberg
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1338265382-6872-7-git-send-email-namhyung@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The struct perf_error_ops is for flexible error logging.

    We can register appropriate functions based on front-end.

    Signed-off-by: Namhyung Kim
    Acked-by: Pekka Enberg
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1338265382-6872-4-git-send-email-namhyung@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

25 May, 2012

1 commit

  • As:

    make DEBUG=1 -C tools/perf

    disables optimizations and _FORTIFY_SOURCE in recent distros requires
    optimizations to be enabled, seen on a Fedora 17 system:

    [acme@Fedora17 linux]$ make DEBUG=1 O=/home/acme/git/build/perf/ -C
    tools/perf install
    In file included from /usr/include/sys/types.h:26:0,
    from /usr/include/libelf.h:53,
    from /usr/include/gelf.h:53,
    from /usr/include/elfutils/libdw.h:53,
    from :2:
    /usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires
    compiling with optimization (-O) [-Werror=cpp

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

    Arnaldo Carvalho de Melo
     

22 May, 2012

4 commits

  • Although perf depends on the libtraceevent, it cannot know when it needs
    to be rebuilt. So just try to rebuild it always in order to make sure we
    use the latest version.

    While at it, silence annoying directory change messages.

    Signed-off-by: Namhyung Kim
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1337677434-4881-2-git-send-email-namhyung.kim@lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Change some variable names according to new library name.

    Signed-off-by: Namhyung Kim
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1337677434-4881-1-git-send-email-namhyung.kim@lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Adding PARSER_DEBUG Makefile variable to enable building event scanner/
    parser with debug enabled. This results in verbose output right out of
    the scanner/parser.

    It's useful for debuging the event parser. Keeping this only for event
    parser so far.

    Signed-off-by: Jiri Olsa
    Cc: Corey Ashford
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1337584373-2741-3-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Moving event parsing specific tests into separated file:

    util/parse-events-test.c

    Also changing the code a bit to ease running separate tests.

    Signed-off-by: Jiri Olsa
    Cc: Corey Ashford
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1337584373-2741-2-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

21 May, 2012

1 commit


19 May, 2012

1 commit

  • Merge reason: We are going to queue up a dependent patch:

    "perf tools: Move parse event automated tests to separated object"

    That depends on:

    commit e7c72d8
    perf tools: Add 'G' and 'H' modifiers to event parsing

    Conflicts:
    tools/perf/builtin-stat.c

    Conflicted with the recent 'perf_target' patches when checking the
    result of perf_evsel open routines to see if a retry is needed to cope
    with older kernels where the exclude guest/host perf_event_attr bits
    were not used.

    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

07 May, 2012

1 commit

  • We don't know what types of warnings different versions of flex
    and bison combined with different versions of gcc is going to
    generate, so just punt and don't warn about anything.

    This fixes the build of perf for me on an openSUSE 12.1 system.

    Signed-off-by: Greg Kroah-Hartman
    Cc: Peter Zijlstra
    Cc: Paul Mackerras
    Cc: Arnaldo Carvalho de Melo
    Link: http://lkml.kernel.org/r/20120504183254.GA11154@kroah.com
    Signed-off-by: Ingo Molnar

    Greg Kroah-Hartman
     

03 May, 2012

2 commits

  • Now setup_browser can handle gtk2 front-end so split the TUI code to
    ui/tui/setup.c in order to remove dependency.

    To this end, make ui__init/exit global symbols and take an argument.
    Also split gtk code to ui/gtk/setup.c.

    Signed-off-by: Namhyung Kim
    Acked-by: Pekka Enberg
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1335761711-31403-5-git-send-email-namhyung.kim@lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • For further work on perf_target, it'd be better off splitting the code
    into a separate file.

    Signed-off-by: Namhyung Kim
    Reviewed-by: David Ahern
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1335417327-11796-9-git-send-email-namhyung.kim@lge.com
    [ committer note: Fixed perl build by using stdbool and types.h in target.h ]
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

25 Apr, 2012

3 commits

  • The event parsing code in perf was originally copied from trace-cmd
    but never was kept up-to-date with the changes that was done there.
    The trace-cmd libtraceevent.a code is much more mature than what is
    currently in perf.

    This updates the code to use wrappers to handle the calls to the
    new event parsing code. The new code requires a handle to be pass
    around, which removes the global event variables and allows
    more than one event structure to be read from different files
    (and different machines).

    But perf still has the old global events and the code throughout
    perf does not yet have a nice way to pass around a handle.
    A global 'pevent' has been made for perf and the old calls have
    been created as wrappers to the new event parsing code that uses
    the global pevent.

    With this change, perf can later incorporate the pevent handle into
    the perf structures and allow more than one file to be read and
    compared, that contains different events.

    Signed-off-by: Steven Rostedt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: Steven Rostedt
    Cc: Borislav Petkov
    Cc: Jiri Olsa
    Cc: Arun Sharma
    Cc: Namhyung Kim
    Signed-off-by: Frederic Weisbecker

    Steven Rostedt
     
  • Have building perf also build libtraceevent.a. Currently, perf does
    not use the code within libtraceevent.a, but it soon will.

    Signed-off-by: Steven Rostedt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: Steven Rostedt
    Cc: Borislav Petkov
    Cc: Jiri Olsa
    Cc: Arun Sharma
    Cc: Namhyung Kim
    Signed-off-by: Frederic Weisbecker

    Steven Rostedt
     
  • Move the trace-event-parse.c code that originally came from trace-cmd into
    their own files. The new file will be called trace-parse-events.c, as
    the name of trace-cmd's file was parse-events.c too, but it conflicted
    with the parse-events.c file in perf that parses the command line.

    This tries to update the code with mimimal changes.

    Perf specific code stays in the trace-event-parse.[ch] files and
    the common parsing code is now in trace-parse-events.c and
    trace-parse-events.h.

    Signed-off-by: Steven Rostedt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: Steven Rostedt
    Cc: Borislav Petkov
    Cc: Jiri Olsa
    Cc: Arun Sharma
    Cc: Namhyung Kim
    Signed-off-by: Frederic Weisbecker

    Steven Rostedt
     

17 Apr, 2012

1 commit

  • The flex and bison tools generate arch-independent C code so its
    binaries are not prefixed with the target-arch prefix. With this patch
    the Linux 3.4-rc2 can be successfuly build on OE-Core.

    Signed-off-by: Otavio Salvador
    Link: http://lkml.kernel.org/r/1334148270-13139-1-git-send-email-otavio@ossystems.com.br
    Signed-off-by: Arnaldo Carvalho de Melo

    Otavio Salvador
     

15 Apr, 2012

1 commit

  • Currently the parsers objects (bison/flex related) are each time perf
    is built. No matter the generated files are already in place, the
    parser generation is executed every time.

    Changing the rules to have proper flex/bison objects generation
    dependencies.

    The parsers code is not rebuilt until the flex/bison source files
    are touched. Also when flex/bison source is changed, only dependent
    objects are rebuilt.

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

    Jiri Olsa
     

13 Apr, 2012

1 commit

  • In case the user specified NO_GTK2 on the make cmdline, compilation
    would fail with undefined symbol because the Makefile would not set the
    correct cpp variable: NO_GTK2 vs. NO_GTK2_SUPPORT.

    This patch renames the variable to the correct name.

    Signed-off-by: Stephane Eranian
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/20120410103513.GA9229@quad
    Signed-off-by: Arnaldo Carvalho de Melo

    Stephane Eranian
     

12 Apr, 2012

4 commits

  • Move those files to new directory in order to be prepared to
    further UI work. Makefile and header file pathes are adjusted
    accordingly. Also fix a build breakage if NO_GTK2=1 is given.

    Signed-off-by: Namhyung Kim
    Suggested-by: Arnaldo Carvalho de Melo
    Acked-by: Pekka Enberg
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra

    Namhyung Kim
     
  • Move those files to new directory in order to be prepared to further UI
    work. Makefile and header file pathes are adjusted accordingly.

    Signed-off-by: Namhyung Kim
    Suggested-by: Arnaldo Carvalho de Melo
    Acked-by: Pekka Enberg
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra

    Namhyung Kim
     
  • Currently the parsers objects (bison/flex related) are each time perf
    is built. No matter the generated files are already in place, the
    parser generation is executed every time.

    Changing the rules to have proper flex/bison objects generation
    dependencies.

    The parsers code is not rebuilt until the flex/bison source files
    are touched. Also when flex/bison source is changed, only dependent
    objects are rebuilt.

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

    Jiri Olsa
     
  • Put generic enough build settings which could be reused by other tools
    into a common Makefile.include file.

    This commit reintroduces QUIET_SUBDIR{0,1} (see a3d1ee10d1bf) which are
    going to be used in the following patches.

    Signed-off-by: Borislav Petkov
    Cc: Ingo Molnar
    Cc: Michal Marek
    Cc: Sam Ravnborg
    Link: http://lkml.kernel.org/r/1334162178-17152-2-git-send-email-bp@amd64.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Borislav Petkov
     

31 Mar, 2012

1 commit


30 Mar, 2012

1 commit

  • These should not be in the Git history - they are auto-generated.

    Extend the Makefile rules of the parser files to include the generation
    run.

    Signed-off-by: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/20120327183335.GA27621@gmail.com
    [ committer note: Fixed up O= handling ]
    Signed-off-by: Arnaldo Carvalho de Melo

    Ingo Molnar
     

26 Mar, 2012

1 commit

  • When merged to Linus's latest tree the perf build is broken
    due to following change in lib/rbtree.c object:

    lib: reduce the use of module.h wherever possible
    commit 8bc3bcc93a2b4e47d5d410146f6546bca6171663
    Author: Paul Gortmaker
    Date: Wed Nov 16 21:29:17 2011 -0500

    We need to move module.h header into export.h.

    Signed-off-by: Jiri Olsa
    Cc: acme@redhat.com
    Cc: a.p.zijlstra@chello.nl
    Cc: paulus@samba.org
    Cc: cjashfor@linux.vnet.ibm.com
    Cc: fweisbec@gmail.com
    Link: http://lkml.kernel.org/r/1332753425-3299-1-git-send-email-jolsa@redhat.com
    Signed-off-by: Ingo Molnar

    Jiri Olsa
     

23 Mar, 2012

1 commit


20 Mar, 2012

1 commit

  • This patch adds a simple GTK2-based browser to 'perf report' that's
    based on the TTY-based browser in builtin-report.c.

    To launch "perf report" using the new GTK interface just type:

    $ perf report --gtk

    The interface is somewhat limited in features at the moment:

    - No callgraph support

    - No KVM guest profiling support

    - No color coding for percentages

    - No sorting from the UI

    - ..and many, many more!

    That said, I think this patch a reasonable start to build future features on.

    Signed-off-by: Pekka Enberg
    Cc: Colin Walters
    Cc: Peter Zijlstra
    Cc: Paul Mackerras
    Cc: Ingo Molnar
    Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1202231952410.6689@tux.localdomain
    [ committer note: Added #pragma to make gtk no strict prototype problem go
    away as suggested by Colin Walters modulo avoiding push/pop ]
    Signed-off-by: Arnaldo Carvalho de Melo

    Pekka Enberg
     

17 Mar, 2012

2 commits

  • Adding pmu object which provides interface to pmu's sysfs
    event format definition located at:
    ${sysfs_mount}/bus/event_source/devices/${pmu}/format

    Following interface is exported:
    struct perf_pmu* perf_pmu__find(char *name);
    - this function returns pmu object, which is then
    passed as a handle to other interface functions

    int perf_pmu__config(struct perf_pmu *pmu, struct perf_event_attr *attr,
    struct list_head *head_terms);
    - this function configures perf_event_attr struct based
    on pmu's format definitions and config terms data,
    containined in head_terms list.

    Parser generator is used to retrive the pmu's format definition.
    The generated parser is part of the patch. Added makefile rule
    'pmu-parser' to generate the parser code out of the bison/flex
    sources.

    Added builtin test 'Test perf pmu format parsing', which could
    be run like:
    perf test pmu

    Acked-by: Peter Zijlstra
    Signed-off-by: Jiri Olsa
    Link: http://lkml.kernel.org/n/tip-errz96u1668gj9wlop1zhpht@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Changing event parsing to use flex/bison parse generator.
    The event syntax stays as it was.

    grammar description:

    events: events ',' event | event

    event: event_def PE_MODIFIER_EVENT | event_def

    event_def: event_legacy_symbol sep_dc |
    event_legacy_cache sep_dc |
    event_legacy_breakpoint sep_dc |
    event_legacy_tracepoint sep_dc |
    event_legacy_numeric sep_dc |
    event_legacy_raw sep_dc

    event_legacy_symbol: PE_NAME_SYM

    event_legacy_cache: PE_NAME_CACHE_TYPE '-' PE_NAME_CACHE_OP_RESULT '-' PE_NAME_CACHE_OP_RESULT |
    PE_NAME_CACHE_TYPE '-' PE_NAME_CACHE_OP_RESULT |
    PE_NAME_CACHE_TYPE

    event_legacy_raw: PE_SEP_RAW PE_VALUE

    event_legacy_numeric: PE_VALUE ':' PE_VALUE

    event_legacy_breakpoint: PE_SEP_BP ':' PE_VALUE ':' PE_MODIFIER_BP

    event_breakpoint_type: PE_MODIFIER_BPTYPE | empty

    PE_NAME_SYM: cpu-cycles|cycles |
    stalled-cycles-frontend|idle-cycles-frontend |
    stalled-cycles-backend|idle-cycles-backend |
    instructions |
    cache-references |
    cache-misses |
    branch-instructions|branches |
    branch-misses |
    bus-cycles |
    cpu-clock |
    task-clock |
    page-faults|faults |
    minor-faults |
    major-faults |
    context-switches|cs |
    cpu-migrations|migrations |
    alignment-faults |
    emulation-faults

    PE_NAME_CACHE_TYPE: L1-dcache|l1-d|l1d|L1-data |
    L1-icache|l1-i|l1i|L1-instruction |
    LLC|L2 |
    dTLB|d-tlb|Data-TLB |
    iTLB|i-tlb|Instruction-TLB |
    branch|branches|bpu|btb|bpc |
    node

    PE_NAME_CACHE_OP_RESULT: load|loads|read |
    store|stores|write |
    prefetch|prefetches |
    speculative-read|speculative-load |
    refs|Reference|ops|access |
    misses|miss

    PE_MODIFIER_EVENT: [ukhp]{0,5}

    PE_MODIFIER_BP: [rwx]

    PE_SEP_BP: 'mem'

    PE_SEP_RAW: 'r'

    sep_dc: ':' |

    Added flex/bison files for event grammar parsing. The generated
    parser is part of the patch. Added makefile rule 'event-parser'
    to generate the parser code out of the bison/flex sources.

    Acked-by: Peter Zijlstra
    Signed-off-by: Jiri Olsa
    Link: http://lkml.kernel.org/n/tip-u4pfig5waq3ll2bfcdex8fgi@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

16 Mar, 2012

1 commit

  • Add rules to generate pre-processed files (just like are available for
    the normal kernel build), and adjust the rule to create assembly files
    from C ones to produce its output in the output directory rather than
    in the source tree.

    E.g.

    $ make -C tools/perf/ O=/tmp/perf /tmp/perf/builtin-top.i
    make: Entering directory `/home/git/linux/tools/perf'
    CC /tmp/perf/builtin-top.i
    make: Leaving directory `/home/git/linux/tools/perf'
    $ wc -l /tmp/perf/builtin-top.i
    31379 /tmp/perf/builtin-top.i
    $

    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/4F588A0802000078000770FF@nat28.tlf.novell.com
    Signed-off-by: Jan Beulich
    Signed-off-by: Arnaldo Carvalho de Melo

    Jan Beulich
     

14 Mar, 2012

1 commit

  • On ancient systems I get this build failure:

    util/../../../arch/x86/include/asm/unistd.h:67:29: error: asm/unistd_64.h: No such file or directory
    In file included from util/cache.h:7,
    from builtin-test.c:8:
    util/../perf.h: In function ‘sys_perf_event_open’:In file included from util/../perf.h:16
    perf.h:170: error: ‘__NR_perf_event_open’ undeclared (first use in this function)

    The reason is that this old system does not have the split
    unistd.h headers yet, from which to pick up the syscall
    definitions.

    Add the syscall numbers to the already existing i386 and x86_64
    blocks in perf.h, and also provide empty include file stubs.

    With this patch perf builds and works fine on 5 years old
    user-space as well.

    Cc: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Link: http://lkml.kernel.org/n/tip-jctwg64le1w47tuaoeyftsg9@git.kernel.org
    Signed-off-by: Ingo Molnar
    Signed-off-by: Arnaldo Carvalho de Melo

    Ingo Molnar
     

05 Mar, 2012

1 commit

  • There are some variable arguments can be specified on make invocation,
    but some of them are missing descriptions so that user cannot be
    informed easily. Fix it.

    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1329980894-4289-1-git-send-email-namhyung.kim@lge.com
    Signed-off-by: Namhyung Kim
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

14 Feb, 2012

2 commits

  • Adding sysfs object to provide sysfs mount information in the same way
    as debugfs object does.

    The object provides following function:
    sysfs_find_mountpoint

    which returns the sysfs mount mount.

    Cc: Corey Ashford
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1327674868-10486-4-git-send-email-jolsa@redhat.com
    Signed-off-by: Jiri Olsa
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • The perf python extention (perf.so) file lacks its dependencies in the
    Makefile so that it cannot be refreshed if one of source files it depends
    is changed. Fix it by putting them in a separate file and processing it in
    both of Makefile and setup.py.

    Reported-by: Arnaldo Carvalho de Melo
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/1329043524-12470-1-git-send-email-namhyung@gmail.com
    Signed-off-by: Namhyung Kim
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim