Skip to content

Commit

Permalink
tools/recipes/trace-cmd.recipe: Update to v3.2
Browse files Browse the repository at this point in the history
Do not update libtraceevent or libtracefs due to the symbol visibility
issue.
  • Loading branch information
douglas-raillard-arm committed Jan 4, 2024
1 parent 9bd91d2 commit b26b908
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
9 changes: 6 additions & 3 deletions lisa/_assets/binaries/x86_64/README.libtraceevent
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Build host info:

NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.7
VERSION_ID=3.16.8
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Expand All @@ -21,13 +21,16 @@ export LISA_HOME=''
export PATH=/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin
#! /bin/bash

# We are stuck at v3.16 for now since:
# * 3.17 does not have some static lib
# * 3.18 make hangs on some Makfiles: https://bugzilla.kernel.org/show_bug.cgi?id=218028
ALPINE_VERSION=v3.16
ALPINE_BUILD_DEPENDENCIES=(bash gcc git make linux-headers musl-dev pkgconfig bison flex zstd-dev zstd-static zlib-dev zlib-static)
BROKEN_CROSS_COMPILATION=1

download() {
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
git -C trace-cmd checkout trace-cmd-v3.1.5
git -C trace-cmd checkout trace-cmd-v3.2

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
# Commit after 1.7.0 that fixes the raw trace-cmd output:
Expand All @@ -54,7 +57,7 @@ build_tracecmd() {
# All variables need to be exported, NOT SET ON THE CLI of make-trace-cmd.sh
# itself. Otherwise they will internally conflict with existing ones.
export LDFLAGS="-static" NO_AUDIT=yes NO_PYTHON=yes CFLAGS="-O3"
./make-trace-cmd.sh install install_libs
./make-trace-cmd.sh install
strip "$TRACE_CMD_BIN"
}

Expand Down
9 changes: 6 additions & 3 deletions lisa/_assets/binaries/x86_64/README.libtracefs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Build host info:

NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.7
VERSION_ID=3.16.8
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Expand All @@ -21,13 +21,16 @@ export LISA_HOME=''
export PATH=/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin
#! /bin/bash

# We are stuck at v3.16 for now since:
# * 3.17 does not have some static lib
# * 3.18 make hangs on some Makfiles: https://bugzilla.kernel.org/show_bug.cgi?id=218028
ALPINE_VERSION=v3.16
ALPINE_BUILD_DEPENDENCIES=(bash gcc git make linux-headers musl-dev pkgconfig bison flex zstd-dev zstd-static zlib-dev zlib-static)
BROKEN_CROSS_COMPILATION=1

download() {
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
git -C trace-cmd checkout trace-cmd-v3.1.5
git -C trace-cmd checkout trace-cmd-v3.2

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
# Commit after 1.7.0 that fixes the raw trace-cmd output:
Expand All @@ -54,7 +57,7 @@ build_tracecmd() {
# All variables need to be exported, NOT SET ON THE CLI of make-trace-cmd.sh
# itself. Otherwise they will internally conflict with existing ones.
export LDFLAGS="-static" NO_AUDIT=yes NO_PYTHON=yes CFLAGS="-O3"
./make-trace-cmd.sh install install_libs
./make-trace-cmd.sh install
strip "$TRACE_CMD_BIN"
}

Expand Down
11 changes: 7 additions & 4 deletions lisa/_assets/binaries/x86_64/README.trace-cmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Sources of trace-cmd available at:
Git commit: 18f8a5b1aac64063b1c41dd3fa1a51e58f8ba229
Git commit: 46952ef9aca9f6deeb9af7a227dfd1d04e147aba
Git repository: git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git


Build host info:

NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.7
VERSION_ID=3.16.8
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Expand All @@ -21,13 +21,16 @@ export LISA_HOME=''
export PATH=/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin
#! /bin/bash

# We are stuck at v3.16 for now since:
# * 3.17 does not have some static lib
# * 3.18 make hangs on some Makfiles: https://bugzilla.kernel.org/show_bug.cgi?id=218028
ALPINE_VERSION=v3.16
ALPINE_BUILD_DEPENDENCIES=(bash gcc git make linux-headers musl-dev pkgconfig bison flex zstd-dev zstd-static zlib-dev zlib-static)
BROKEN_CROSS_COMPILATION=1

download() {
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
git -C trace-cmd checkout trace-cmd-v3.1.5
git -C trace-cmd checkout trace-cmd-v3.2

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
# Commit after 1.7.0 that fixes the raw trace-cmd output:
Expand All @@ -54,7 +57,7 @@ build_tracecmd() {
# All variables need to be exported, NOT SET ON THE CLI of make-trace-cmd.sh
# itself. Otherwise they will internally conflict with existing ones.
export LDFLAGS="-static" NO_AUDIT=yes NO_PYTHON=yes CFLAGS="-O3"
./make-trace-cmd.sh install install_libs
./make-trace-cmd.sh install
strip "$TRACE_CMD_BIN"
}

Expand Down
Binary file modified lisa/_assets/binaries/x86_64/trace-cmd
Binary file not shown.
2 changes: 1 addition & 1 deletion tools/recipes/trace-cmd.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BROKEN_CROSS_COMPILATION=1

download() {
git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
git -C trace-cmd checkout trace-cmd-v3.1.5
git -C trace-cmd checkout trace-cmd-v3.2

git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
# Commit after 1.7.0 that fixes the raw trace-cmd output:
Expand Down

0 comments on commit b26b908

Please sign in to comment.