barectf-tracepoint ex: rename "barectf" -> "barectf-linux-fs"
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Apr 2016 21:20:38 +0000 (17:20 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Apr 2016 21:23:03 +0000 (17:23 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
doc/examples/barectf-tracepoint/Makefile
doc/examples/barectf-tracepoint/Makefile.barectf [deleted file]
doc/examples/barectf-tracepoint/Makefile.barectf-linux-fs [new file with mode: 0644]
doc/examples/barectf-tracepoint/README.md
doc/examples/barectf-tracepoint/barectf-tracepoint-linux-fs.h

index 0574b055e7a5bf402235a343a7dbcdbcf77707fb..e7aa25f8395869edb8899c22b358cc7737c04112 100644 (file)
@@ -1,9 +1,9 @@
 .PHONY: all clean
 
 all:
-       make -f Makefile.barectf
+       make -f Makefile.barectf-linux-fs
        make -f Makefile.lttng-ust
 
 clean:
-       make -f Makefile.barectf clean
+       make -f Makefile.barectf-linux-fs clean
        make -f Makefile.lttng-ust clean
diff --git a/doc/examples/barectf-tracepoint/Makefile.barectf b/doc/examples/barectf-tracepoint/Makefile.barectf
deleted file mode 100644 (file)
index af1f972..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-BARECTF ?= barectf
-RM = rm -rf
-MKDIR = mkdir
-
-PLATFORM_DIR = ../../../platforms/linux-fs
-EXTRA_DIR = ../../../extra
-CFLAGS = -O2 -Wall -pedantic -std=gnu99 -I$(PLATFORM_DIR) -I$(EXTRA_DIR) -I.
-
-TARGET = barectf-tracepoint-barectf
-OBJS = $(TARGET).o barectf.o barectf-platform-linux-fs.o
-
-.PHONY: all clean
-
-all: $(TARGET)
-
-ctf:
-       $(MKDIR) ctf
-
-$(TARGET): $(OBJS)
-       $(CC) -o $@ $^
-
-ctf/metadata barectf-bitfield.h barectf.h barectf.c: config.yaml ctf
-       $(BARECTF) $< -m ctf
-
-barectf.o: barectf.c
-       $(CC) $(CFLAGS) -c $<
-
-barectf-platform-linux-fs.o: $(PLATFORM_DIR)/barectf-platform-linux-fs.c
-       $(CC) $(CFLAGS) -c $<
-
-$(TARGET).o: barectf-tracepoint.c barectf-tracepoint-linux-fs.h barectf.h barectf-bitfield.h
-       $(CC) -o $@ $(CFLAGS) -c $<
-
-clean:
-       $(RM) $(TARGET) $(OBJS) ctf
-       $(RM) barectf.h barectf-bitfield.h barectf.c
diff --git a/doc/examples/barectf-tracepoint/Makefile.barectf-linux-fs b/doc/examples/barectf-tracepoint/Makefile.barectf-linux-fs
new file mode 100644 (file)
index 0000000..d3cc836
--- /dev/null
@@ -0,0 +1,38 @@
+BARECTF ?= barectf
+RM = rm -rf
+MKDIR = mkdir -p
+
+PLATFORM_DIR = ../../../platforms/linux-fs
+EXTRA_DIR = ../../../extra
+CFLAGS = -O2 -Wall -pedantic -std=gnu99 -I$(PLATFORM_DIR) -I$(EXTRA_DIR) -I.
+
+VERSION = linux-fs
+TARGET = barectf-tracepoint-barectf-$(VERSION)
+OBJS = $(TARGET).o barectf-$(VERSION).o barectf-platform-linux-fs.o
+TRACEDIR = ctf-$(VERSION)
+
+.PHONY: all clean
+
+all: $(TARGET)
+
+$(TRACEDIR):
+       $(MKDIR) $@
+
+$(TARGET): $(OBJS)
+       $(CC) -o $@ $^
+
+$(TRACEDIR)/metadata barectf-bitfield.h barectf.h barectf.c: config.yaml $(TRACEDIR)
+       $(BARECTF) $< -m $(TRACEDIR)
+
+barectf-$(VERSION).o: barectf.c
+       $(CC) -o $@ $(CFLAGS) -c $<
+
+barectf-platform-linux-fs.o: $(PLATFORM_DIR)/barectf-platform-linux-fs.c
+       $(CC) $(CFLAGS) -c $<
+
+$(TARGET).o: barectf-tracepoint.c barectf-tracepoint-$(VERSION).h barectf.h barectf-bitfield.h
+       $(CC) -o $@ $(CFLAGS) -c $<
+
+clean:
+       $(RM) $(TARGET) $(OBJS) $(TRACEDIR)
+       $(RM) barectf.h barectf-bitfield.h barectf.c
index c26a2a9ed0cbd35d10c5be6f14d5c28bf1ee1ae1..ba5a9a9c74ec6aca9f416c56b66bb9d69c1c5cad 100644 (file)
@@ -18,7 +18,7 @@ installed, and do:
 
 To build only the example using barectf:
 
-    make -f Makefile.barectf
+    make -f Makefile.barectf-linux-fs
 
 To build only the example using LTTng-UST:
 
@@ -29,14 +29,14 @@ To build only the example using LTTng-UST:
 
 Run this example:
 
-    ./barectf-tracepoint-barectf
+    ./barectf-tracepoint-barectf-linux-fs
 
-The complete CTF trace is written to the `ctf` directory.
+The complete CTF trace is written to the `ctf-linux-fs` directory.
 
 You may run the example with any arguments; they will be recorded,
 as string fields in the events of the binary stream, e.g.:
 
-    ./barectf-tracepoint-barectf this argument and this one will be recorded
+    ./barectf-tracepoint-barectf-linux-fs this argument and this one will be recorded
 
 
 ## LTTng-UST tracing
index 0053b6dd9d69ac6ffe8a1bcee6e1085e7de76b5e..d1074ca65b91d91162e3849b6e8bf83f43811827 100644 (file)
@@ -26,7 +26,7 @@ static void init_tracing(void)
 {
        /* initialize platform */
        global_barectf_platform_ctx =
-               barectf_platform_linux_fs_init(512, "ctf", 1, 2, 7);
+               barectf_platform_linux_fs_init(512, "ctf-linux-fs", 1, 2, 7);
 
        if (!global_barectf_platform_ctx) {
                fprintf(stderr, "Error: could not initialize platform\n");
This page took 0.025499 seconds and 4 git commands to generate.