lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] linux-perf in chroot via .deb abuse


From: Greg Chicares
Subject: Re: [lmi] linux-perf in chroot via .deb abuse
Date: Sat, 3 Oct 2020 16:49:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

On 2020-10-03 11:39, Greg Chicares wrote:
> On 2020-10-03 11:21, Vadim Zeitlin wrote:
>> On Fri, 2 Oct 2020 23:06:27 +0000 Greg Chicares <gchicares@sbcglobal.net> 
>> wrote:
> 
> [...cp perf and each library it needs into a chroot...]
> 
>> GC> Vadim--Do you think this approach is worse than trying to compile
>> GC> 'perf' in a chroot with the host's kernel version? It just seemed
>> GC> easier to try this way first.

[...hardlink perf and each library it needs to a directory that will be mounted 
in chroots...]

This way seems smarter:

http://www.brendangregg.com/perf.html#Building

| 10.1. Static Builds
| 
| I've sometimes done this so that I have a single perf binary that can be
| copied into Docker containers for execution. Steps, given the Linux source:
|
| cd tools/perf
| vi Makefile.perf
|   LDFLAGS=-static
| make clean; make


reply via email to

[Prev in Thread] Current Thread [Next in Thread]