Linux, 工作, 生活, 家人

Embedded

ARM 的 Oprofile

最近在弄 ARM11 的 Oprofile, 結果發現執行 opcontrol 的動作之後, 沒有 log 的動作.
大致上的訊息是這樣的
[Bash]
# opcontrol –shutdown
Stopping profiling.
Killing daemon.
# Stopping profiling.
Killing daemon.
opreport image:/vmlinux -l -w -g > oprofile.txt
error: no sample files found: profile specification too strict ?
[/Bash]

這時請改用 timer interrupt

在 load oprofile modules 加上 timer=1
若是 static link 時, 就要在 boot_cmd 加上 oprofile.timer=1

似乎目前的 kernel oprofile 不支援 ARM11MPCore.

http://oprofile.sourceforge.net/doc/detailed-parameters.html#timer

4 留言

  1. 李佳

    你好,很高興能在你的博客上面看到關于arm11上oprofile的內容,想請教您:如何把oprofile移植(安裝)在arm11上?希望能把步驟或者資料通過郵件告訴我。非常感謝!

  2. laloka

    你好 我有兩個問題想要請教你
    1 要再那一個時候加上timer=1
    2 我target端的log 會存在/data/oprofile/samples/oprofile.log 但是他的格式不像是正式的紀錄檔 如果我跟我的device是透過serial port相連的 那我有辦法取得正常的紀錄格式媽
    謝謝

    • 文章作者的留言

      1. Kernel boot 選項加 timer=1, load module 也可以加, 可以查一下手冊

      2. 你應該是要產生分析檔, 用 opreport 就可以產生.

      如果要 raw data, 我沒有這方面的經驗.

回覆留言對象 取消回覆