1. 14 Jul, 2016 4 commits
  2. 13 Jul, 2016 4 commits
    • Arnaldo Carvalho de Melo's avatar
      objtool: Add fallback from ELF_C_READ_MMAP to ELF_C_READ · 774bec3f
      Arnaldo Carvalho de Melo authored
      Not all libelf implementations have this "Please, ELF_C_READ, but use
      mmap if possible" elf_begin() cmd, so provide a fallback to plain old
      ELF_C_READ.
      
      Case in point: Alpine Linux 3.4.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-1fctuknrawgoi5xqon4mu9dv@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      774bec3f
    • Arnaldo Carvalho de Melo's avatar
      tools: Fix up BITS_PER_LONG setting · 2a00f026
      Arnaldo Carvalho de Melo authored
      It was set based on CONFIG_64BIT, that is available only when using
      Kconfig, which we're working towards but not to the point of having this
      CONFIG variable set, so synthesize it from available compiler defined
      defines, __SIZEOF_LONG__ or, lacking that, __WORDSIZE.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-og5fmkr17856lhupacihwxvb@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2a00f026
    • Ingo Molnar's avatar
      tools: Work around BITS_PER_LONG related build failure in objtool · 7b39cafb
      Ingo Molnar authored
      The objtool build fails with the recent changes to the bits-per-long
      headers:
      
        tools/include/linux/bitops.h:12:0: error: "BITS_PER_LONG" redefined [-Werror]
      
      Which got introduced by:
      
        bb970707 tools: Copy the bitsperlong.h files from the kernel
      
      Work it around for the time being.
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      7b39cafb
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-20160712' of... · 68cf16c6
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-20160712' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      User visible changes:
      
      - Add demangling of symbols in programs written in the Rust language (David Tolnay)
      
      - Add support for tracepoints in the python binding, including an example, that
        sets up and parses sched:sched_switch events, tools/perf/python/tracepoint.py
        (Jiri Olsa)
      
      - Introduce --stdio-color to set up the color output mode selection in
        'annotate' and 'report', allowing emit color escape sequences when
        redirecting the output of these tools (Arnaldo Carvalho de Melo)
      
      Infrastructure changes:
      
      - Various tweaks to allow the 'perf trace' beautifiers to build without using
        kernel headers and in a wider range of Linux distributions/releases
        (Arnaldo Carvalho de Melo)
      
      - Stop using kernel source files, instead copy what is needed and
        check when the original kernel source file gets modified, warning
        the developers about it. This helps in building the tool in older
        systems and even in recent ones, for just added kernel features
        for which ABI details (struct changes, defines, etc) still are not
        available on system headers (Arnaldo Carvalho de Melo)
      
      - Be consistent in how to use strerror_r, adding a wrapper that makes sure that
        it returns a pointer to passed buffer, and using the XSI variant, that is
        available in more libc implementations (Arnaldo Carvalho de Melo)
      
      - Avoid checking code drift on busibox's diff perf intel-pt-decoder, as it
        doesn't have the '-I' command line switch to check for regexps
        (Arnaldo Carvalho de Melo)
      
      - Add missing headers in various places (Arnaldo Carvalho de Melo)
      
      - Remove unneeded headers from various other places (Arnaldo Carvalho de Melo)
      
      - Add feature detection for gelf_getnote(), disabling SDT support if not
        present (Arnaldo Carvalho de Melo)
      
      - Fix oddities with GCC 5.3.0 by initializing some variables
        (Arnaldo Carvalho de Melo)
      
      - With those changes in place perf now builds on Alpine Linux 3.4, in addition to
        on centos (5, 6, 7), debian (7, 8, experimental), fedora (21, 22, 23, 24, rawhide),
        mageia 5, opensuse (13.2, 42.1) and ubuntu (12.04.5, 14.04.4, 15.10, 16.04) and
        will be test build on those systems prior to future pull requests.
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      68cf16c6
  3. 12 Jul, 2016 32 commits