diff options
author | Stan Cox <scox@redhat.com> | 2009-01-27 17:39:44 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-01-27 17:39:44 +0100 |
commit | 398a7882b05bded7f1d1116d4c06fe25aa7f5fea (patch) | |
tree | 79b14cfb9175811209e3d4f36988b23481f2f13d | |
parent | d079c8a3bfbd22936e0ad435e8d5f6937b4cbd00 (diff) | |
download | systemtap-steved-398a7882b05bded7f1d1116d4c06fe25aa7f5fea.tar.gz systemtap-steved-398a7882b05bded7f1d1116d4c06fe25aa7f5fea.tar.xz systemtap-steved-398a7882b05bded7f1d1116d4c06fe25aa7f5fea.zip |
sdt.h (struct _probe_): Make probe_name a STAP_PROBE_STRUCT_ARG.
-rw-r--r-- | runtime/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/sdt.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index d005d3c1..3275874d 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2008-01-27 Stan Cox <scox@redhat.com> + + * sdt.h (struct _probe_): Make probe_name a STAP_PROBE_STRUCT_ARG. + 2009-01-26 Mark Wielaard <mjw@redhat.com> * sdt.h: DTRACE_PROBE5 is STAP_PROBE5, not 4, likewise for 6. diff --git a/runtime/sdt.h b/runtime/sdt.h index 88183461..2db2e3a0 100644 --- a/runtime/sdt.h +++ b/runtime/sdt.h @@ -22,13 +22,13 @@ struct _probe_ ## probe \ { \ int probe_type; \ - char *probe_name; \ + STAP_PROBE_STRUCT_ARG (probe_name); \ STAP_PROBE_STRUCT_ARG (probe_arg); \ }; \ -static char probe_name [strlen(#probe)+1] \ +static char probe ## _ ## probe_name [strlen(#probe)+1] \ __attribute__ ((section (".probes"))) \ = #probe; \ -static volatile struct _probe_ ## probe _probe_ ## probe __attribute__ ((section (".probes"))) = {STAP_SENTINEL,&probe_name[0],argc}; + static volatile struct _probe_ ## probe _probe_ ## probe __attribute__ ((section (".probes"))) = {STAP_SENTINEL,(long)& probe ## _ ## probe_name[0],argc}; #define STAP_CONCAT(a,b) a ## b #define STAP_LABEL(p,n) \ |