summaryrefslogtreecommitdiffstats
path: root/includes
Commit message (Collapse)AuthorAgeFilesLines
* PR10381 sdt.h macros create relocatable addresses in non-writable section.Mark Wielaard2009-07-101-1/+9
| | | | | | | | Allocated section needs to be writable when creating pic shared objects because we store relocatable addresses in them. * includes/sys/sdt.h (ALLOCSEC): New macro, depends on __PIC__. (STAP_PROBE_DATA_): Use new ALLOCSEC macro.
* Clarify sdt.h license for public domain.Stan Cox2009-07-081-1/+1
|
* Do not use GPL for sdt.h.Stan Cox2009-07-081-5/+1
|
* Correctly find probes for -m32 executables.Stan Cox2009-06-191-0/+1
| | | | | | | * sdt.h (STAP_PROBE_DATA_): Pad with 0 so final probe entry doesn't pickup a stray word. * sdt_misc.exp (static_user_markers.{c,d}): Add bstruct to test struct type handling
* Cast STAP_PROBE1 parameter.Stan Cox2009-06-181-4/+4
| | | | * sdt.h (STAP_PROBE1): Add cast of parm1 for narrower signed types.
* Add experimental utrace/kprobe sdt supportStan Cox2009-06-151-123/+285
| | | | | | | | | | | | * sdt.h (EXPERIMENTAL_UTRACE_SDT, EXPERIMENTAL_KPROBE_SDT): New probe point macros. * dtrace: Add support for creating type debug info, currently invoked with --types. * tapsets.cxx (probe_table::convert_probe): New. (probe_table::convert_location): New. (dwarf_builder::build): Use it to simplify probe point handling. * sdt.exp (pbtype_flags, pbtype_mssgs): New to also test kprobe and utrace. * static_uprobes.exp (pbtype_flags, pbtype_mssgs): New to also test kprobe and utrace.
* PR10172 sdt.h on powerpc Error: junk at end of line: `0'Mark Wielaard2009-05-201-1/+1
| | | | | | * includes/sys/sdt.h (STAP_NOP): __powerpc__ doesn't want an extra 0. Tested-by: Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com>
* PR10139 Mark .probes section SHF_ALLOC.Mark Wielaard2009-05-141-1/+2
| | | | | | * includes/sys/sdt.h (STAP_PROBE_DATA_): Mark .probes section SHF_ALLOC. * tapsets.cxx (dwarf_builder::build): Search in either dwarf or main elf file for .probes section.
* Avoid a uprobe break setting problem by avoiding 'nop 0' on x86.Stan Cox2009-04-231-11/+17
| | | | | * sdt.h (STAP_NOP): New. (STAP_PROBE): Use it.
* Avoid 64 bit address value on a 32 bit machine.Stan Cox2009-04-221-2/+8
| | | | | * sdt.h (STAP_PROBE_ADDR): New. (STAP_PROBE_DATA_): Use it.
* Make sdt.h big endian aware.Stan Cox2009-04-221-13/+13
| | | | | | * sdt.h: Use .quad instead of .long for .probe section addresses. ia64 and s390 require 'nop 0' and x86 tolerates it. * tapsets.cxx (build): Fetch probe_name in a big endian friendly fashion.
* Use alloca trick to keep argN active on GCC 4.1.Stan Cox2009-04-011-14/+34
| | | | | | * includes/sys/sdt.h (STAP_UNINLINE): New. (STAP_UNINLINE_LABEL): New. static_uprobes.exp: Match using charset instead of .*
* Use read operand "g" constraints.Stan Cox2009-03-241-10/+10
| | | | | * includes/sdt.h (STAP_PROBEN): Use R "g" instead of RW "+rm" which can result in "read-only variable arg1 used as asm output"
* Keep static probe parameters visible while inlining.Stan Cox2009-03-241-94/+123
| | | | | | | | * includes/sys/sdt.h (STAP_PROBEN): Revive the STAP_LABEL macro to prevent inlining to keep probe parameters visible. Use +rm constraints. * tapsets.cxx (build): Use .probes section for all uses of static probes.
* Make .probes 32 bit aware and simplify label handling.Stan Cox2009-03-231-62/+56
| | | | | | * includes/sys/sdt.h (STAP_PROBE_DATA_): Use gas local labels which avoids a mysql problem when a function containing a probe is inlined. Make the data placement 32 bit aware.
* Define static user probe point using asm instead of c.Stan Cox2009-03-201-73/+50
| | | | | | | | | * includes/sys/sdt.h (STAP_PROBE_DATA): New. Define the probe point using asm instead of c. (STAP_PROBEN): Use it. * testsuite/systemtap.base/sdt.exp: Continue if a compile fails. * testsuite/systemtap.base/static_uprobes.exp: Don't test setting probe without .probes section.
* improve sdt.h compatibility and test suiteFrank Ch. Eigler2009-03-111-20/+20
| | | | | | Replaced cpp VA_ARGS in sdt.h with explicit enumeration of arguments (since with -pedantic, cpp has no varargs), and added a few more cflags variants to the sdt.exp test case.
* Ensure args are available for postgres static probes.Stan Cox2009-03-101-25/+25
| | | | * includes/sys/sdt.h: Couple asm with its arg declaration.
* Use alternate keywords for sdt.hStan Cox2009-03-091-136/+92
| | | | * include/sys/sdt.h: Initialize args when declaring. Use alternate keywords.
* Include sys/types.h in sdt.h for __uint64_t.Mark Wielaard2009-03-091-0/+1
| | | | * includes/sys/sdt.h: Add #include <sys/types.h>.
* Put statements after declaration in sdt macros. Fix arg10 assignment.Mark Wielaard2009-03-091-85/+140
| | | | * includes/sys/sdt.h: Assign args, after declaration.
* Only use plain C comments in sdt.h.Mark Wielaard2009-03-091-10/+11
| | | | includes/sys/sdt.h: Replace c++ comments with plain C comments.
* Remove extra semi-colons from defines in sdt.h.Mark Wielaard2009-03-091-3/+3
| | | | | * includes/sys/sdt.h (STAP_PROBE_STRUCT_ARG): Remove ending semi-colon. (STAP_LABEL_REF): Likewise.
* STAP_PROBE takes no extra arguments.Mark Wielaard2009-03-061-2/+2
| | | | * includes/sys/sdt.h (STAP_PROBE): Don't add __VA_ARGS__.
* Create unique named labels.Stan Cox2009-03-061-65/+94
| | | | | * includes/sys/sdt.h (STAP_PROBEN_): New macros that take advantage of __COUNTER__
* Allow the same static user probe to be used multiple times per line.Stan Cox2009-03-021-15/+41
| | | | | * dtrace (provider): Add STAP_PROBE10. * includes/sys/sdt.h: Likewise. Convert labels to __label__
* Always emit .probes section; use .label method as a backup strategyStan Cox2009-02-181-12/+5
|
* use "X" asm constraint for user-space marker parmsFrank Ch. Eigler2009-02-171-5/+5
|
* Move sdt.h to includes/sys and use in tests.Mark Wielaard2009-02-171-0/+180