Skip to contentSkip to conversation

OT: Using oprofile on buildroot system

Buildroot Grant Edwards 1 participant 2 messages Aug 20, 2014

lore
Share & tools
lore
#0 lore raw

I'm trying to get oprofile 0.9.9 running on my ARM9 biuldroot target. I've enabled oprofile support in my kernel (2.6.33), and the oprofile package builds fine, and the binaries are where they should be on the target system. But, when I try to run opcontrol, it appears to be trying to load a runtime kernel module:

  # opcontrol --init
  modprobe: chdir(/lib/modules): No such file or directory
  modprobe: chdir(/lib/modules): No such file or directory
  Kernel doesn't support oprofile

The oprofile docs say you can enable oprofile support either as a module or built-in, and I have done the latter -- so despite what opcontrol says, my kernel _does_ support oprofile.

I don't have loadable module support enabled in my kernel so of course modprobe isn't going to work.

Does anybody have any hints on getting oprofile running?

Any ideas on what module opcontrol might be trying to load?

[I've asked these questions on the oprofile mailing list, but haven't gotten any response.]

Signature · 3 lines
Grant Edwards               grant.b.edwards        Yow! Why are these athletic
                                  at               shoe salesmen following
                              gmail.com            me??
#1 lore raw
Quoted 2 lines · Grant Edwards

[...] when I try to run opcontrol, it appears to be trying to load a runtime kernel module:

Rats. I was looking at the wrong kconfig variable. Somebody told me that oprofile support was enabled, and I saw that CONFIG_HAVE_OPROFILE was set to 'y'. But, that doesn't mean you _have_ oprofile support enabled. After enabling the correct variable (CONFIG_OPROFILE), it looks like it's working...

Signature · 3 lines
Grant Edwards               grant.b.edwards        Yow! I'm wearing PAMPERS!!
                                  at               
                              gmail.com