public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Need to hack kernel module of VTune (remap_page_range)
@ 2005-06-17 13:42 Tetsuji "Maverick" Rai
  2005-06-17 15:37 ` Alexey Dobriyan
  0 siblings, 1 reply; 2+ messages in thread
From: Tetsuji "Maverick" Rai @ 2005-06-17 13:42 UTC (permalink / raw)
  To: linux-kernel

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!!
-- 
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need to hack kernel module of VTune (remap_page_range)
  2005-06-17 13:42 Need to hack kernel module of VTune (remap_page_range) Tetsuji "Maverick" Rai
@ 2005-06-17 15:37 ` Alexey Dobriyan
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-06-17 15:37 UTC (permalink / raw)
  To: Tetsuji "Maverick" Rai; +Cc: linux-kernel

On Friday 17 June 2005 17:42, Tetsuji "Maverick" Rai wrote:
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-17 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-17 13:42 Need to hack kernel module of VTune (remap_page_range) Tetsuji "Maverick" Rai
2005-06-17 15:37 ` Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox