15.3. Red Hat Developer Toolset Performance Tools Container Image


15.3.1. 描述

Red Hat Developer Toolset Performance Tools 镜像提供了很多性能分析和性能测量工具。

rhscl/devtoolset-12-perftools-rhel7 镜像包括以下组件:

Expand
组件版本软件包

dwz

0.14

devtoolset-12-dwz

Dyninst

12.1.0

devtoolset-12-dyninst

elfutils

0.187

devtoolset-12-elfutils

ltrace

0.7.91

devtoolset-12-ltrace

make

4.3

devtoolset-12-make

memstomp

0.1.5

devtoolset-12-memstomp

OProfile

1.4.0

devtoolset-12-oprofile

strace

5.18

devtoolset-12-strace

SystemTap

4.7

devtoolset-12-systemtap

Valgrind

3.19.0

devtoolset-12-valgrind

此外,devtoolset-12-gccdevtoolset-12-binutils 软件包也作为依赖项包含在内。

15.3.2. 权限

要拉取 rhscl/devtoolset-12-perftools-rhel7 镜像,请以 root 用户身份运行以下命令:

# podman pull registry.redhat.io/rhscl/devtoolset-12-perftools-rhel7

15.3.3. 使用

从容器镜像使用 SystemTap 工具

从容器镜像中使用 SystemTap 工具时,需要额外的配置,并且容器需要使用特殊的命令行选项运行。

需要满足以下条件:

  1. 需要使用超级用户权限运行该镜像。要做到这一点,请使用以下命令运行镜像:

    ~]$ podman run --ti --privileged --ipc=host --net=host --pid=host devtoolset-12-my-perftools /bin/bash -l

    要使用预构建的 perftools 镜像,请在上述命令中替换 devtoolset-12-perftools-rhel7 的镜像名称。

  2. 需要在容器中安装以下内核软件包:

    • kernel
    • kernel-devel
    • kernel-debuginfo

      以上软件包的版本和发行版本号必须与主机系统上运行的内核的版本和版本号匹配。运行以下命令确定主机系统内核的版本和发行版本号:

      ~]$ uname -r
      3.10.0-1160.90.1.el7.x86_64

      请注意,kernel-debuginfo 软件包只能从 Debug 存储库中获得。启用 rhel-7-server-debug-rpms 存储库。有关如何访问 debuginfo 软件包的更多信息,请参阅 如何为 RHEL 系统下载或安装 debuginfo 软件包?

      要使用正确的版本安装所需的软件包,请使用 yum 软件包管理器和 uname 命令的输出。例如,要安装正确的 kernel 软件包版本,以 root 用户身份运行以下命令:

      ~]# yum install -y kernel-$(uname -r)
  3. 通过执行 podman commit 命令,将容器保存到可重复使用的镜像。保存自定义构建的 SystemTap 容器:

    ~]$ podman commit devtoolset-12-systemtap-$(uname -r)
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部