Hi - Mathieu Desnoyers wrote: > [...] Do you have ideas on how we can export the function symbol? > (is it necessary ?) It turns out that static variables like that get included in the ordinary symbol tables along with other (un)initialized globals - it has been making it into /proc/kallsyms. If the normal symbol table is not available, then some other measure would be needed to find the variable containing the function pointer. > [...] > #define MARK(name, format, args...) \ > do { \ > __mark_check_format(format, ## args); \ > MARK_SYM(name); \ > MARK_CALL(name, format, ## args); \ > } while(0) While varargs simplify some things, it sacrifices type-safety, in that a handler function would have to be varargs too. For the systemtap marker prototype, parametrized variants use scores of (automatically generated) macros, with different arity/type permutations, each self-describing and type-safe. Regarding a marker variant that would require kprobes (inserting a labelled NOP or few), it may be an appropriate choice where dormant marker overhead must be minimal and robust parameter passing is less important. - FChE
Attachment:
pgp2iiNF5vPKS.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- References:
- [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: [email protected] (Frank Ch. Eigler)
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: "Frank Ch. Eigler" <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: "Frank Ch. Eigler" <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Karim Yaghmour <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: "Frank Ch. Eigler" <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- From: Mathieu Desnoyers <[email protected]>
- [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- Prev by Date: Block information: Changing from GB to GiB
- Next by Date: Re: [patch] mspec driver
- Previous by thread: Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- Next by thread: Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17
- Index(es):