Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 057fde14 authored by Ben Cheng's avatar Ben Cheng
Browse files

Point OPROFILE_EVENTS_DIR to oprofile dir in source tree.

Otherwise oprofile will punt with the following error message when
processing results collected by perf events since the event descriptions
are not stored in the default location on the host.

profile: could not open unit mask description file
/usr/local/share/oprofile//arm/armv7/unit_masks

Change-Id: I4ff2f2a87546ed3606490596285fb3e466e8d661
parent 1985846e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -146,6 +146,10 @@ function setpaths()
    unset ANDROID_HOST_OUT
    export ANDROID_HOST_OUT=$(get_abs_build_var HOST_OUT)

    # needed for processing samples collected by perf counters
    unset OPROFILE_EVENTS_DIR
    export OPROFILE_EVENTS_DIR=$T/external/oprofile/events

    # needed for building linux on MacOS
    # TODO: fix the path
    #export HOST_EXTRACFLAGS="-I "$T/system/kernel_headers/host_include