diff --git a/tools/FlameGraph.tar.gz b/tools/FlameGraph.tar.gz new file mode 100644 index 00000000..da3f1c80 Binary files /dev/null and b/tools/FlameGraph.tar.gz differ diff --git a/tools/mk-base-image b/tools/mk-base-image index 09f28744..f5a4d8d0 100755 --- a/tools/mk-base-image +++ b/tools/mk-base-image @@ -15,7 +15,7 @@ set -ex package_to_install="@base @core @debugging @directory-client @guest-agents @hardware-monitoring @network-file-system-client @performance @remote-system-management - grub2 epel-release efibootmgr ansible yum-utils ipmitool docker-ce docker-ce-cli containerd.io lrzsz python3 vconfig watchdog pcm" + grub2 epel-release efibootmgr ansible yum-utils ipmitool docker-ce docker-ce-cli containerd.io lrzsz python3 vconfig watchdog pcm git" locak_package_to_install="$projectdir/package/kernel-lt-$kernel_version.rpm $projectdir/package/kernel-lt-devel-$kernel_version.rpm" @@ -26,6 +26,12 @@ yum -c "$yum_config" --installroot="$target" -y makecache yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $package_to_install yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt localinstall $locak_package_to_install +#git clone --depth 1 https://github.com/brendangregg/FlameGraph.git /opt/tools/FlameGraph/ +#git clone --depth 1 https://github.com/brendangregg/perf-tools.git /opt/tools/perf-tools/ +test -d "$target"/opt/tools/ || mkdir -p "$target"/opt/tools/ +tar -zxf $projectdir/tools/FlameGraph.tar.gz -C "$target"/opt/tools/ +tar -zxf $projectdir/tools/perf-tools.tar.gz -C "$target"/opt/tools/ + cat > "$target"/etc/sysconfig/network <