17 Apr, 2014

1 commit

  • Pull perf fixes from Ingo Molnar:
    "Tooling fixes, plus a simple hardware-enablement patch for the Intel
    RAPL PMU (energy use measurement) on Haswell CPUs, which I hope is
    still fine at this stage"

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf tools: Instead of redirecting flex output, use -o
    perf tools: Fix double free in perf test 21 (code-reading.c)
    perf stat: Initialize statistics correctly
    perf bench: Set more defaults in the 'numa' suite
    perf bench: Fix segfault at the end of an 'all' execution
    perf bench: Update manpage to mention numa and futex
    perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()
    perf probe: Fix to handle errors in line_range searching
    perf probe: Fix --line option behavior
    perf tools: Pick up libdw without explicit LIBDW_DIR
    MAINTAINERS: Change e-mail to kernel.org one
    perf callchains: Disable unwind libraries when libelf isn't found
    tools lib traceevent: Do not call warning() directly
    tools lib traceevent: Print event name when show warning if possible
    perf top: Fix documentation of invalid -s option
    perf/x86: Enable DRAM RAPL support on Intel Haswell

    Linus Torvalds
     

14 Apr, 2014

2 commits

  • The patch 3a3ffa2e82205 ("tools lib traceevent: Report better error
    message on bad function args") added the error message but it seems
    there's no reason to call warning() directly.

    So change it to do_warning_event() to provide event information too.

    Signed-off-by: Namhyung Kim
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1395192174-26273-2-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Jiri Olsa

    Namhyung Kim
     
  • It's sometimes useful to know where the parse failure was occurred. Add
    do_warning_event() macro to see the failing event.

    It now shows the messages like below:

    $ perf test 5
    5: parse events tests : Warning: [kvmmmu:kvm_mmu_get_page] bad op token {
    Warning: [kvmmmu:kvm_mmu_sync_page] bad op token {
    Warning: [kvmmmu:kvm_mmu_unsync_page] bad op token {
    Warning: [kvmmmu:kvm_mmu_prepare_zap_page] bad op token {
    Warning: [kvmmmu:fast_page_fault] function is_writable_pte not defined
    Warning: [xen:xen_mmu_ptep_modify_prot_commit] function sizeof not defined
    Warning: [xen:xen_mmu_ptep_modify_prot_start] function sizeof not defined
    Warning: [xen:xen_mmu_set_pgd] function sizeof not defined
    Warning: [xen:xen_mmu_set_pud] function sizeof not defined
    Warning: [xen:xen_mmu_set_pmd] function sizeof not defined
    ...

    Signed-off-by: Namhyung Kim
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Ramkumar Ramachandra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1395192174-26273-1-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Jiri Olsa

    Namhyung Kim
     

01 Apr, 2014

2 commits


11 Mar, 2014

1 commit


27 Feb, 2014

6 commits


18 Feb, 2014

1 commit

  • Move to generic library and kill magic.h as it is needed only in fs.h.

    Signed-off-by: Borislav Petkov
    Cc: Adrian Hunter
    Cc: Andi Kleen
    Cc: Arjan van de Ven
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Cc: Robert Richter
    Cc: Stanislav Fomichev
    Cc: Stephane Eranian
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1386605664-24041-3-git-send-email-bp@alien8.de
    Signed-off-by: Arnaldo Carvalho de Melo

    Borislav Petkov
     

24 Jan, 2014

1 commit

  • The plugindir_SQ definition contains $(prefix) which is not needed as
    the $(libdir) definition already contains prefix in it. This leads to
    the path including an extra prefix in it, e.g. /usr/usr/lib64.

    The -DPLUGIN_DIR defintion includes DESTDIR. This is incorrect, as it
    sets the plugin search path to include the value of DESTDIR. DESTDIR is
    a mechanism to install in a non-standard location such as a chroot or an
    RPM build root. In the RPM case, this leads to the search path being
    incorrect after the resulting RPM is installed (or in some cases an RPM
    build failure).

    Remove both of these unnecessary inclusions.

    Signed-off-by: Josh Boyer
    Acked-by: Jiri Olsa
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/20140122150147.GK16455@hansolo.jdub.homelinux.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Josh Boyer
     

21 Jan, 2014

1 commit

  • Pull perf updates from Ingo Molnar:
    "Kernel side changes:

    - Add Intel RAPL energy counter support (Stephane Eranian)
    - Clean up uprobes (Oleg Nesterov)
    - Optimize ring-buffer writes (Peter Zijlstra)

    Tooling side changes, user visible:

    - 'perf diff':
    - Add column colouring improvements (Ramkumar Ramachandra)

    - 'perf kvm':
    - Add guest related improvements, including allowing to specify a
    directory with guest specific /proc information (Dongsheng Yang)
    - Add shell completion support (Ramkumar Ramachandra)
    - Add '-v' option (Dongsheng Yang)
    - Support --guestmount (Dongsheng Yang)

    - 'perf probe':
    - Support showing source code, asking for variables to be collected
    at probe time and other 'perf probe' operations that use DWARF
    information.

    This supports only binaries with debugging information at this
    time, detached debuginfo (aka debuginfo packages) support should
    come in later patches (Masami Hiramatsu)

    - 'perf record':
    - Rename --no-delay option to --no-buffering, better reflecting its
    purpose and freeing up '--delay' to take the place of
    '--initial-delay', so that 'record' and 'stat' are consistent
    (Arnaldo Carvalho de Melo)
    - Default the -t/--thread option to no inheritance (Adrian Hunter)
    - Make per-cpu mmaps the default (Adrian Hunter)

    - 'perf report':
    - Improve callchain processing performance (Frederic Weisbecker)
    - Retain bfd reference to lookup source line numbers, greatly
    optimizing, among other use cases, 'perf report -s srcline'
    (Adrian Hunter)
    - Improve callchain processing performance even more (Namhyung Kim)
    - Add a perf.data file header window in the 'perf report' TUI,
    associated with the 'i' hotkey, providing a counterpart to the
    --header option in the stdio UI (Namhyung Kim)

    - 'perf script':
    - Add an option in 'perf script' to print the source line number
    (Adrian Hunter)
    - Add --header/--header-only options to 'script' and 'report', the
    default is not tho show the header info, but as this has been the
    default for some time, leave a single line explaining how to
    obtain that information (Jiri Olsa)
    - Add options to show comm, fork, exit and mmap PERF_RECORD_ events
    (Namhyung Kim)
    - Print callchains and symbols if they exist (David Ahern)

    - 'perf timechart'
    - Add backtrace support to CPU info
    - Print pid along the name
    - Add support for CPU topology
    - Add new option --highlight'ing threads, be it by name or, if a
    numeric value is provided, that run more than given duration
    (Stanislav Fomichev)

    - 'perf top':
    - Make 'perf top -g' refer to callchains, for consistency with
    other tools (David Ahern)

    - 'perf trace':
    - Handle old kernels where the "raw_syscalls" tracepoints were
    called plain "syscalls" (David Ahern)
    - Remove thread summary coloring, by Pekka Enberg.
    - Honour -m option in 'trace', the tool was offering the option to
    set the mmap size, but wasn't using it when doing the actual mmap
    on the events file descriptors (Jiri Olsa)

    - generic:
    - Backport libtraceevent plugin support (trace-cmd repository, with
    plugins for jbd2, hrtimer, kmem, kvm, mac80211, sched_switch,
    function, xen, scsi, cfg80211 (Jiri Olsa)
    - Print session information only if --stdio is given (Namhyung Kim)

    Tooling side changes, developer visible (plumbing):

    - Improve 'perf probe' exit path, release resources (Masami
    Hiramatsu)
    - Improve libtraceevent plugins exit path, allowing the registering
    of an unregister handler to be called at exit time (Namhyung Kim)
    - Add an alias to the build test makefile (make -C tools/perf
    build-test) (Namhyung Kim)
    - Get rid of die() and friends (good riddance!) in libtraceevent
    (Namhyung Kim)
    - Fix cross build problems related to pkgconfig and CROSS_COMPILE not
    being propagated to the feature tests, leading to features being
    tested in the host and then being enabled on the target (Mark
    Rutland)
    - Improve forked workload error reporting by sending the errno in the
    signal data queueing integer field, using sigqueue and by doing the
    signal setup in the evlist methods, removing open coded equivalents
    in various tools (Arnaldo Carvalho de Melo)
    - Do more auto exit cleanup chores in the 'evlist' destructor, so
    that the tools don't have to all do that sequence (Arnaldo Carvalho
    de Melo)
    - Pack 'struct perf_session_env' and 'struct trace' (Arnaldo Carvalho
    de Melo)
    - Add test for building detached source tarballs (Arnaldo Carvalho de
    Melo)
    - Move some header files (tools/perf/ to tools/include/ to make them
    available to other tools/ dwelling codebases (Namhyung Kim)
    - Move logic to warn about kptr_restrict'ed kernels to separate
    function in 'report' (Arnaldo Carvalho de Melo)
    - Move hist browser selection code to separate function (Arnaldo
    Carvalho de Melo)
    - Move histogram entries collapsing to separate function (Arnaldo
    Carvalho de Melo)
    - Introduce evlist__for_each() & friends (Arnaldo Carvalho de Melo)
    - Automate setup of FEATURE_CHECK_(C|LD)FLAGS-all variables (Jiri
    Olsa)
    - Move arch setup into seprate Makefile (Jiri Olsa)
    - Make libtraceevent install target quieter (Jiri Olsa)
    - Make tests/make output more compact (Jiri Olsa)
    - Ignore generated files in feature-checks (Chunwei Chen)
    - Introduce pevent_filter_strerror() in libtraceevent, similar in
    purpose to libc's strerror() function (Namhyung Kim)
    - Use perf_data_file methods to write output file in 'record' and
    'inject' (Jiri Olsa)
    - Use pr_*() functions where applicable in 'report' (Namhyumg Kim)
    - Add 'machine' 'addr_location' struct to have full picture (machine,
    thread, map, symbol, addr) for a (partially) resolved address,
    reducing function signatures (Arnaldo Carvalho de Melo)
    - Reduce code duplication in the histogram entry creation/insertion
    (Arnaldo Carvalho de Melo)
    - Auto allocate annotation histogram data structures (Arnaldo
    Carvalho de Melo)
    - No need to test against NULL before calling free, also set freed
    memory in struct pointers to NULL, to help fixing use after free
    bugs (Arnaldo Carvalho de Melo)
    - Rename some struct DSO binary_type related members and methods, to
    clarify its purpose and need for differentiation (symtab_type, ie
    one is about the files .text, CFI, etc, i.e. its binary contents,
    and the other is about where the symbol table came from (Arnaldo
    Carvalho de Melo)
    - Convert to new topic libraries, starting with an API one (sysfs,
    debugfs, etc), renaming liblk in the process (Borislav Petkov)
    - Get rid of some more panic() like error handling in libtraceevent.
    (Namhyung Kim)
    - Get rid of panic() like calls in libtraceevent (Namyung Kim)
    - Start carving out symbol parsing routines (perf, just moving
    routines to topic files in tools/lib/symbol/, tools that want to
    use it need to integrate it directly, ie no
    tools/lib/symbol/Makefile is provided (Arnaldo Carvalho de Melo)
    - Assorted refactoring patches, moving code around and adding utility
    evlist methods that will be used in the IPT patchset (Adrian
    Hunter)
    - Assorted mmap_pages handling fixes (Adrian Hunter)
    - Several man pages typo fixes (Dongsheng Yang)
    - Get rid of several die() calls in libtraceevent (Namhyung Kim)
    - Use basename() in a more robust way, to avoid problems related to
    different system library implementations for that function
    (Stephane Eranian)
    - Remove open coded management of short_name_allocated member (Adrian
    Hunter)
    - Several cleanups in the "dso" methods, constifying some parameters
    and renaming some fields to clarify its purpose (Arnaldo Carvalho
    de Melo)
    - Add per-feature check flags, fixing libunwind related build
    problems on some architectures (Jean Pihet)
    - Do not disable source line lookup just because of one failure.
    (Adrian Hunter)
    - Several 'perf kvm' man page corrections (Dongsheng Yang)
    - Correct the message in feature-libnuma checking, swowing the right
    devel package names for various distros (Dongsheng Yang)
    - Polish 'readn()' function and introduce its counterpart,
    'writen()' (Jiri Olsa)
    - Start moving timechart state from global variables to a 'perf_tool'
    derived 'timechart' struct (Arnaldo Carvalho de Melo)

    ... and lots of fixes and improvements I forgot to list"

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (282 commits)
    perf tools: Remove unnecessary callchain cursor state restore on unmatch
    perf callchain: Spare double comparison of callchain first entry
    perf tools: Do proper comm override error handling
    perf symbols: Export elf_section_by_name and reuse
    perf probe: Release all dynamically allocated parameters
    perf probe: Release allocated probe_trace_event if failed
    perf tools: Add 'build-test' make target
    tools lib traceevent: Unregister handler when xen plugin is unloaded
    tools lib traceevent: Unregister handler when scsi plugin is unloaded
    tools lib traceevent: Unregister handler when jbd2 plugin is is unloaded
    tools lib traceevent: Unregister handler when cfg80211 plugin is unloaded
    tools lib traceevent: Unregister handler when mac80211 plugin is unloaded
    tools lib traceevent: Unregister handler when sched_switch plugin is unloaded
    tools lib traceevent: Unregister handler when kvm plugin is unloaded
    tools lib traceevent: Unregister handler when kmem plugin is unloaded
    tools lib traceevent: Unregister handler when hrtimer plugin is unloaded
    tools lib traceevent: Unregister handler when function plugin is unloaded
    tools lib traceevent: Add pevent_unregister_print_function()
    tools lib traceevent: Add pevent_unregister_event_handler()
    tools lib traceevent: fix pointer-integer size mismatch
    ...

    Linus Torvalds
     

17 Jan, 2014

12 commits

  • The function handler should be unregistered when the plugin is unloaded
    otherwise it'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-13-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The function handler should be unregistered when the plugin is unloaded
    otherwise it'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-12-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The function handlers should be unregistered when the plugin unloaded
    otherwise they'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-11-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The function handler should be unregistered when the plugin is unloaded
    otherwise it'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-10-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The event handler should be unregistered when the plugin is unloaded
    otherwise it'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-9-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The event handlers should be unregistered when the plugin is unloaded
    otherwise they'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-8-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The kvm handlers should be unregistered when the plugin is unloaded
    otherwise they'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-7-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The kmem handlers should be unregistered when the plugin is unloaded
    otherwise they'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-6-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The timer handlers should be unregistered when the plugin is unloaded
    otherwise they'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-5-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The function handler should be unregistered when the plugin is unloaded
    otherwise it'll try to access invalid memory.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-4-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • When a plugin unloaded it needs to unregister its print handler from
    pevent.

    So add an unregister function to do it.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-3-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • When a plugin is unloaded it needs to unregister its handler from pevent.

    So add an unregister function to do it.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389839478-5887-2-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

16 Jan, 2014

6 commits

  • The scsi and cfg80211 plugins cast between unsigned long long and
    pointers, which is problematic for architectures where unsigned long
    long is wider than the native pointer size:

    linux/tools/lib/traceevent/plugin_scsi.c: In function ‘process_scsi_trace_parse_cdb’:
    linux/tools/lib/traceevent/plugin_scsi.c:408:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    scsi_trace_parse_cdb(s, (unsigned char *) args[1], args[2]);

    linux/tools/lib/traceevent/plugin_cfg80211.c: In function ‘process___le16_to_cpup’:
    linux/tools/lib/traceevent/plugin_cfg80211.c:11:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    uint16_t *val = (uint16_t *) args[0];

    This patch adds an intermediate cast to unsigned long, silencing the
    warning.

    Signed-off-by: Mark Rutland
    Acked-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Will Deacon
    Link: http://lkml.kernel.org/r/1389782648-4417-3-git-send-email-mark.rutland@arm.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Mark Rutland
     
  • The PEVENT_PLUGIN_UNLOADER function might need some cleanup using pevent
    like unregister some handlers. So pass pevent as argument.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389750340-15965-6-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Now all of its users were gone. :)

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389750340-15965-5-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Use plain malloc() and check its return value.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389750340-15965-4-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • If realloc() fails, it'll leak the buffer. Also increate buffer size
    only if the allocation succeeded.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1389750340-15965-3-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • The trace_seq->state is for tracking errors during the use of trace_seq
    APIs and getting rid of die() in it.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Acked-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/87fvopalbb.fsf@sejong.aot.lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

13 Jan, 2014

2 commits

  • Getting rid of following build output:

    $ make O=/tmp/build/perf -C tools/perf/ install-bin
    ...
    make[3]: Nothing to be done for `plugins'.
    make[2]: Nothing to be done for `plugins'.
    ...

    which triggers when traceevent library needs to be rebuilt, but we have
    plugins built already.

    Adding extra 'plugins' target with nop which is visible and triggers in
    both Makefile parts (for detached output directory (O=...) the
    traceevent Makefile spawns sub make for the build itself).

    Reported-by: Arnaldo Carvalho de Melo
    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1388595050-23005-2-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • The tabbed indentation in non-commands statements could be sometimes
    considered as follow up for the rule command in the Makefile.

    This error is hard to find, so as a precaution replacing tabs with
    spaces for all non-commands statements.

    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
    Cc: Steven Rostedt
    Link: http://marc.info/?t=136484403900003&r=1&w=2
    Link: http://lkml.kernel.org/r/20140102095304.GA1196@krava.brq.redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

20 Dec, 2013

5 commits

  • Using global 'O' processing code because it's already setup due to the
    scripts/Makefile.include include.

    Using global variable OUTPUT instead of the local BUILD_OUTPUT.

    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1387460527-15030-10-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Using global QUIET_CLEAN build output variable and so we could have only
    single clean message:

    CLEAN libtraceevent

    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1387460527-15030-9-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Using global QUIET_INSTALL build output variable and factoring plugins
    installation so we could have only single install message for plugins:

    INSTALL trace_plugins

    Getting rid of local print_install.

    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1387460527-15030-8-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Using global QUIET_LINK build output variable and getting rid of local
    print_static_lib_build, print_plugin_build and print_shared_lib_compile.

    We no longer distinguish between shared and static library in the build
    message. It's differenced by the built file suffix, like:

    $ make
    ...
    LINK libtraceevent.a
    LINK libtraceevent.so

    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1387460527-15030-7-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Adding global QUIET_CC_FPIC build output variable and getting rid of
    local print_fpic_compile and print_plugin_obj_compile.

    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
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1387460527-15030-6-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa