Re: [PATCH 1/many] PROC macro to annotate functions in assembly files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander van Heukelum
Date: Thursday, December 18, 2008 - 2:23 am

On Wed, 17 Dec 2008 18:26:40 +0100, "Sam Ravnborg" <sam@ravnborg.org>
said:

Hi Sam,

Patches to remove KPROBE_ENTRY and KPROBE_END are currently
in the x86-tree.

PROC/ENDPROC should be used around code.

ENTRY/END should be used around objects which are never
executed, like data arrays.

That should be clear enough, I think. The only catch is how
to decide where to use the annotations at all. I have no
complete answer to that. However, in general it would be
good to annotate any object for which an address can be
found in registers, on the stack or in variables. Doubly
so if addresses are within the object but not exactly at
the start of it. This includes assembly functions called
from C (instruction pointer) and arrays.

The macro's are used to align code and data, to identify the
object as code or data and to add object size information to
the debugging info.

Greetings,
    Alexander

-- 
  Alexander van Heukelum
  heukelum@fastmail.fm

-- 
http://www.fastmail.fm - Access your email from home and the web

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PROC macro to annotate functions in assembly files, Alexander van Heukelum, (Wed Dec 17, 2:17 am)
[PATCH 1/many] PROC macro to annotate functions in assembl ..., Alexander van Heukelum, (Wed Dec 17, 2:17 am)
Re: PROC macro to annotate functions in assembly files, David Howells, (Wed Dec 17, 3:53 am)
Re: PROC macro to annotate functions in assembly files, Alexander van Heukelum, (Wed Dec 17, 4:12 am)
Re: [PATCH 1/many] PROC macro to annotate functions in ass ..., Alexander van Heukelum, (Thu Dec 18, 2:23 am)
Re: [PATCH 1/many] PROC macro to annotate functions in ass ..., Alexander van Heukelum, (Thu Dec 18, 2:51 am)
Re: [PATCH 1/many] PROC macro to annotate functions in ass ..., Alexander van Heukelum, (Thu Dec 18, 4:30 am)
Re: PROC macro to annotate functions in assembly files, Russell King, (Thu Dec 18, 4:44 am)
Re: PROC macro to annotate functions in assembly files, Alexander van Heukelum, (Thu Dec 18, 5:35 am)
Re: [PATCH 1/many] PROC macro to annotate functions in ass ..., Alexander van Heukelum, (Thu Dec 18, 5:40 am)
Re: PROC macro to annotate functions in assembly files, Russell King, (Thu Dec 18, 8:53 am)