[go: up one dir, main page]

File: s-sdt.c

package info (click to toggle)
uftrace 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,212 kB
  • sloc: ansic: 53,313; python: 9,846; makefile: 838; asm: 703; cpp: 602; sh: 560; javascript: 191
file content (18 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdlib.h>
#include <sys/sdt.h>

void foo(int n)
{
	STAP_PROBE(uftrace, event);
}

int main(int argc, char *argv[])
{
	int n = 1;

	if (argc > 1)
		n = atoi(argv[1]);

	foo(n);
	return 0;
}