[GIT PULL 00/18] perf/core improvements and fixes

From: Arnaldo Carvalho de Melo
Date: Tue Dec 16 2014 - 11:57:36 EST


Hi Ingo,

Please consider pulling,

- Arnaldo

The following changes since commit 41e950c033b7df997d4b38653efe6554be9b96a7:

Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent (2014-12-12 09:09:52 +0100)

are available in the git repository at:


git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo

for you to fetch changes up to 67195c75a87232f055ff415fc4624ef01f24fc3d:

perf symbols: Fix use after free in filename__read_build_id (2014-12-16 13:38:28 -0300)

----------------------------------------------------------------
perf/core improvements and fixes:

User visible:

- The mmap address range for the ring buffer now is calculated using the
contents of /proc/sys/kernel/perf_event_mlock_kb.

This fixes an -EPERM case where 'trace' was trying to use more than what
configured on perf_event_mlock_kb. (Arnaldo Carvalho de Melo)

Infrastructure:

- Move bitops definitions so that they match the header file hierarchy
in the kernel sources where that code came from. (Arnaldo Carvalho de Melo)

- Adopt round{down,up}_pow_of_two from the kernel and use it instead of
equivalent code, so that we reuse more kernel code and make tools/ look
more like kernel source code, to encourage further contributions from
kernel hackers (Arnaldo Carvalho de Melo)

- Fix use after free in filename__read_build_id (Mitchell Krome)

Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

----------------------------------------------------------------
Arnaldo Carvalho de Melo (17):
perf evlist: Fixup brown paper bag on "hint" for --mmap-pages cmdline arg
perf evlist: Clarify sterror_mmap variable names
perf evlist: Improve the strerror_mmap method
perf trace: Let the perf_evlist__mmap autosize the number of pages to use
perf evlist: Do not use hard coded value for a mmap_pages default
tools: Move __ffs implementation to tools/include/asm-generic/bitops/__ffs.h
tools: Move code originally from linux/log2.h to tools/include/linux/
tools: Move code originally from asm-generic/atomic.h into tools/include/asm-generic/
tools: Whitespace prep patches for moving bitops.h
tools lib: Move asm-generic/bitops/find.h code to tools/include and tools/lib
tools: Introduce asm-generic/bitops.h
tools: Move bitops.h from tools/perf/util to tools/
tools: Adopt fls_long and deps
tools: Adopt rounddown_pow_of_two and deps
perf tools: Make the mmap length autotuning more robust
tools: Adopt roundup_pow_of_two
perf evlist: Use roundup_pow_of_two

Mitchell Krome (1):
perf symbols: Fix use after free in filename__read_build_id

tools/include/asm-generic/bitops.h | 27 +++++
tools/include/asm-generic/bitops/__ffs.h | 43 +++++++
tools/include/asm-generic/bitops/__fls.h | 1 +
tools/include/asm-generic/bitops/atomic.h | 22 ++++
tools/include/asm-generic/bitops/find.h | 33 ++++++
tools/include/asm-generic/bitops/fls.h | 1 +
tools/include/asm-generic/bitops/fls64.h | 1 +
tools/include/linux/bitops.h | 53 +++++++++
tools/include/linux/log2.h | 185 ++++++++++++++++++++++++++++++
tools/lib/util/find_next_bit.c | 89 ++++++++++++++
tools/perf/MANIFEST | 13 ++-
tools/perf/Makefile.perf | 14 ++-
tools/perf/builtin-trace.c | 2 +-
tools/perf/util/evlist.c | 46 ++++++--
tools/perf/util/include/linux/bitops.h | 162 --------------------------
tools/perf/util/symbol-minimal.c | 8 +-
tools/perf/util/util.h | 29 -----
17 files changed, 522 insertions(+), 207 deletions(-)
create mode 100644 tools/include/asm-generic/bitops.h
create mode 100644 tools/include/asm-generic/bitops/__ffs.h
create mode 100644 tools/include/asm-generic/bitops/__fls.h
create mode 100644 tools/include/asm-generic/bitops/atomic.h
create mode 100644 tools/include/asm-generic/bitops/find.h
create mode 100644 tools/include/asm-generic/bitops/fls.h
create mode 100644 tools/include/asm-generic/bitops/fls64.h
create mode 100644 tools/include/linux/bitops.h
create mode 100644 tools/include/linux/log2.h
create mode 100644 tools/lib/util/find_next_bit.c
delete mode 100644 tools/perf/util/include/linux/bitops.h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/