From: Mathieu Desnoyers Date: Thu, 16 Feb 2012 17:20:36 +0000 (-0500) Subject: Install easy-ust and gen-tp examples in doc/ X-Git-Tag: v1.9.8~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7ccf75d384dd852f7aa51b44663546dd3c6baa83;p=lttng-ust.git Install easy-ust and gen-tp examples in doc/ Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile.am b/Makefile.am index bc2f4420..e231e085 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,8 @@ SUBDIRS = . include snprintf libringbuffer liblttng-ust-comm \ liblttng-ust-fork \ liblttng-ust-libc-wrapper \ tools \ - tests + tests \ + doc if BUILD_JNI_INTERFACE SUBDIRS += liblttng-ust-java diff --git a/configure.ac b/configure.ac index 9c452708..6acad6d3 100644 --- a/configure.ac +++ b/configure.ac @@ -253,6 +253,8 @@ AS_IF([test "x$with_sdt" = "xyes"],[ AC_CONFIG_FILES([ Makefile + doc/Makefile + doc/examples/Makefile include/Makefile include/lttng/ust-version.h snprintf/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 00000000..c32f24fe --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = . examples + +#dist_man_MANS = man/lttng-ust.3 diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am new file mode 100644 index 00000000..f825f8b4 --- /dev/null +++ b/doc/examples/Makefile.am @@ -0,0 +1,9 @@ +doc_examples_easy_ustdir = ${docdir}/examples/easy-ust +doc_examples_gen_tpdir = ${docdir}/examples/gen-tp + +dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \ + easy-ust/sample.c \ + easy-ust/sample_component_provider.h easy-ust/tp.c + +dist_doc_examples_gen_tp_DATA = gen-tp/Makefile \ + gen-tp/sample.c gen-tp/sample_tracepoint.tp diff --git a/doc/examples/easy-ust/Makefile b/doc/examples/easy-ust/Makefile new file mode 100644 index 00000000..597071b5 --- /dev/null +++ b/doc/examples/easy-ust/Makefile @@ -0,0 +1,44 @@ +# Copyright (C) 2011-2012 Matthew Khouzam +# Copyright (C) 2012 Mathieu Desnoyers +# +# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED +# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. +# +# Permission is hereby granted to use or copy this program for any +# purpose, provided the above notices are retained on all copies. +# Permission to modify the code and to distribute modified code is +# granted, provided the above notices are retained, and a notice that +# the code was modified is included with the above copyright notice. + +# This makefile is not using automake so that people can see how to make +# simply. It builds a program with a statically embedded tracepoint +# provider probe. +# the "html" target helps for documentation (req. code2html) + +CC = gcc +LIBS = -ldl -llttng-ust +CFLAGS = -I. + +all: sample + +sample: sample.o tp.o + $(CC) $(LIBS) -o $@ $^ + +sample.o: sample.c sample_component_provider.h + $(CC) $(CFLAGS) -c -o $@ $< + +tp.o: tp.c sample_component_provider.h + $(CC) $(CFLAGS) -c -o $@ $< + +html: sample_component_provider.html sample.html tp.html + +%.html: %.c + code2html -lc $< $@ + +%.html : %.h + code2html -lc $< $@ + +.PHONY: clean +clean: + rm -f *.html + rm -f *.o sample diff --git a/doc/examples/easy-ust/sample b/doc/examples/easy-ust/sample new file mode 100755 index 00000000..a9419b47 Binary files /dev/null and b/doc/examples/easy-ust/sample differ diff --git a/doc/examples/easy-ust/sample.c b/doc/examples/easy-ust/sample.c new file mode 100644 index 00000000..d030d700 --- /dev/null +++ b/doc/examples/easy-ust/sample.c @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2011-2012 Matthew Khouzam + * Copyright (C) 2012 Mathieu Desnoyers + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program for any + * purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is + * granted, provided the above notices are retained, and a notice that + * the code was modified is included with the above copyright notice. + */ + +#include + +/* + * We need to define TRACEPOINT_DEFINE in one C file in the program + * before including provider headers. + */ +#define TRACEPOINT_DEFINE +#include "sample_component_provider.h" + +int main(int argc, char **argv) +{ + int i = 0; + + for (i = 0; i < 100000; i++) { + tracepoint(sample_component, message, "Hello World\n"); + usleep(1); + } + return 0; +} diff --git a/doc/examples/easy-ust/sample_component_provider.h b/doc/examples/easy-ust/sample_component_provider.h new file mode 100644 index 00000000..d63ff5a8 --- /dev/null +++ b/doc/examples/easy-ust/sample_component_provider.h @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2011-2012 Mathieu Desnoyers + * Copyright (C) 2011-2012 Matthew Khouzam + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program for any + * purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is + * granted, provided the above notices are retained, and a notice that + * the code was modified is included with the above copyright notice. + */ + +/* + * Sample lttng-ust tracepoint provider. + */ + +/* + * First part: defines + * We undef a macro before defining it as it can be used in several files. + */ + +/* + * Must be included before include tracepoint provider + * ex.: project_event + * ex.: project_component_event + * + * Optional company name goes here + * ex.: com_efficios_project_component_event + * + * In this example, "sample" is the project, and "component" is the + * component. + */ +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER sample_component + +/* + * include file (this files's name) + */ +#undef TRACEPOINT_INCLUDE_FILE +#define TRACEPOINT_INCLUDE_FILE ./sample_component_provider.h + +/* + * Add this macro and its matching element to make sure the program + * works in c++. + */ +#ifdef __cplusplus +#extern "C"{ +#endif /*__cplusplus */ + +/* + * Add this precompiler conditionals to ensure the tracepoint event generation + * can include this file more than once. + */ +#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _SAMPLE_COMPONENT_PROVIDER_H +/* + * Add this to allow programs to call "tracepoint(...): + */ +#include + +/* + * The following tracepoint event writes a message (c string) into the + * field message of the trace event message in the provider + * sample_component in other words: + * + * sample_component:message:message = text. + */ +TRACEPOINT_EVENT( + /* + * provider name, not a variable but a string starting with a letter + * and containing either letters, numbers or underscores. + * Needs to be the same as TRACEPOINT_PROVIDER + */ + sample_component, + /* + * tracepoint name, same format as sample provider. Does not need to be + * declared before. in this case the name is "message" + */ + message, + /* + * TP_ARGS macro contains the arguments passed for the tracepoint + * it is in the following format + * TP_ARGS( type1, name1, type2, name2, ... type10, name10) + * where there can be from zero to ten elements. + * typeN is the datatype, such as int, struct or double **. + * name is the variable name (in "int myInt" the name would be myint) + * TP_ARGS() is valid to mean no arguments + * TP_ARGS( void ) is valid too + */ + TP_ARGS(char *, text), + /* + * TP_FIELDS describes how to write the fields of the trace event. + * You can use the args here + */ + TP_FIELDS( + /* + * The ctf_string macro takes a c string and writes it into a field + * named "message" + */ + ctf_string(message, text) + ) +) +/* + * Trace loglevel, shows the level of the trace event. It can be TRACE_EMERG, + * TRACE_ALERT, TRACE_CRIT, TRACE_ERR, TRACE_WARNING, TRACE_INFO or others. + * If this is not set, TRACE_DEFAULT is assumed. + * The first two arguments identify the tracepoint + * See details in line 347 + */ +TRACEPOINT_LOGLEVEL( + /* + * The provider name, must be the same as the provider name in the + * TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above. + */ + sample_component, + /* + * The tracepoint name, must be the same as the tracepoint name in the + * TRACEPOINT_EVENT + */ + message, + /* + * The tracepoint loglevel. Warning, some levels are abbreviated and + * others are not, please see + */ + TRACE_WARNING) + +#endif /* _SAMPLE_COMPONENT_PROVIDER_H */ + +/* + * Add this after defining the tracepoint events to expand the macros. + */ +#include + +/* + * Add this macro and its matching element to make sure the program + * works in c++. + */ +#ifdef __cplusplus +} +#endif /*__cplusplus */ diff --git a/doc/examples/easy-ust/tp.c b/doc/examples/easy-ust/tp.c new file mode 100644 index 00000000..bf8e4c3f --- /dev/null +++ b/doc/examples/easy-ust/tp.c @@ -0,0 +1,24 @@ +/* + * tp.c + * + * Copyright (c) 2011 Mathieu Desnoyers + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program for any + * purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is + * granted, provided the above notices are retained, and a notice that + * the code was modified is included with the above copyright notice. + */ + +/* + * Defining macro creates the code objects of the traceprobes, only do + * it once per file + */ +#define TRACEPOINT_CREATE_PROBES +/* + * The header containing our TRACEPOINT_EVENTs. + */ +#include "sample_component_provider.h" diff --git a/doc/examples/gen-tp/Makefile b/doc/examples/gen-tp/Makefile new file mode 100644 index 00000000..664372f2 --- /dev/null +++ b/doc/examples/gen-tp/Makefile @@ -0,0 +1,40 @@ +# Copyright (C) 2011-2012 Matthew Khouzam +# Copyright (C) 2012 Mathieu Desnoyers +# Copyright (C) 2012 Yannick Brosseau +# +# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED +# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. +# +# Permission is hereby granted to use or copy this program for any +# purpose, provided the above notices are retained on all copies. +# Permission to modify the code and to distribute modified code is +# granted, provided the above notices are retained, and a notice that +# the code was modified is included with the above copyright notice. + +# This makefile is not using automake so that people can see how to make +# simply. It builds a program with a statically embedded tracepoint +# provider probe. + +CC = gcc +LIBS = -ldl -llttng-ust + +all: sample + +sample: sample.o sample-tp.o + $(CC) $(LIBS) -o $@ $^ + +sample.o: sample.c sample_tracepoint.h + $(CC) $(CFLAGS) -c -o $@ $< + +sample-tp.o: sample_tracepoint.c sample_tracepoint.h + $(CC) $(CFLAGS) -I. -c -o $@ $< + +%.h: %.tp + lttng-gen-tp -o $@ $< +%.c: %.tp + lttng-gen-tp -o $@ $< + +.PHONY: clean +clean: + rm -f *.o sample + rm -f sample_tracepoint.h sample_tracepoint.c diff --git a/doc/examples/gen-tp/sample.c b/doc/examples/gen-tp/sample.c new file mode 100644 index 00000000..729258c2 --- /dev/null +++ b/doc/examples/gen-tp/sample.c @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2011-2012 Matthew Khouzam + * Copyright (C) 2012 Mathieu Desnoyers + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program for any + * purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is + * granted, provided the above notices are retained, and a notice that + * the code was modified is included with the above copyright notice. + */ +#include + +#include "sample_tracepoint.h" +int main(int argc, char **argv) +{ + int i = 0; + + for (i = 0; i < 100000; i++) { + tracepoint(sample_tracepoint, message, "Hello World\n"); + usleep(1); + } + return 0; +} diff --git a/doc/examples/gen-tp/sample_tracepoint.tp b/doc/examples/gen-tp/sample_tracepoint.tp new file mode 100644 index 00000000..fa7d18a5 --- /dev/null +++ b/doc/examples/gen-tp/sample_tracepoint.tp @@ -0,0 +1,15 @@ +TRACEPOINT_EVENT( + sample_tracepoint, + message, // C++ Style comment + TP_ARGS(char *, text), + TP_FIELDS( + ctf_string(message, text) + ) +) +/* + * Longer comments + */ +TRACEPOINT_LOGLEVEL( + sample_tracepoint, + message, + TRACE_WARNING) diff --git a/tests/easy_ust/Makefile b/tests/easy_ust/Makefile deleted file mode 100644 index 597071b5..00000000 --- a/tests/easy_ust/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (C) 2011-2012 Matthew Khouzam -# Copyright (C) 2012 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. - -# This makefile is not using automake so that people can see how to make -# simply. It builds a program with a statically embedded tracepoint -# provider probe. -# the "html" target helps for documentation (req. code2html) - -CC = gcc -LIBS = -ldl -llttng-ust -CFLAGS = -I. - -all: sample - -sample: sample.o tp.o - $(CC) $(LIBS) -o $@ $^ - -sample.o: sample.c sample_component_provider.h - $(CC) $(CFLAGS) -c -o $@ $< - -tp.o: tp.c sample_component_provider.h - $(CC) $(CFLAGS) -c -o $@ $< - -html: sample_component_provider.html sample.html tp.html - -%.html: %.c - code2html -lc $< $@ - -%.html : %.h - code2html -lc $< $@ - -.PHONY: clean -clean: - rm -f *.html - rm -f *.o sample diff --git a/tests/easy_ust/sample.c b/tests/easy_ust/sample.c deleted file mode 100644 index d030d700..00000000 --- a/tests/easy_ust/sample.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2011-2012 Matthew Khouzam - * Copyright (C) 2012 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - */ - -#include - -/* - * We need to define TRACEPOINT_DEFINE in one C file in the program - * before including provider headers. - */ -#define TRACEPOINT_DEFINE -#include "sample_component_provider.h" - -int main(int argc, char **argv) -{ - int i = 0; - - for (i = 0; i < 100000; i++) { - tracepoint(sample_component, message, "Hello World\n"); - usleep(1); - } - return 0; -} diff --git a/tests/easy_ust/sample_component_provider.h b/tests/easy_ust/sample_component_provider.h deleted file mode 100644 index d63ff5a8..00000000 --- a/tests/easy_ust/sample_component_provider.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2011-2012 Mathieu Desnoyers - * Copyright (C) 2011-2012 Matthew Khouzam - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - */ - -/* - * Sample lttng-ust tracepoint provider. - */ - -/* - * First part: defines - * We undef a macro before defining it as it can be used in several files. - */ - -/* - * Must be included before include tracepoint provider - * ex.: project_event - * ex.: project_component_event - * - * Optional company name goes here - * ex.: com_efficios_project_component_event - * - * In this example, "sample" is the project, and "component" is the - * component. - */ -#undef TRACEPOINT_PROVIDER -#define TRACEPOINT_PROVIDER sample_component - -/* - * include file (this files's name) - */ -#undef TRACEPOINT_INCLUDE_FILE -#define TRACEPOINT_INCLUDE_FILE ./sample_component_provider.h - -/* - * Add this macro and its matching element to make sure the program - * works in c++. - */ -#ifdef __cplusplus -#extern "C"{ -#endif /*__cplusplus */ - -/* - * Add this precompiler conditionals to ensure the tracepoint event generation - * can include this file more than once. - */ -#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ) -#define _SAMPLE_COMPONENT_PROVIDER_H -/* - * Add this to allow programs to call "tracepoint(...): - */ -#include - -/* - * The following tracepoint event writes a message (c string) into the - * field message of the trace event message in the provider - * sample_component in other words: - * - * sample_component:message:message = text. - */ -TRACEPOINT_EVENT( - /* - * provider name, not a variable but a string starting with a letter - * and containing either letters, numbers or underscores. - * Needs to be the same as TRACEPOINT_PROVIDER - */ - sample_component, - /* - * tracepoint name, same format as sample provider. Does not need to be - * declared before. in this case the name is "message" - */ - message, - /* - * TP_ARGS macro contains the arguments passed for the tracepoint - * it is in the following format - * TP_ARGS( type1, name1, type2, name2, ... type10, name10) - * where there can be from zero to ten elements. - * typeN is the datatype, such as int, struct or double **. - * name is the variable name (in "int myInt" the name would be myint) - * TP_ARGS() is valid to mean no arguments - * TP_ARGS( void ) is valid too - */ - TP_ARGS(char *, text), - /* - * TP_FIELDS describes how to write the fields of the trace event. - * You can use the args here - */ - TP_FIELDS( - /* - * The ctf_string macro takes a c string and writes it into a field - * named "message" - */ - ctf_string(message, text) - ) -) -/* - * Trace loglevel, shows the level of the trace event. It can be TRACE_EMERG, - * TRACE_ALERT, TRACE_CRIT, TRACE_ERR, TRACE_WARNING, TRACE_INFO or others. - * If this is not set, TRACE_DEFAULT is assumed. - * The first two arguments identify the tracepoint - * See details in line 347 - */ -TRACEPOINT_LOGLEVEL( - /* - * The provider name, must be the same as the provider name in the - * TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above. - */ - sample_component, - /* - * The tracepoint name, must be the same as the tracepoint name in the - * TRACEPOINT_EVENT - */ - message, - /* - * The tracepoint loglevel. Warning, some levels are abbreviated and - * others are not, please see - */ - TRACE_WARNING) - -#endif /* _SAMPLE_COMPONENT_PROVIDER_H */ - -/* - * Add this after defining the tracepoint events to expand the macros. - */ -#include - -/* - * Add this macro and its matching element to make sure the program - * works in c++. - */ -#ifdef __cplusplus -} -#endif /*__cplusplus */ diff --git a/tests/easy_ust/tp.c b/tests/easy_ust/tp.c deleted file mode 100644 index bf8e4c3f..00000000 --- a/tests/easy_ust/tp.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * tp.c - * - * Copyright (c) 2011 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - */ - -/* - * Defining macro creates the code objects of the traceprobes, only do - * it once per file - */ -#define TRACEPOINT_CREATE_PROBES -/* - * The header containing our TRACEPOINT_EVENTs. - */ -#include "sample_component_provider.h" diff --git a/tests/gen-tp/Makefile b/tests/gen-tp/Makefile deleted file mode 100644 index 664372f2..00000000 --- a/tests/gen-tp/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (C) 2011-2012 Matthew Khouzam -# Copyright (C) 2012 Mathieu Desnoyers -# Copyright (C) 2012 Yannick Brosseau -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. - -# This makefile is not using automake so that people can see how to make -# simply. It builds a program with a statically embedded tracepoint -# provider probe. - -CC = gcc -LIBS = -ldl -llttng-ust - -all: sample - -sample: sample.o sample-tp.o - $(CC) $(LIBS) -o $@ $^ - -sample.o: sample.c sample_tracepoint.h - $(CC) $(CFLAGS) -c -o $@ $< - -sample-tp.o: sample_tracepoint.c sample_tracepoint.h - $(CC) $(CFLAGS) -I. -c -o $@ $< - -%.h: %.tp - lttng-gen-tp -o $@ $< -%.c: %.tp - lttng-gen-tp -o $@ $< - -.PHONY: clean -clean: - rm -f *.o sample - rm -f sample_tracepoint.h sample_tracepoint.c diff --git a/tests/gen-tp/sample.c b/tests/gen-tp/sample.c deleted file mode 100644 index 729258c2..00000000 --- a/tests/gen-tp/sample.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2011-2012 Matthew Khouzam - * Copyright (C) 2012 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - */ -#include - -#include "sample_tracepoint.h" -int main(int argc, char **argv) -{ - int i = 0; - - for (i = 0; i < 100000; i++) { - tracepoint(sample_tracepoint, message, "Hello World\n"); - usleep(1); - } - return 0; -} diff --git a/tests/gen-tp/sample_tracepoint.tp b/tests/gen-tp/sample_tracepoint.tp deleted file mode 100644 index fa7d18a5..00000000 --- a/tests/gen-tp/sample_tracepoint.tp +++ /dev/null @@ -1,15 +0,0 @@ -TRACEPOINT_EVENT( - sample_tracepoint, - message, // C++ Style comment - TP_ARGS(char *, text), - TP_FIELDS( - ctf_string(message, text) - ) -) -/* - * Longer comments - */ -TRACEPOINT_LOGLEVEL( - sample_tracepoint, - message, - TRACE_WARNING)