lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 15 Sep 2017 07:16:36 -0300
From:   Arnaldo Carvalho de Melo <acme@...hat.com>
To:     禹舟键 <ufo19890607@...il.com>
Cc:     Andi Kleen <ak@...ux.intel.com>, peterz@...radead.org,
        mingo@...hat.com, alexander.shishkin@...ux.intel.com,
        jolsa@...nel.org, David Ahern <dsahern@...il.com>,
        namhyung@...nel.org, Wind Yu <yuzhoujian@...ichuxing.com>,
        Milian Wolff <milian.wolff@...b.com>, sj38.park@...il.com,
        tardyp@...il.com, linux-perf-users@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: Port the period data column to centos6.7 for perf script

Em Thu, Sep 14, 2017 at 09:21:54PM -0700, Andi Kleen escreveu:
> On Fri, Sep 15, 2017 at 10:24:15AM +0800, 禹舟键 wrote:
> >    Hi, all.
> >    I want to draw off-cpu flamegraph using perf script on centos6.7(kernel
> >    version, 2.6.32-573), and I found perf script lacks the period data column
> >    on that version. I  found two related patches, and modifed
> >    builin-script.c in reference to those patches.
> >    perf script:Add period data column authorJiri Olsa 2014-08-25 16:45:42
> >    +0200 commit535aeaae7de821ba5d43ee2a204ee667ca95aae4
> >    perf script: Add period as a default output column
> >    commite8564b710c6df2c3aeb56c507c22f4bcfa4c0b2d)
 
> I would just compile the newer perf binary for Centos6 and use that. It should
> work with older kernels too. That's much easier than backporting, and you get
> many more features.

yeah, look at the Dockerfile I use to build it for that OS:

[acme@...et 6]$ cat Dockerfile 
# docker.io/acmel/linux-perf-tools-build-centos:6
FROM docker.io/centos:6
MAINTAINER Arnaldo Carvalho de Melo <acme@...nel.org>
RUN yum -y update && \
    yum -y install make gcc flex bison bc elfutils-libelf-devel elfutils-devel \
		   libunwind-devel audit-libs-devel openssl-devel slang-devel \
		   gtk2-devel perl-ExtUtils-Embed python-devel binutils-devel \
		   systemtap-sdt-devel xz-devel numactl-devel && \
    yum -y clean all && \
    rm -rf /usr/share/doc /usr/share/gtk-doc /usr/share/man && \
    mkdir -m 777 -p /tmp/build/perf /tmp/build/objtool && \
    groupadd -r perfbuilder && \
    useradd -m -r -g perfbuilder perfbuilder
USER perfbuilder
ENTRYPOINT make -C /git/linux/tools/perf O=/tmp/build/perf && \
	   rm -rf /tmp/build/perf/{.[^.]*,*} && \
	   make NO_LIBELF=1 -C /git/linux/tools/perf O=/tmp/build/perf && \
	   make -C /git/linux/tools/objtool O=/tmp/build/objtool
[acme@...et 6]$

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ