Cleanup: implement dedicated file operations for events and enablers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Apr 2021 19:02:10 +0000 (15:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Apr 2021 20:38:35 +0000 (16:38 -0400)
In order to simplify the code in preparation for refactoring of the
event structures, remove the "event type" field and implement specific
file operations for events and enablers.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I508bdb46fa3747112e7cfef4a62278fb566f842a

include/lttng/events.h
src/lttng-abi.c
src/lttng-events.c

index 12d6f763511d23b867e878b46b7505109bf4f9bd..a681e04c1a985c6a0ce41fe1ae9c89ac9f304b20 100644 (file)
@@ -378,11 +378,6 @@ struct lttng_kernel_probe_desc {
 
 struct lttng_krp;                              /* Kretprobe handling */
 
-enum lttng_event_type {
-       LTTNG_TYPE_EVENT = 0,
-       LTTNG_TYPE_ENABLER = 1,
-};
-
 enum lttng_bytecode_node_type {
        LTTNG_BYTECODE_NODE_TYPE_FILTER,
        LTTNG_BYTECODE_NODE_TYPE_CAPTURE,
@@ -471,7 +466,6 @@ enum lttng_syscall_abi {
  * kept small.
  */
 struct lttng_event {
-       enum lttng_event_type evtype;   /* First field. */
        unsigned int id;
        struct lttng_channel *chan;
        int enabled;
@@ -510,7 +504,6 @@ struct lttng_kernel_notifier_ctx {
 
 // FIXME: Really similar to lttng_event above. Could those be merged ?
 struct lttng_event_notifier {
-       enum lttng_event_type evtype;   /* First field. */
        uint64_t user_token;
        uint64_t error_counter_index;
        int enabled;
@@ -559,8 +552,6 @@ enum lttng_enabler_format_type {
  * backward reference.
  */
 struct lttng_enabler {
-       enum lttng_event_type evtype;   /* First field. */
-
        enum lttng_enabler_format_type format_type;
 
        /* head list of struct lttng_bytecode_node */
index 4e0003be6f8f0aabb6042ec084102d459288b163..9f06295ffa6981d9de6bf4182f8d57be74c825f9 100644 (file)
@@ -65,7 +65,8 @@ static const struct file_operations lttng_session_fops;
 static const struct file_operations lttng_event_notifier_group_fops;
 static const struct file_operations lttng_channel_fops;
 static const struct file_operations lttng_metadata_fops;
-static const struct file_operations lttng_event_fops;
+static const struct file_operations lttng_event_recorder_event_fops;
+static const struct file_operations lttng_event_recorder_enabler_fops;
 static struct file_operations lttng_stream_ring_buffer_file_operations;
 
 static int put_u64(uint64_t val, unsigned long arg);
@@ -1775,6 +1776,7 @@ static
 int lttng_abi_create_event(struct file *channel_file,
                           struct lttng_kernel_abi_event *event_param)
 {
+       const struct file_operations *fops;
        struct lttng_channel *channel = channel_file->private_data;
        int event_fd, ret;
        struct file *event_file;
@@ -1795,14 +1797,31 @@ int lttng_abi_create_event(struct file *channel_file,
        default:
                break;
        }
+
+       switch (event_param->instrumentation) {
+       case LTTNG_KERNEL_ABI_TRACEPOINT:               /* Fall-through */
+       case LTTNG_KERNEL_ABI_SYSCALL:
+               fops = &lttng_event_recorder_enabler_fops;
+               break;
+       case LTTNG_KERNEL_ABI_KPROBE:                   /* Fall-through */
+       case LTTNG_KERNEL_ABI_KRETPROBE:                /* Fall-through */
+       case LTTNG_KERNEL_ABI_UPROBE:
+               fops = &lttng_event_recorder_event_fops;
+               break;
+
+       case LTTNG_KERNEL_ABI_FUNCTION:                 /* Fall-through */
+       case LTTNG_KERNEL_ABI_NOOP:                     /* Fall-through */
+       default:
+               return -EINVAL;
+       }
+
        event_fd = lttng_get_unused_fd();
        if (event_fd < 0) {
                ret = event_fd;
                goto fd_error;
        }
        event_file = anon_inode_getfile("[lttng_event]",
-                                       &lttng_event_fops,
-                                       NULL, O_RDWR);
+                                       fops, NULL, O_RDWR);
        if (IS_ERR(event_file)) {
                ret = PTR_ERR(event_file);
                goto file_error;
@@ -1837,7 +1856,7 @@ int lttng_abi_create_event(struct file *channel_file,
                break;
        }
 
-       case LTTNG_KERNEL_ABI_KPROBE:           /* Fall-through */
+       case LTTNG_KERNEL_ABI_KPROBE:                   /* Fall-through */
        case LTTNG_KERNEL_ABI_KRETPROBE:                /* Fall-through */
        case LTTNG_KERNEL_ABI_UPROBE:
        {
@@ -1859,7 +1878,7 @@ int lttng_abi_create_event(struct file *channel_file,
                break;
        }
 
-       case LTTNG_KERNEL_ABI_FUNCTION:         /* Fall-through */
+       case LTTNG_KERNEL_ABI_FUNCTION:                 /* Fall-through */
        case LTTNG_KERNEL_ABI_NOOP:                     /* Fall-through */
        default:
                ret = -EINVAL;
@@ -1880,116 +1899,87 @@ fd_error:
 }
 
 static
-long lttng_event_notifier_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
+long lttng_event_notifier_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-       struct lttng_event_notifier *event_notifier;
-       struct lttng_event_notifier_enabler *event_notifier_enabler;
-       enum lttng_event_type *evtype = file->private_data;
+       struct lttng_event_notifier *event_notifier = file->private_data;
 
        switch (cmd) {
        case LTTNG_KERNEL_ABI_ENABLE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event_notifier = file->private_data;
-                       return lttng_event_notifier_enable(event_notifier);
-               case LTTNG_TYPE_ENABLER:
-                       event_notifier_enabler = file->private_data;
-                       return lttng_event_notifier_enabler_enable(event_notifier_enabler);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_notifier_enable(event_notifier);
        case LTTNG_KERNEL_ABI_DISABLE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event_notifier = file->private_data;
-                       return lttng_event_notifier_disable(event_notifier);
-               case LTTNG_TYPE_ENABLER:
-                       event_notifier_enabler = file->private_data;
-                       return lttng_event_notifier_enabler_disable(event_notifier_enabler);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_notifier_disable(event_notifier);
        case LTTNG_KERNEL_ABI_FILTER:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       return -EINVAL;
-               case LTTNG_TYPE_ENABLER:
-                       event_notifier_enabler = file->private_data;
-                       return lttng_event_notifier_enabler_attach_filter_bytecode(
-                                       event_notifier_enabler,
-                               (struct lttng_kernel_abi_filter_bytecode __user *) arg);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
-
+               return -EINVAL;
        case LTTNG_KERNEL_ABI_CAPTURE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       return -EINVAL;
-               case LTTNG_TYPE_ENABLER:
-                       event_notifier_enabler = file->private_data;
-                       return lttng_event_notifier_enabler_attach_capture_bytecode(
-                               event_notifier_enabler,
-                               (struct lttng_kernel_abi_capture_bytecode __user *) arg);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return -EINVAL;
        case LTTNG_KERNEL_ABI_ADD_CALLSITE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event_notifier = file->private_data;
-                       return lttng_event_notifier_add_callsite(event_notifier,
-                               (struct lttng_kernel_abi_event_callsite __user *) arg);
-               case LTTNG_TYPE_ENABLER:
-                       return -EINVAL;
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_notifier_add_callsite(event_notifier,
+                       (struct lttng_kernel_abi_event_callsite __user *) arg);
        default:
                return -ENOIOCTLCMD;
        }
 }
 
 static
-int lttng_event_notifier_release(struct inode *inode, struct file *file)
+long lttng_event_notifier_enabler_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-       struct lttng_event_notifier *event_notifier;
-       struct lttng_event_notifier_enabler *event_notifier_enabler;
-       enum lttng_event_type *evtype = file->private_data;
-
-       if (!evtype)
-               return 0;
+       struct lttng_event_notifier_enabler *event_notifier_enabler = file->private_data;
 
-       switch (*evtype) {
-       case LTTNG_TYPE_EVENT:
-               event_notifier = file->private_data;
-               if (event_notifier)
-                       fput(event_notifier->group->file);
-               break;
-       case LTTNG_TYPE_ENABLER:
-               event_notifier_enabler = file->private_data;
-               if (event_notifier_enabler)
-                       fput(event_notifier_enabler->group->file);
-               break;
+       switch (cmd) {
+       case LTTNG_KERNEL_ABI_ENABLE:
+               return lttng_event_notifier_enabler_enable(event_notifier_enabler);
+       case LTTNG_KERNEL_ABI_DISABLE:
+               return lttng_event_notifier_enabler_disable(event_notifier_enabler);
+       case LTTNG_KERNEL_ABI_FILTER:
+               return lttng_event_notifier_enabler_attach_filter_bytecode(
+                               event_notifier_enabler,
+                       (struct lttng_kernel_abi_filter_bytecode __user *) arg);
+       case LTTNG_KERNEL_ABI_CAPTURE:
+               return lttng_event_notifier_enabler_attach_capture_bytecode(
+                       event_notifier_enabler,
+                       (struct lttng_kernel_abi_capture_bytecode __user *) arg);
+       case LTTNG_KERNEL_ABI_ADD_CALLSITE:
+               return -EINVAL;
        default:
-               WARN_ON_ONCE(1);
-               break;
+               return -ENOIOCTLCMD;
        }
+}
 
+static
+int lttng_event_notifier_event_release(struct inode *inode, struct file *file)
+{
+       struct lttng_event_notifier *event_notifier = file->private_data;
+
+       if (event_notifier)
+               fput(event_notifier->group->file);
        return 0;
 }
 
-static const struct file_operations lttng_event_notifier_fops = {
+static
+int lttng_event_notifier_enabler_release(struct inode *inode, struct file *file)
+{
+       struct lttng_event_notifier_enabler *event_notifier_enabler = file->private_data;
+
+       if (event_notifier_enabler)
+               fput(event_notifier_enabler->group->file);
+       return 0;
+}
+
+static const struct file_operations lttng_event_notifier_event_fops = {
+       .owner = THIS_MODULE,
+       .release = lttng_event_notifier_event_release,
+       .unlocked_ioctl = lttng_event_notifier_event_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl = lttng_event_notifier_event_ioctl,
+#endif
+};
+
+static const struct file_operations lttng_event_notifier_enabler_fops = {
        .owner = THIS_MODULE,
-       .release = lttng_event_notifier_release,
-       .unlocked_ioctl = lttng_event_notifier_ioctl,
+       .release = lttng_event_notifier_enabler_release,
+       .unlocked_ioctl = lttng_event_notifier_enabler_ioctl,
 #ifdef CONFIG_COMPAT
-       .compat_ioctl = lttng_event_notifier_ioctl,
+       .compat_ioctl = lttng_event_notifier_enabler_ioctl,
 #endif
 };
 
@@ -1999,6 +1989,7 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
 {
        struct lttng_event_notifier_group *event_notifier_group =
                        event_notifier_group_file->private_data;
+       const struct file_operations *fops;
        int event_notifier_fd, ret;
        struct file *event_notifier_file;
        void *priv;
@@ -2021,6 +2012,24 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
                goto inval_instr;
        }
 
+       switch (event_notifier_param->event.instrumentation) {
+       case LTTNG_KERNEL_ABI_TRACEPOINT:               /* Fall-through */
+       case LTTNG_KERNEL_ABI_SYSCALL:
+               fops = &lttng_event_notifier_enabler_fops;
+               break;
+       case LTTNG_KERNEL_ABI_KPROBE:                   /* Fall-through */
+       case LTTNG_KERNEL_ABI_KRETPROBE:                /* Fall-through */
+       case LTTNG_KERNEL_ABI_UPROBE:
+               fops = &lttng_event_notifier_event_fops;
+               break;
+
+       case LTTNG_KERNEL_ABI_FUNCTION:                 /* Fall-through */
+       case LTTNG_KERNEL_ABI_NOOP:                     /* Fall-through */
+       default:
+               ret = -EINVAL;
+               goto inval_instr;
+       }
+
        event_notifier_param->event.name[LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1] = '\0';
 
        event_notifier_fd = lttng_get_unused_fd();
@@ -2030,8 +2039,7 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
        }
 
        event_notifier_file = anon_inode_getfile("[lttng_event_notifier]",
-                                       &lttng_event_notifier_fops,
-                                       NULL, O_RDWR);
+                                       fops, NULL, O_RDWR);
        if (IS_ERR(event_notifier_file)) {
                ret = PTR_ERR(event_notifier_file);
                goto file_error;
@@ -2072,7 +2080,7 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
                break;
        }
 
-       case LTTNG_KERNEL_ABI_KPROBE:           /* Fall-through */
+       case LTTNG_KERNEL_ABI_KPROBE:                   /* Fall-through */
        case LTTNG_KERNEL_ABI_KRETPROBE:                /* Fall-through */
        case LTTNG_KERNEL_ABI_UPROBE:
        {
@@ -2097,7 +2105,7 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
                break;
        }
 
-       case LTTNG_KERNEL_ABI_FUNCTION:         /* Fall-through */
+       case LTTNG_KERNEL_ABI_FUNCTION:                 /* Fall-through */
        case LTTNG_KERNEL_ABI_NOOP:                     /* Fall-through */
        default:
                ret = -EINVAL;
@@ -2558,7 +2566,7 @@ static const struct file_operations lttng_metadata_fops = {
 };
 
 /**
- *     lttng_event_ioctl - lttng syscall through ioctl
+ *     lttng_event_recorder_event_ioctl - lttng syscall through ioctl
  *
  *     @file: the file
  *     @cmd: the command
@@ -2573,11 +2581,9 @@ static const struct file_operations lttng_metadata_fops = {
  *             Disable recording for this event (strong disable)
  */
 static
-long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
+long lttng_event_recorder_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-       struct lttng_event *event;
-       struct lttng_event_enabler *event_enabler;
-       enum lttng_event_type *evtype = file->private_data;
+       struct lttng_event *event = file->private_data;
 
        switch (cmd) {
        case LTTNG_KERNEL_ABI_OLD_CONTEXT:
@@ -2592,98 +2598,103 @@ long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        }
        case LTTNG_KERNEL_ABI_OLD_ENABLE:
        case LTTNG_KERNEL_ABI_ENABLE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event = file->private_data;
-                       return lttng_event_enable(event);
-               case LTTNG_TYPE_ENABLER:
-                       event_enabler = file->private_data;
-                       return lttng_event_enabler_enable(event_enabler);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_enable(event);
        case LTTNG_KERNEL_ABI_OLD_DISABLE:
        case LTTNG_KERNEL_ABI_DISABLE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event = file->private_data;
-                       return lttng_event_disable(event);
-               case LTTNG_TYPE_ENABLER:
-                       event_enabler = file->private_data;
-                       return lttng_event_enabler_disable(event_enabler);
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_disable(event);
        case LTTNG_KERNEL_ABI_FILTER:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       return -EINVAL;
-               case LTTNG_TYPE_ENABLER:
-               {
-                       event_enabler = file->private_data;
-                       return lttng_event_enabler_attach_filter_bytecode(
-                               event_enabler,
-                               (struct lttng_kernel_abi_filter_bytecode __user *) arg);
-               }
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return -EINVAL;
        case LTTNG_KERNEL_ABI_ADD_CALLSITE:
-               switch (*evtype) {
-               case LTTNG_TYPE_EVENT:
-                       event = file->private_data;
-                       return lttng_event_add_callsite(event,
-                               (struct lttng_kernel_abi_event_callsite __user *) arg);
-               case LTTNG_TYPE_ENABLER:
-                       return -EINVAL;
-               default:
-                       WARN_ON_ONCE(1);
-                       return -ENOSYS;
-               }
+               return lttng_event_add_callsite(event,
+                       (struct lttng_kernel_abi_event_callsite __user *) arg);
        default:
                return -ENOIOCTLCMD;
        }
 }
 
+/**
+ *     lttng_event_recorder_enabler_ioctl - lttng syscall through ioctl
+ *
+ *     @file: the file
+ *     @cmd: the command
+ *     @arg: command arg
+ *
+ *     This ioctl implements lttng commands:
+ *     LTTNG_KERNEL_ABI_CONTEXT
+ *             Prepend a context field to each record of this event
+ *     LTTNG_KERNEL_ABI_ENABLE
+ *             Enable recording for this event (weak enable)
+ *     LTTNG_KERNEL_ABI_DISABLE
+ *             Disable recording for this event (strong disable)
+ */
 static
-int lttng_event_release(struct inode *inode, struct file *file)
+long lttng_event_recorder_enabler_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
-       struct lttng_event *event;
-       struct lttng_event_enabler *event_enabler;
-       enum lttng_event_type *evtype = file->private_data;
-
-       if (!evtype)
-               return 0;
+       struct lttng_event_enabler *event_enabler = file->private_data;
 
-       switch (*evtype) {
-       case LTTNG_TYPE_EVENT:
-               event = file->private_data;
-               if (event)
-                       fput(event->chan->file);
-               break;
-       case LTTNG_TYPE_ENABLER:
-               event_enabler = file->private_data;
-               if (event_enabler)
-                       fput(event_enabler->chan->file);
-               break;
+       switch (cmd) {
+       case LTTNG_KERNEL_ABI_OLD_CONTEXT:
+       {
+               /* Not implemented */
+               return -ENOSYS;
+       }
+       case LTTNG_KERNEL_ABI_CONTEXT:
+       {
+               /* Not implemented */
+               return -ENOSYS;
+       }
+       case LTTNG_KERNEL_ABI_OLD_ENABLE:
+       case LTTNG_KERNEL_ABI_ENABLE:
+               return lttng_event_enabler_enable(event_enabler);
+       case LTTNG_KERNEL_ABI_OLD_DISABLE:
+       case LTTNG_KERNEL_ABI_DISABLE:
+               return lttng_event_enabler_disable(event_enabler);
+       case LTTNG_KERNEL_ABI_FILTER:
+               return lttng_event_enabler_attach_filter_bytecode(
+                       event_enabler,
+                       (struct lttng_kernel_abi_filter_bytecode __user *) arg);
+       case LTTNG_KERNEL_ABI_ADD_CALLSITE:
+               return -EINVAL;
        default:
-               WARN_ON_ONCE(1);
-               break;
+               return -ENOIOCTLCMD;
        }
+}
+
+static
+int lttng_event_recorder_event_release(struct inode *inode, struct file *file)
+{
+       struct lttng_event *event = file->private_data;
+
+       if (event)
+               fput(event->chan->file);
+       return 0;
+}
 
+static
+int lttng_event_recorder_enabler_release(struct inode *inode, struct file *file)
+{
+       struct lttng_event_enabler *event_enabler = file->private_data;
+
+       if (event_enabler)
+               fput(event_enabler->chan->file);
        return 0;
 }
 
-/* TODO: filter control ioctl */
-static const struct file_operations lttng_event_fops = {
+static const struct file_operations lttng_event_recorder_event_fops = {
+       .owner = THIS_MODULE,
+       .release = lttng_event_recorder_event_release,
+       .unlocked_ioctl = lttng_event_recorder_event_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl = lttng_event_recorder_event_ioctl,
+#endif
+};
+
+static const struct file_operations lttng_event_recorder_enabler_fops = {
        .owner = THIS_MODULE,
-       .release = lttng_event_release,
-       .unlocked_ioctl = lttng_event_ioctl,
+       .release = lttng_event_recorder_enabler_release,
+       .unlocked_ioctl = lttng_event_recorder_enabler_ioctl,
 #ifdef CONFIG_COMPAT
-       .compat_ioctl = lttng_event_ioctl,
+       .compat_ioctl = lttng_event_recorder_enabler_ioctl,
 #endif
 };
 
index e955b5257ca78b43f432b0fb078a783b9e152fc0..6676d5f715d873e7490a6422fbc6809d574ebda9 100644 (file)
@@ -900,7 +900,6 @@ struct lttng_event *_lttng_event_create(struct lttng_channel *chan,
        event->filter = filter;
        event->id = chan->free_event_id++;
        event->instrumentation = itype;
-       event->evtype = LTTNG_TYPE_EVENT;
        INIT_LIST_HEAD(&event->filter_bytecode_runtime_head);
        INIT_LIST_HEAD(&event->enablers_ref_head);
 
@@ -1144,7 +1143,6 @@ struct lttng_event_notifier *_lttng_event_notifier_create(
        event_notifier->num_captures = 0;
        event_notifier->filter = filter;
        event_notifier->instrumentation = itype;
-       event_notifier->evtype = LTTNG_TYPE_EVENT;
        event_notifier->send_notification = lttng_event_notifier_notification_send;
        INIT_LIST_HEAD(&event_notifier->filter_bytecode_runtime_head);
        INIT_LIST_HEAD(&event_notifier->capture_bytecode_runtime_head);
@@ -2397,7 +2395,6 @@ struct lttng_event_enabler *lttng_event_enabler_create(
        event_enabler->chan = chan;
        /* ctx left NULL */
        event_enabler->base.enabled = 0;
-       event_enabler->base.evtype = LTTNG_TYPE_ENABLER;
        mutex_lock(&sessions_mutex);
        list_add(&event_enabler->node, &event_enabler->chan->session->enablers_head);
        lttng_session_lazy_sync_event_enablers(event_enabler->chan->session);
@@ -2528,7 +2525,6 @@ struct lttng_event_notifier_enabler *lttng_event_notifier_enabler_create(
 
        memcpy(&event_notifier_enabler->base.event_param, &event_notifier_param->event,
                sizeof(event_notifier_enabler->base.event_param));
-       event_notifier_enabler->base.evtype = LTTNG_TYPE_ENABLER;
 
        event_notifier_enabler->base.enabled = 0;
        event_notifier_enabler->base.user_token = event_notifier_param->event.token;
This page took 0.034686 seconds and 4 git commands to generate.