#define _SDT_HAS_SEMAPHORES 1
#define STAP_HAS_SEMAPHORES 1
{% include "sys_sdt.h" %}
extern "C" {
{% for probe_spec in spec.probes() %}
void {{spec.name_with_hash()}}_{{probe_spec.name}}(
{%for arg in probe_spec.args %}{{ arg.arg_type_info().get_c_type_str() }} {{ arg.name() }}{% if !loop.last %}, {% endif %}{%endfor%}
) {
STAP_PROBE{% if probe_spec.args.len() > 0 %}{{ probe_spec.args.len() }}{% endif %}(
{{ spec.name() }},
{{ probe_spec.name }}
{% for arg in probe_spec.args %}, {{ arg.name() }}{%endfor%}
);
}
__extension__ unsigned short {{spec.name()}}_{{probe_spec.name}}_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))) __attribute__ ((visibility ("hidden")));
{% endfor %}
}