Re: [RFC PATCH 0/3] trace-cruncher: Initial support for perf

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

 



On Thu, Feb 24, 2022 at 6:53 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> On Thu, Feb 24, 2022 at 8:37 AM Tzvetomir Stoyanov (VMware)
> <tz.stoyanov@xxxxxxxxx> wrote:
> >
> > Two major functionalities are introduced by this patch set:
> >  - VMA <-> function name resolving, using bfd library.
>
> Just wanted to point out that perf is often not built against libbfd:
> Please build perf against libbfd -
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911815
>
> where long running addr2line is now the best performance solution:
> https://lore.kernel.org/linux-perf-users/20210909112202.1947499-1-tonyg@xxxxxxxxxxxxxxxxxxx/
>
> The comment from the bug:
> perf can link against libbfd if available, but the result is
> undistributable as they are licenced under GPL v2 and v3+
> respectively.
>

Hi Ian, thank you for this note. Trace-cruncher is a library licensed
under LGPLv2.1, so it should not be a problem to use libbfd. Is my
understanding correct, as I'm not an expert in all these licences ?

> Thanks,
> Ian
>
> >  - Support for Linux kernel perf framework, using perf library.
> >
> > This is still a work in progress. Depends on this patch, not yet merged:
> > https://lore.kernel.org/linux-perf-users/20220221102628.43904-1-tz.stoyanov@xxxxxxxxx/
> >
> > Tzvetomir Stoyanov (VMware) (3):
> >   trace-cruncher: Logic for resolving address to function name
> >   trace-cruncher: Support for perf
> >   trace-cruncher: perf example
> >
> >  examples/perf_sampling.py |  51 +++
> >  setup.py                  |   9 +-
> >  src/perfpy-utils.c        | 699 ++++++++++++++++++++++++++++++
> >  src/perfpy-utils.h        |  41 ++
> >  src/perfpy.c              | 141 ++++++
> >  src/trace-obj-debug.c     | 873 ++++++++++++++++++++++++++++++++++++++
> >  src/trace-obj-debug.h     |  52 +++
> >  7 files changed, 1865 insertions(+), 1 deletion(-)
> >  create mode 100755 examples/perf_sampling.py
> >  create mode 100644 src/perfpy-utils.c
> >  create mode 100644 src/perfpy-utils.h
> >  create mode 100644 src/perfpy.c
> >  create mode 100644 src/trace-obj-debug.c
> >  create mode 100644 src/trace-obj-debug.h
> >
> > --
> > 2.34.1
> >



-- 
Tzvetomir (Ceco) Stoyanov
VMware Open Source Technology Center



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux