Skip to contentSkip to conversation

Need to hack kernel module of VTune (remap_page_range)

DISCUSSION Tetsuji "Maverick" Rai 2 participants 2 messages Jun 17, 2005

lore
Share & tools
lore
#0 lore raw

I'm trying to install VTune by Intel (see
http://www.intel.com/software/products/vtune/vlin/index.htm for details) but this creates a kernel module for "older" kernels; it can be built on my Gentoo w/kernel 2.6.11.12, but it looks for symbol "remap_page_range" which was used until 2.6.8 or 2.6.9. So I would like to know how to hack this kernel module (fortunately sources are
with the package). What's the key?

It's defined in linux/mm/nommu.c in kernel-2.6.9.

Thanks in advance!!

Signature · 4 lines
Luckiest in the world / Weapon of Mass Distraction
http://maverick6664.bravehost.com/
Aviation Jokes: http://www.geocities.com/tetsuji_rai/
Background: http://maverick.ns1.name/
#1 lore raw
Quoted 7 lines · Tetsuji "Maverick" Rai

I'm trying to install VTune by Intel (see
http://www.intel.com/software/products/vtune/vlin/index.htm for details) but this creates a kernel module for "older" kernels; it can be built on my Gentoo w/kernel 2.6.11.12, but it looks for symbol "remap_page_range" which was used until 2.6.8 or 2.6.9. So I would like to know how to hack this kernel module (fortunately sources are
with the package). What's the key?

You may look into this:

"remap_pfn_range()"

	http://lwn.net/Articles/104333/

Conversion to remap_pfn_range() in sound/

	http://linux.bkbits.net:8080/linux-2.6/cset@41768440y2w0JI791mgE2LQjagt5dA

It seems that s/remap_page_range/remap_pfn_range/g and shifting 3-rd argument when needed is enough.