Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Small additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yarcod-zpt committed Sep 20, 2023
1 parent 8fddf39 commit 242d85d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions addons/run.common
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ do_mounts()
mount --bind /sys/kernel/tracing/ debian/sys/kernel/tracing/
fi

if [ -d /sys/kernel/debug/tracing ]; then
mount --bind /sys/kernel/debug/tracing/ debian/sys/kernel/debug/tracing/
fi

# Mount Android partitions
if [ -d /d/ ]; then
if [ ! -d debian/d ]; then ln -s /sys/kernel/debug debian/d; fi
Expand Down Expand Up @@ -53,3 +57,6 @@ do_mounts()

mount | grep debian > /dev/null
if [ $? -ne 0 ]; then do_mounts; fi

# unset any PRELOAD in Android environment, otherwise Linux linker cann't handle it.
unset LD_PRELOAD
2 changes: 1 addition & 1 deletion bcc/misc/build-bcc-minimal/build-on-target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

cd bcc-master
rm -rf build && mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=./future-usr -DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7
cmake .. -DCMAKE_INSTALL_PREFIX=./future-usr -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11
make -j90
make install
2 changes: 2 additions & 0 deletions packages/tracers
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ PACKAGES+="\
linux-perf
trace-cmd
strace
sshfs
bpfcc-tools
"

0 comments on commit 242d85d

Please sign in to comment.