ChinaUnix.net
相关文章推荐:

oprofile用法

rsync -av --rsh=ssh --progress --delete /boot/kernel-genkernel-x86-2.6.23-gentoo-r9 1.1.1.1:/boot/ rsync -av --rsh=ssh --progress --delete /boot/System.map-genkernel-x86-2.6.23-gentoo-r9 1.1.1.1:/boot/ rsync -av --rsh=ssh --progress --delete /lib/modules/2.6.23-gentoo-r9 1.1.1.1:/lib/modules/ rsync -avz --rsh=ssh --progress /usr/bin/opa* 1.1.1.1:/usr/bin/ rsync -avz --rsh=ssh --progress /usr/bin/o...

by platinum - Linux文档专区 - 2009-10-31 23:20:04 阅读(843) 回复(0)

相关讨论

大家谁用过oprofile, 俺在RDEL5.2中用了下oprofile ,发现总是不能对内核进行sample!我自己编译了一个内核2.6.24,并编译了vmlinux,但是总是opreport的时候总是显示vmlinux-known,谁遇到个这个情况?

by quhr - 内核源码 - 2008-07-07 15:22:17 阅读(1919) 回复(4)

简介 oprofile和Intel的VTune类似,都是利用CPU提供的性能计数功能对系统进行profiling. CPU提供一些性能计数器,经过配置可以对各种事件进行计数,当超过一定的threshold,会发出NMI中断,中断处理程序可以记录下当前的PC,current task等信息。用户可以对其dump进行分析。 oprofile主要用于系统调优,对于程序员和系统管理员都是一个找hotspot的很不错的工具。top只能采样到进程一级,你可以知道哪个进程占用CPU资源最多,但是t...

by loughsky - Linux文档专区 - 2007-03-26 10:49:47 阅读(593) 回复(0)

本帖最后由 chishanmingshen 于 2013-01-25 21:10 编辑 oprofile应该是支持用户程序的啊,为何此处只有非用户态才统计? 此处不明白啊, 请指点, 多谢![code] void profile_tick(int type) { struct pt_regs *regs = get_irq_regs(); if (type == CPU_PROFILING && timer_hook) timer_hook(regs); if (!user_mode(regs) && <---------------何意? prof_cpu_mask != NULL && cpumask_test_cpu(smp_processor...

by chishanmingshen - 内核源码 - 2013-04-25 19:33:50 阅读(1520) 回复(2)

by sudoers - 移动操作系统 - 2012-02-11 15:53:10 阅读(1263) 回复(1)

大家好,我在arm11板子上运行oprofile无法捕获事件 /mnt/test $ opcontrol --status Daemon paused: pid 14343 Event 0: DCACHE_MISS:7500:0:0:1 Separate options: none vmlinux file: none Image filter: none Call-graph depth: 2 /mnt/test $ 那个Event总是0,不论我捕获什么类型的事件,不知道是怎么回事,求教

Filter

by green369258 - CPU与编译器 - 2011-09-28 15:41:21 阅读(2378) 回复(3)

内核版本2.6.18,oprofile还需要安装软件包吗,求指导,谢谢~

by wtz_wh - Linux系统管理 - 2010-09-15 09:53:37 阅读(4189) 回复(5)

现在的内核测试一直用oprofile , 设置也是一直用一般的设置,到时看到的结果标记里面没有内核的标记。 比图ip_rcv 函数等。我在一篇外国的文章里面都看到有,不知道有没有什么办法弄出来,我试了很多。 老外的图例:

by fly_cow - 内核源码 - 2010-06-12 15:53:35 阅读(1520) 回复(2)

由于oprofile需要在目标机上,所以需要交叉编译oprofile工具源码包: oprofile-0.9.3.tar.gz编译工具: arm-9tdmi-linux-gnu-gcc arm-9tdmi-linux-gnu-g++步骤: Cp oprofile-0.9.3.tar.gz workdir Tar zxvf oprofile-0.9.3.tar.gz Cd oprofile-0.9.3 CC=arm-9tdmi-linux-gnu-gcc CXX=arm-9tdmi-linux-gnu-g++ ./configure --with-kernel-s...

by nearfuture_qiny - Linux文档专区 - 2010-02-07 10:30:50 阅读(1751) 回复(0)

Q1: 下载从 http://oprofile.sourceforge.net/download/ 网址下载 oprofile-0.9.5.tar.gz 文件,将其放到我虚拟机的/nfs/memtest/oprofile文件夹下面并将其解压缩。 [root@localhost oprofile-0.9.5]# ./configure --with-kernel-support --target=arm-linux --host=arm-none-linux-gnueabi --build=i686-pc-linux-gnu --prefix=/nfs/memtest/oprofile/oprofile-0.9.5/usr/ checking for a BSD-compatible install... /usr/bin/i...

by fpseustar - Linux文档专区 - 2010-01-19 21:59:35 阅读(5952) 回复(0)

by tangke 2009-06-02 1. 概述 oprofile 是 Linux 平台上,类似 INTEL VTune 的一个功能强大的性能分析工具。 其支持两种采样(sampling)方式:基于事件的采样(event based)和基于时间的采样(time based)。 基于事件的采样是oprofile只记录特定事件(比如L2 cache miss)的发生次数,当达到用户设定的定值时oprofile 就记录一下(采一个样)。这种方式需要CPU 内部有性能计数器(performace counter)。现代CPU内部一般都有性能计数...

by fewlife - Linux文档专区 - 2009-07-22 19:16:10 阅读(874) 回复(0)