Skip to content

Commit

Permalink
gProfiler 1.28.0 & ensure placeholder files are created during aarch6…
Browse files Browse the repository at this point in the history
…4 build (#792)
  • Loading branch information
Jongy authored May 10, 2023
1 parent 90dc634 commit acf3b15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gprofiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright (c) Granulate. All rights reserved.
# Licensed under the AGPL3 License. See LICENSE.md in the project root for license information.
#
__version__ = "1.27.0"
__version__ = "1.28.0"
11 changes: 5 additions & 6 deletions scripts/pyperf_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@ else
exit 1
fi

if [ "$(uname -m)" = "aarch64" ]; then
exit 0;
fi
git clone --depth 1 -b v1.3.0 https://github.com/Granulate/bcc.git && cd bcc && git reset --hard fa7508600659622eac1fc309c7cdd7700ad2dff4

# (after clone, because we copy the licenses)
# TODO support aarch64
if [ "$(uname -m)" != "x86_64" ]; then
mkdir -p /bcc/root/share/bcc/examples/cpp/
touch /bcc/root/share/bcc/examples/cpp/PyPerf
mkdir -p /bcc/bcc/licenses
touch /bcc/bcc/LICENSE.txt
touch /bcc/bcc/NOTICE
exit 0
fi

git clone --depth 1 -b v1.3.0 https://github.com/Granulate/bcc.git && cd bcc && git reset --hard fa7508600659622eac1fc309c7cdd7700ad2dff4

mkdir build
cd build
cmake -DPYTHON_CMD=python3 -DINSTALL_CPP_EXAMPLES=y -DCMAKE_INSTALL_PREFIX=/bcc/root -DBCC_CLOADER_KERNEL_HEADERLESS=1 ..
Expand Down
2 changes: 2 additions & 0 deletions scripts/pyperf_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ else
fi

if [ "$(uname -m)" = "aarch64" ]; then
./bcc_helpers_build.sh # it needs to create dummy files
exit 0;
fi

apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
Expand Down

0 comments on commit acf3b15

Please sign in to comment.