ltt-ascii init fix, renaming CONFIG_LTT_* options to LTT_* v0.19
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 3 Sep 2010 15:50:13 +0000 (11:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 3 Sep 2010 15:50:13 +0000 (11:50 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile
ltt-ascii.c
ltt-core.c
ltt-relay-lockless.c
ltt-relay-lockless.h
ltt-serialize.c
ltt-type-serializer.c

index befc98e04b2b2c0632bb403763c142721cdcd356..81d81288a48625277a01732326074dd047cd0537 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ endif
 else
        KERNELDIR ?= /lib/modules/$(shell uname -r)/build
        PWD := $(shell pwd)
+       CFLAGS = $(EXTCFLAGS)
 
 default:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
index ed3c20d58dfa23df49340b70e0de25bbedc7d0a3..b020fedb39a62ea1771e51d52006e2b6ed7db70d 100644 (file)
@@ -568,7 +568,6 @@ EXPORT_SYMBOL_GPL(ltt_ascii_remove_dir);
 __init int ltt_ascii_init(void)
 {
        ltt_ascii_dir_dentry = debugfs_create_dir(LTT_ASCII, get_ltt_root());
-       put_ltt_root();
 
        return ltt_ascii_dir_dentry ? 0 : -EFAULT;
 }
@@ -576,6 +575,7 @@ __init int ltt_ascii_init(void)
 __exit void ltt_ascii_exit(void)
 {
        debugfs_remove(ltt_ascii_dir_dentry);
+       put_ltt_root();
 }
 
 MODULE_LICENSE("GPL and additional rights");
index 13d517f5582f18dc7b6d01476172eb5abfa98241..1a0424e95c39bf6ea385662a7dd85f199cc0ea59 100644 (file)
@@ -106,3 +106,7 @@ void ltt_filter_unregister(void)
        ltt_run_filter = ltt_run_filter_default;
 }
 EXPORT_SYMBOL_GPL(ltt_filter_unregister);
+
+MODULE_LICENSE("GPL and additional rights");
+MODULE_AUTHOR("Mathieu Desnoyers");
+MODULE_DESCRIPTION("Linux Trace Toolkit Next Generation Tracer Core");
index 0c4c83c25b95631bf24e18fcf4856895397e78f4..db4362d45569801055c3f187720592146dd5e97c 100644 (file)
@@ -121,7 +121,7 @@ void ltt_chanbuf_free(struct ltt_chanbuf *buf)
        struct ltt_chan *chan = container_of(buf->a.chan, struct ltt_chan, a);
 
        ltt_relay_print_buffer_errors(chan, buf->a.cpu);
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
        kfree(buf->commit_seq);
 #endif
        kfree(buf->commit_count);
@@ -157,7 +157,7 @@ int ltt_chanbuf_create(struct ltt_chanbuf *buf, struct ltt_chan_alloc *chana,
                goto free_chanbuf;
        }
 
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
        buf->commit_seq =
                kzalloc_node(ALIGN(sizeof(*buf->commit_seq) * chan->a.n_sb,
                                   1 << INTERNODE_CACHE_SHIFT),
@@ -208,7 +208,7 @@ int ltt_chanbuf_create(struct ltt_chanbuf *buf, struct ltt_chan_alloc *chana,
 
        /* Error handling */
 free_init:
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
        kfree(buf->commit_seq);
 free_commit:
 #endif
index 62fc5159a356306c208c3cd7906d293865b0e286..73c6a3d858ca6418188753569954e5d80eab2933 100644 (file)
@@ -88,7 +88,7 @@ struct ltt_chanbuf {
                                         * Last timestamp written in the buffer.
                                         */
        /* End of first 32 bytes cacheline */
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
        local_t *commit_seq;            /* Consecutive commits */
 #endif
        atomic_long_t active_readers;   /*
@@ -235,7 +235,7 @@ void ltt_reserve_push_reader(struct ltt_chanbuf *buf, struct ltt_chan *chan,
                                              consumed_new) != consumed_old));
 }
 
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
 static __inline__
 void ltt_vmcore_check_deliver(struct ltt_chanbuf *buf, long commit_count,
                              long idx)
@@ -342,7 +342,7 @@ int ltt_relay_try_reserve(struct ltt_chanbuf *buf, struct ltt_chan *chan,
 
        *tsc = trace_clock_read64();
 
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
        prefetch(&buf->commit_count[SUBBUF_INDEX(*o_begin, chan)]);
        prefetch(&buf->commit_seq[SUBBUF_INDEX(*o_begin, chan)]);
 #else
@@ -452,7 +452,7 @@ void ltt_force_switch(struct ltt_chanbuf *buf, enum force_switch_mode mode)
  * commit count reaches back the reserve offset (module subbuffer size). It is
  * useful for crash dump.
  */
-#ifdef CONFIG_LTT_VMCORE
+#ifdef LTT_VMCORE
 static __inline__
 void ltt_write_commit_counter(struct ltt_chanbuf *buf, struct ltt_chan *chan,
                              long idx, long buf_offset, long commit_count,
index 305b3eb89e20231dca6e9e6d50844823e350bb33..1d5a5dfbc3961ac547ac9028118c67c291898b8d 100644 (file)
@@ -902,7 +902,7 @@ void ltt_vtrace(const struct marker *mdata, void *probe_data, void *call_data,
                        continue;
                if (unlikely(!ltt_run_filter(trace, eID)))
                        continue;
-#ifdef CONFIG_LTT_DEBUG_EVENT_SIZE
+#ifdef LTT_DEBUG_EVENT_SIZE
                rflags = LTT_RFLAG_ID_SIZE;
 #else
                if (unlikely(eID >= LTT_FREE_EVENTS))
index cb92aeedfa47960638e6b19777ace65bb1b87708..7d06490c6ccf5c886131abf9d1d44b14ba4f2324 100644 (file)
@@ -58,7 +58,7 @@ void _ltt_specialized_trace(const struct marker *mdata, void *probe_data,
                        continue;
                if (unlikely(!ltt_run_filter(trace, eID)))
                        continue;
-#ifdef CONFIG_LTT_DEBUG_EVENT_SIZE
+#ifdef LTT_DEBUG_EVENT_SIZE
                rflags = LTT_RFLAG_ID_SIZE;
 #else
                if (unlikely(eID >= LTT_FREE_EVENTS))
This page took 0.030135 seconds and 4 git commands to generate.