This is a preparation patch. The header file is required for disabling LTTng tracing.
Cc: Gu Ping <[email protected]> Signed-off-by: Hitoshi Mitake <[email protected]> --- include/Makefile.am | 2 +- include/lttng_disable.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 include/lttng_disable.h diff --git a/include/Makefile.am b/include/Makefile.am index 2c86984..ad73266 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -3,4 +3,4 @@ MAINTAINERCLEANFILES = Makefile.in config.h.in noinst_HEADERS = bitops.h event.h logger.h sheepdog_proto.h util.h \ list.h net.h sheep.h exits.h strbuf.h rbtree.h \ sha1.h option.h internal_proto.h shepherd.h work.h \ - sockfd_cache.h compiler.h fec.h + sockfd_cache.h compiler.h fec.h lttng_disable.h diff --git a/include/lttng_disable.h b/include/lttng_disable.h new file mode 100644 index 0000000..fa192fa --- /dev/null +++ b/include/lttng_disable.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2015 Nippon Telegraph and Telephone Corporation. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License version + * 2 as published by the Free Software Foundation. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef LTTNG_DISABLE_H +#define LTTNG_DISABLE_H + +#define tracepoint(provider, name, ...) do { } while (0) + +#endif /* LTTNG_DISABLE_H */ -- 1.9.1 -- sheepdog mailing list [email protected] https://lists.wpkg.org/mailman/listinfo/sheepdog
