• Ian Rogers's avatar
    perf build: Use libtraceevent from the system · 378ef0f5
    Ian Rogers authored
    Remove the LIBTRACEEVENT_DYNAMIC and LIBTRACEFS_DYNAMIC make command
    line variables.
    
    If libtraceevent isn't installed or NO_LIBTRACEEVENT=1 is passed to the
    build, don't compile in libtraceevent and libtracefs support.
    
    This also disables CONFIG_TRACE that controls "perf trace".
    
    CONFIG_LIBTRACEEVENT is used to control enablement in Build/Makefiles,
    HAVE_LIBTRACEEVENT is used in C code.
    
    Without HAVE_LIBTRACEEVENT tracepoints are disabled and as such the
    commands kmem, kwork, lock, sched and timechart are removed.  The
    majority of commands continue to work including "perf test".
    
    Committer notes:
    
    Fixed up a tools/perf/util/Build reject and added:
    
      #include <traceevent/event-parse.h>
    
    to tools/perf/util/scripting-engines/trace-event-perl.c.
    
    Committer testing:
    
      $ rpm -qi libtraceevent-devel
      Name        : libtraceevent-devel
      Version     : 1.5.3
      Release     : 2.fc36
      Architecture: x86_64
      Install Date: Mon 25 Jul 2022 03:20:19 PM -03
      Group       :...
    378ef0f5
builtin-report.c 47.5 KB