19 Dec, 2014

1 commit

  • Commit 85c116a6cb91 ("perf callchain: Make get_srcline fall back to sym+offset")
    introduces asprintf() call and matches '%ld' to a u64 argument, which is
    incorrect on ARM:

    CC /home/wn/util/srcline.o
    util/srcline.c: In function 'get_srcline':
    util/srcline.c:297:6: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'u64' [-Werror=format]
    cc1: all warnings being treated as errors
    make[1]: *** [/home/wn/util/srcline.o] Error 1

    In addition, all users of get_srcline() use u64 addr, and libbfd
    also use 64 bit bfd_vma as address. This patch also fix
    prototype of get_srcline() and addr2line() to use u64 addr
    instead of unsigned long.

    Signed-off-by: Wang Nan
    Acked-by: Namhyung Kim
    Cc:
    Cc:
    Cc:
    Cc:
    Cc:
    Link: http://lkml.kernel.org/r/1418710746-35943-1-git-send-email-wangnan0@huawei.com
    Signed-off-by: Ingo Molnar

    Wang Nan
     

17 Dec, 2014

2 commits

  • And remove the equivalent next_pow2{_l} functions.

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

    Arnaldo Carvalho de Melo
     
  • From tools/perf/util/include/linux, so that it becomes accessible to
    other tools/.

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

    Arnaldo Carvalho de Melo
     

12 Dec, 2014

1 commit


09 Dec, 2014

1 commit

  • Adding --buildid-dir to be able to set specific cache directory. It's
    going to be handy for buildid tests coming in shortly.

    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: Stephane Eranian
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1417460789-13874-4-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

25 Nov, 2014

1 commit

  • When the source line is not found fall back to sym + offset. This is
    generally much more useful than a raw address.

    For this we need to pass in the symbol from the caller.

    For some callers it's awkward to compute, so we stay at the old
    behaviour.

    Signed-off-by: Andi Kleen
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Link: http://lkml.kernel.org/r/1415844328-4884-10-git-send-email-andi@firstfloor.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Andi Kleen
     

19 Nov, 2014

1 commit

  • Also move static variable no_buildid_cache and check it in the
    perf_session_cache_build_ids().

    Signed-off-by: Namhyung Kim
    Cc: Aravinda Prasad
    Cc: Brendan Gregg
    Cc: Hemant Kumar
    Cc: Ingo Molnar
    Cc: Masami Hiramatsu
    Cc: Oleg Nesterov
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Cc: Srikar Dronamraju
    Cc: Vasant Hegde
    Cc: systemtap@sourceware.org
    Link: http://lkml.kernel.org/r/1415368677-3794-1-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

05 Nov, 2014

1 commit

  • Now my Archlinux box shows module symbols correctly.

    Before:
    $ perf report --stdio
    Failed to open /tmp/perf-3477.map, continuing without symbols
    no symbols found in /usr/bin/date, maybe install a debug package?
    No kallsyms or vmlinux with build-id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 was found
    [drm] with build id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 not found, continuing without symbols
    No kallsyms or vmlinux with build-id edd931629094b660ca9dec09a1b635c8d87aa2ee was found
    [jbd2] with build id edd931629094b660ca9dec09a1b635c8d87aa2ee not found, continuing without symbols
    No kallsyms or vmlinux with build-id a7b1eada671c34933e5610bb920b2ca4945a82c3 was found
    [ext4] with build id a7b1eada671c34933e5610bb920b2ca4945a82c3 not found, continuing without symbols
    No kallsyms or vmlinux with build-id d69511fa3e5840e770336ef45b06c83fef8d74e3 was found
    [scsi_mod] with build id d69511fa3e5840e770336ef45b06c83fef8d74e3 not found, continuing without symbols
    No kallsyms or vmlinux with build-id af0430af13461af058770ee9b87afc07922c2e77 was found
    [libata] with build id af0430af13461af058770ee9b87afc07922c2e77 not found, continuing without symbols
    No kallsyms or vmlinux with build-id aaeedff8160ce631a5f0333591c6ff291201d29f was found
    [libahci] with build id aaeedff8160ce631a5f0333591c6ff291201d29f not found, continuing without symbols
    No kallsyms or vmlinux with build-id c57907712becaf662dc4981824bb372c0441d605 was found
    [mac80211] with build id c57907712becaf662dc4981824bb372c0441d605 not found, continuing without symbols
    No kallsyms or vmlinux with build-id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f was found
    [iwldvm] with build id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f not found, continuing without symbols
    No kallsyms or vmlinux with build-id 2d86086bf136bf374a2f029cf85a48194f9b950b was found
    [cfg80211] with build id 2d86086bf136bf374a2f029cf85a48194f9b950b not found, continuing without symbols
    No kallsyms or vmlinux with build-id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 was found
    [iwlwifi] with build id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 not found, continuing without symbols
    ...
    #
    # Overhead Command Shared Object Symbol
    # ........ ............... ....................... ........................................................
    #
    0.03% swapper [ext4] [k] 0x000000000000fe2e
    0.03% swapper [kernel.kallsyms] [k] account_entity_enqueue
    0.03% swapper [ext4] [k] 0x000000000000fc2b
    0.03% irq/50-iwlwifi [iwlwifi] [k] 0x000000000000200b
    0.03% swapper [kernel.kallsyms] [k] ktime_add_safe
    0.03% swapper [kernel.kallsyms] [k] elv_completed_request
    0.03% swapper [libata] [k] 0x0000000000003997
    0.03% swapper [libahci] [k] 0x0000000000001f25
    0.03% swapper [kernel.kallsyms] [k] rb_next
    0.03% swapper [kernel.kallsyms] [k] blk_finish_request
    0.03% swapper [ext4] [k] 0x0000000000010248
    0.00% perf [kernel.kallsyms] [k] native_write_msr_safe

    After:
    $ perf report --stdio
    Failed to open /tmp/perf-3477.map, continuing without symbols
    no symbols found in /usr/bin/tr, maybe install a debug package?
    ...
    #
    # Overhead Command Shared Object Symbol
    # ........ ............... ........................... ......................................................
    #

    0.04% kworker/u16:3 [ext4] [k] ext4_read_block_bitmap
    0.03% kworker/u16:0 [mac80211] [k] ieee80211_sta_reset_beacon_monitor
    0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_get_bssid
    0.02% firefox [e1000e] [k] __ew32_prepare
    0.02% swapper [libahci] [k] ahci_handle_port_interrupt
    0.02% emacs libglib-2.0.so.0.4000.0 [.] g_mutex_unlock
    0.02% swapper [e1000e] [k] e1000_clean_tx_irq
    0.02% dwm [kernel.kallsyms] [k] __schedule
    0.02% gnome-terminal- [vdso] [.] __vdso_clock_gettime
    0.02% swapper [e1000e] [k] e1000_alloc_rx_buffers
    0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_rx
    0.01% firefox [vdso] [.] __vdso_gettimeofday
    0.01% irq/50-iwlwifi [iwlwifi] [k] iwl_pcie_rxq_restock.part.13

    Signed-off-by: Namhyung Kim
    Acked-by: Jiri Olsa
    Cc: Jiri Olsa
    Cc: Peter Zijlstra
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Namhyung Kim
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/87h9yexshi.fsf@sejong.aot.lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

18 Sep, 2014

2 commits

  • _BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc
    2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should
    also be defined.

    [1]: https://sourceware.org/glibc/wiki/Release/2.20

    Signed-off-by: Chanho Park
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1410487817-13403-1-git-send-email-chanho61.park@samsung.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Chanho Park
     
  • Include poll.h instead.

    Fixes the following warning in systems with musl's libc:

    /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include
    to [-Wcpp]

    Reported-by: John Spencer
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Don Zickus
    Cc: Frederic Weisbecker
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1687/focus=1690
    Link: http://lkml.kernel.org/n/tip-k4ocrq1de3fk146oevy346bi@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

13 Aug, 2014

1 commit

  • Adding set_term_quiet_input helper to set the terminal quiet, out from
    'perf top', used in following patches in 'perf kvm'.

    Signed-off-by: Jiri Olsa
    Cc: Adrian Hunter
    Cc: Corey Ashford
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jean Pihet
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1407747014-18394-9-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

12 Aug, 2014

1 commit

  • Showing better error message in case we fail to open counters due to the
    EBUSY error. If we detect oprofile daemon process running, we now
    display following message for EBUSY error:

    $ perf record ls
    Error:
    The PMU counters are busy/taken by another profiler.
    We found oprofile daemon running, please stop it and try again.

    In case oprofiled was not detected the current error message stays:

    $ perf record ls
    Error:
    The sys_perf_event_open() syscall returned with 16 (Device or resource busy) for event (cycles).
    /bin/dmesg may provide additional information.
    No CONFIG_PERF_EVENTS=y kernel support configured?

    Also changing PERF_FLAG_FD_CLOEXEC detection code not to display error
    in case of EBUSY error, as it currently does:

    $ perf record ls
    Error:
    perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 16 (Device or resource busy)
    perf_event_open(..., 0) failed unexpectedly with error 16 (Device or resource busy)
    The PMU counters are busy/taken by another profiler.
    We found oprofile daemon running, please stop it and try again.

    Signed-off-by: Jiri Olsa
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: William Cohen
    Cc: Yann Droneaud
    Link: http://lkml.kernel.org/r/1406908014-8312-1-git-send-email-jolsa@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

31 Jul, 2014

1 commit

  • Minchan reported that perf failed to load vmlinux if --symfs argument
    doesn't end with '/' character.

    Fix it by making sure that the '/' path separator is used when composing
    pathnames with a --symfs provided directory name.

    Reported-by: Minchan Kim
    Cc: David Ahern
    Cc: Jiri Olsa
    Cc: Minchan Kim
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/n/tip-8n4s6b6zvsez5ktanw006125@git.kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Arnaldo Carvalho de Melo
     

09 Jun, 2014

1 commit


02 May, 2014

1 commit

  • Combine all definitions into a common tools/include/linux/types.h and
    kill the wild growth elsewhere. Move DECLARE_BITMAP to its proper
    bitmap.h header.

    Signed-off-by: Borislav Petkov
    Acked-by: Rusty Russell
    Link: http://lkml.kernel.org/n/tip-azczs7qcv6h9xek9od10hiv2@git.kernel.org
    Signed-off-by: Jiri Olsa

    Borislav Petkov
     

28 Dec, 2013

1 commit

  • For the frequent idiom of:

    free(ptr);
    ptr = NULL;

    Make it expect a pointer to the pointer being freed, so that it becomes
    clear at first sight that the variable being freed is being modified.

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

    Arnaldo Carvalho de Melo
     

17 Dec, 2013

1 commit

  • Move debugfs.* to api/fs/. We have a common tools/lib/api/ place where
    the Makefile lives and then we place the headers in subdirs.

    For example, all the fs-related stuff goes to tools/lib/api/fs/ from
    which we get libapikfs.a (acme got almost the naming he wanted :-)) and
    we link it into the tools which need it - in this case perf and
    tools/vm/page-types.

    acme:

    "Looking at the implementation, I think some tools can even link
    directly to the .o files, avoiding the .a file altogether.

    But that is just an optimization/finer granularity tools/lib/
    cherrypicking that toolers can make use of."

    Fixup documentation cleaning target while at it.

    Signed-off-by: Borislav Petkov
    Acked-by: Ingo Molnar
    Cc: Adrian Hunter
    Cc: Andi Kleen
    Cc: Arjan van de Ven
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    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-2-git-send-email-bp@alien8.de
    Signed-off-by: Arnaldo Carvalho de Melo

    Borislav Petkov
     

13 Dec, 2013

2 commits

  • Move functions mem_bswap_32() and mem_bswap_64() so they can be reused.

    Signed-off-by: Adrian Hunter
    Cc: Andi Kleen
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1386765443-26966-21-git-send-email-alexander.shishkin@linux.intel.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Adrian Hunter
     
  • Add a function to return the value of
    /proc/sys/kernel/perf_event_paranoid.

    This will be used to determine default values for mmap size because perf
    is not subject to mmap limits when perf_event_paranoid is less than
    zero.

    Signed-off-by: Adrian Hunter
    Cc: Andi Kleen
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1386765443-26966-12-git-send-email-alexander.shishkin@linux.intel.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Adrian Hunter
     

10 Dec, 2013

2 commits

  • The code in builtin-kvm.c to generate filename for perf-kvm is useful to
    other command such as builtin-diff.

    This patch move the related code form builtin-kvm.c to util/util.c and
    wrap them in a function named get_filename_for_perf_kvm.

    Signed-off-by: Dongsheng Yang
    Link: http://lkml.kernel.org/r/5e09a5c47e8a495e888cbdc65a6fafb2c950f529.1386368672.git.yangds.fnst@cn.fujitsu.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Dongsheng Yang
     
  • 'next_pow2()' only works for 'unsigned int' but the argument is
    'unsigned long'. Checking for values less than (1 << 31) ensures that
    'next_pow2()' is not passed a value out of range but lets anything else
    go through unvalidated.

    As a result mmap_pages of zero is used e.g.

    perf record -v -m2147483649 uname
    mmap size 0B
    failed to mmap with 22 (Invalid argument)

    Fixed:

    perf record -m2147483649 uname
    rounding mmap pages size to 17592186044416 bytes (4294967296 pages)
    Invalid argument for --mmap_pages/-m

    Signed-off-by: Adrian Hunter
    Acked-by: Jiri Olsa
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1386595120-22978-4-git-send-email-adrian.hunter@intel.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Adrian Hunter
     

05 Dec, 2013

1 commit

  • Adding filename__read_str util function to read
    text file and return it in the char array.

    The interface is:
    int filename__read_str(const char *filename, char **buf, size_t *sizep)

    Returns 0/-1 if the read suceeded/fail respectively.

    buf - place to store the data pointer
    size - place to store data size

    v2 change:
    - better error handling suggested by Namhyung Kim.

    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/1386076182-14484-9-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

02 Dec, 2013

2 commits

  • Adding 'writen' function as a synchronous wrapper for write syscall with
    following prototype:

    ssize_t writen(int fd, void *buf, size_t n)

    Returns the number of bytes written on success or -1 in case of err.

    Signed-off-by: Jiri Olsa
    Requested-by: Arnaldo Carvalho de Melo
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1385634619-8129-5-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Changing readn function return type to ssize_t because read returns
    ssize_t not int.

    Changing callers holding variable types as well.

    Signed-off-by: Jiri Olsa
    Cc: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1385634619-8129-3-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     

18 Oct, 2013

1 commit

  • Just opens a file and calls atoi() in at most its first 64 bytes.

    To read things like /proc/sys/kernel/perf_event_paranoid.

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

    Arnaldo Carvalho de Melo
     

14 Oct, 2013

1 commit

  • Add a function to copy a file specifying the permissions to use for the
    created file.

    Signed-off-by: Adrian Hunter
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Jiri Olsa
    Cc: Mike Galbraith
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1381747424-3557-5-git-send-email-adrian.hunter@intel.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Adrian Hunter
     

10 Oct, 2013

3 commits

  • This is a preparation of next change. No functional changes are
    intended.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1378876173-13363-7-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Currently external addr2line tool is used for srcline sort key and
    annotate with srcline info. Separate the common code to prepare
    upcoming enhancements.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Jiri Olsa
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1378876173-13363-5-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • Separate out GTK codes to a shared object called libperf-gtk.so. This
    time only GTK codes are built with -fPIC and libperf remains as is. Now
    run GTK hist and annotation browser using libdl.

    Signed-off-by: Namhyung Kim
    Reviewed-by: Pekka Enberg
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Pekka Enberg
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1379053663-13706-1-git-send-email-namhyung@kernel.org
    [ Fix it up wrt Ingo's tools/perf build speedups ]
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

09 Oct, 2013

1 commit

  • Adding possibility to specify mmap size via -m/--mmap-pages
    by appending unit size character (B/K/M/G) to the
    number, like:
    $ perf record -m 8K ls
    $ perf record -m 2M ls

    The size is rounded up appropriately to follow perf
    mmap restrictions.

    If no unit is specified the number provides pages as
    of now, like:
    $ perf record -m 8 ls

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

    Jiri Olsa
     

08 Aug, 2013

1 commit

  • The parse_nsec_time() function is for parsing a string of time into
    64-bit nsec value. It's a preparation of time filtering in some of perf
    commands.

    Signed-off-by: Namhyung Kim
    Tested-by: David Ahern
    Acked-by: David Ahern
    Cc: Andi Kleen
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Link: http://lkml.kernel.org/r/1370310629-9642-1-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

13 Jul, 2013

1 commit

  • Since they're generic helpers move them to util.c so that they can be
    used by others.

    Signed-off-by: Namhyung Kim
    Cc: David Ahern
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Jiri Olsa
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Cc: Stephane Eranian
    Cc: Steven Rostedt
    Link: http://lkml.kernel.org/r/1372230862-15861-2-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     

09 Jul, 2013

1 commit

  • Building perf for android fails because it can't find the definition of
    struct winsize.

    This definition is in termios.h, so I add this header to util.h to solve
    the problem.

    It is missed by commit '2c803e52' which moves get_term_dimensions() from
    builtin-top.c to util.c, but missed to move termios.h header.

    Signed-off-by: Joonsoo Kim
    Acked-by: David Ahern
    Cc: David Ahern
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1371603750-15053-3-git-send-email-iamjoonsoo.kim@lge.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Joonsoo Kim
     

28 May, 2013

1 commit

  • One of the reasons 'perf test' is failing on Power appears to be due to
    a bug in isupper().

    isupper(c) and islower(c) should be checking 'c' against the mask 0x20.
    Instead they are checking sane_ctype[c] which causes isupper() to be
    true for lower case letters.

    Signed-off-by: Sukadev Bhattiprolu
    Acked-by: Namhyung Kim
    Link: http://lkml.kernel.org/r/20130329192950.GA9312@us.ibm.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Sukadev Bhattiprolu
     

22 Mar, 2013

1 commit


16 Mar, 2013

1 commit


25 Jan, 2013

2 commits

  • As we have ltrim() implementation in builtin-script.c move it to the
    more generic location of util/string.c so that it can be used from other
    places.

    Signed-off-by: Namhyung Kim
    Cc: Feng Tang
    Cc: Ingo Molnar
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1358845787-1350-14-git-send-email-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo

    Namhyung Kim
     
  • It is used by util/help.c so it should be a lib function and included in
    libperf.a. Code move only.

    Signed-off-by: David Ahern
    Link: http://lkml.kernel.org/r/1358185681-90926-1-git-send-email-dsahern@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo

    David Ahern
     

29 Oct, 2012

2 commits

  • Moving strxfrchar function into string object.

    Signed-off-by: Jiri Olsa
    Reviewed-by: Namhyung Kim
    Tested-by: Namhyung Kim
    Cc: Corey Ashford
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1351372712-21104-5-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa
     
  • Moving hex2u64 function into util object.

    Signed-off-by: Jiri Olsa
    Reviewed-by: Namhyung Kim
    Tested-by: Namhyung Kim
    Cc: Corey Ashford
    Cc: Frederic Weisbecker
    Cc: Ingo Molnar
    Cc: Namhyung Kim
    Cc: Paul Mackerras
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/1351372712-21104-4-git-send-email-jolsa@redhat.com
    Signed-off-by: Arnaldo Carvalho de Melo

    Jiri Olsa