mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
This checks whether sys/sdt.h is available or not, which is required for DTRACE_PROBE(). We can disable this feature by passing NO_SDT=1 when building. This flag will be used for SDT test case and further SDT events in perftools. Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Brendan Gregg <[email protected]> Cc: Hemant Kumar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/146831795615.17065.17513820540591053933.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
8 lines
83 B
C
8 lines
83 B
C
#include <sys/sdt.h>
|
|
|
|
int main(void)
|
|
{
|
|
DTRACE_PROBE(provider, name);
|
|
return 0;
|
|
}
|