From de1b2145a690d297dd024782a6efa961e3883b6c Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 27 Jun 2016 15:35:16 -0400 Subject: [PATCH] Add enable-events templates Templates for the enable-events command can now be found in $prefix/xml/lttng/templates/event. --- configure.ac | 1 + extras/templates/Makefile.am | 2 +- extras/templates/event/Makefile.am | 5 + extras/templates/event/block.lttng | 66 ++++++++++++ extras/templates/event/cpu.lttng | 46 ++++++++ extras/templates/event/interrupt.lttng | 66 ++++++++++++ extras/templates/event/lttng_analyses.lttng | 113 ++++++++++++++++++++ extras/templates/event/memory.lttng | 56 ++++++++++ extras/templates/event/network.lttng | 52 +++++++++ extras/templates/event/sched_latency.lttng | 51 +++++++++ extras/templates/event/syscall.lttng | 46 ++++++++ 11 files changed, 503 insertions(+), 1 deletion(-) create mode 100644 extras/templates/event/Makefile.am create mode 100644 extras/templates/event/block.lttng create mode 100644 extras/templates/event/cpu.lttng create mode 100644 extras/templates/event/interrupt.lttng create mode 100644 extras/templates/event/lttng_analyses.lttng create mode 100644 extras/templates/event/memory.lttng create mode 100644 extras/templates/event/network.lttng create mode 100644 extras/templates/event/sched_latency.lttng create mode 100644 extras/templates/event/syscall.lttng diff --git a/configure.ac b/configure.ac index b97159a7b..3effc43b0 100644 --- a/configure.ac +++ b/configure.ac @@ -942,6 +942,7 @@ AC_CONFIG_FILES([ extras/core-handler/Makefile extras/templates/Makefile extras/templates/session/Makefile + extras/templates/event/Makefile src/Makefile src/common/Makefile src/common/kernel-ctl/Makefile diff --git a/extras/templates/Makefile.am b/extras/templates/Makefile.am index 9be175343..bafe71eff 100644 --- a/extras/templates/Makefile.am +++ b/extras/templates/Makefile.am @@ -1 +1 @@ -SUBDIRS=session +SUBDIRS=session event diff --git a/extras/templates/event/Makefile.am b/extras/templates/event/Makefile.am new file mode 100644 index 000000000..25035e223 --- /dev/null +++ b/extras/templates/event/Makefile.am @@ -0,0 +1,5 @@ +templatedir = $(datadir)/xml/lttng/template/event + +dist_template_DATA = block.lttng cpu.lttng memory.lttng network.lttng interrupt.lttng sched_latency.lttng syscall.lttng lttng_analyses.lttng + +EXTRA_DIST = block.lttng cpu.lttng memory.lttng network.lttng interrupt.lttng sched_latency.lttng syscall.lttng lttng_analyses.lttng diff --git a/extras/templates/event/block.lttng b/extras/templates/event/block.lttng new file mode 100644 index 000000000..61a11e40b --- /dev/null +++ b/extras/templates/event/block.lttng @@ -0,0 +1,66 @@ + + + + + + KERNEL + + + + + block_rq_issue + true + TRACEPOINT + + + block_rq_complete + true + TRACEPOINT + + + block_dirty_buffer + true + TRACEPOINT + + + block_bio_remap + true + TRACEPOINT + + + block_bio_backmerge + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/cpu.lttng b/extras/templates/event/cpu.lttng new file mode 100644 index 000000000..f639a2847 --- /dev/null +++ b/extras/templates/event/cpu.lttng @@ -0,0 +1,46 @@ + + + + + + KERNEL + + + + + sched_switch + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/interrupt.lttng b/extras/templates/event/interrupt.lttng new file mode 100644 index 000000000..13a81aa1e --- /dev/null +++ b/extras/templates/event/interrupt.lttng @@ -0,0 +1,66 @@ + + + + + + KERNEL + + + + + irq_handler_exit + true + TRACEPOINT + + + irq_handler_entry + true + TRACEPOINT + + + irq_softirq_raise + true + TRACEPOINT + + + irq_softirq_exit + true + TRACEPOINT + + + irq_softirq_entry + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/lttng_analyses.lttng b/extras/templates/event/lttng_analyses.lttng new file mode 100644 index 000000000..122c342b8 --- /dev/null +++ b/extras/templates/event/lttng_analyses.lttng @@ -0,0 +1,113 @@ + + + + + + KERNEL + GLOBAL + + + + + * + true + SYSCALL + + + sched_wakeup + true + TRACEPOINT + + + sched_waking + true + TRACEPOINT + + + irq_softirq_entry + true + TRACEPOINT + + + irq_softirq_exit + true + TRACEPOINT + + + irq_softirq_raise + true + TRACEPOINT + + + irq_handler_entry + true + TRACEPOINT + + + irq_handler_exit + true + TRACEPOINT + + + net_dev_xmit + true + TRACEPOINT + + + netif_receive_skb + true + TRACEPOINT + + + kmem_mm_page_alloc + true + TRACEPOINT + + + kmem_mm_page_free + true + TRACEPOINT + + + mm_vmscan_wakeup_kswapd + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_switch + true + TRACEPOINT + + + + + + + + + diff --git a/extras/templates/event/memory.lttng b/extras/templates/event/memory.lttng new file mode 100644 index 000000000..7208fdabb --- /dev/null +++ b/extras/templates/event/memory.lttng @@ -0,0 +1,56 @@ + + + + + + KERNEL + + + + + mm_vmscan_wakeup_kswapd + true + TRACEPOINT + + + kmem_mm_page_free + true + TRACEPOINT + + + kmem_mm_page_alloc + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/network.lttng b/extras/templates/event/network.lttng new file mode 100644 index 000000000..d78961279 --- /dev/null +++ b/extras/templates/event/network.lttng @@ -0,0 +1,52 @@ + + + + + + KERNEL + GLOBAL + + + + + netif_receive_skb + true + TRACEPOINT + + + net_dev_xmit + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/sched_latency.lttng b/extras/templates/event/sched_latency.lttng new file mode 100644 index 000000000..6ece456cd --- /dev/null +++ b/extras/templates/event/sched_latency.lttng @@ -0,0 +1,51 @@ + + + + + + KERNEL + + + + + sched_waking + true + TRACEPOINT + + + sched_wakeup + true + TRACEPOINT + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + diff --git a/extras/templates/event/syscall.lttng b/extras/templates/event/syscall.lttng new file mode 100644 index 000000000..72d5653dc --- /dev/null +++ b/extras/templates/event/syscall.lttng @@ -0,0 +1,46 @@ + + + + + + KERNEL + + + + + * + true + SYSCALL + + + sched_process_fork + true + TRACEPOINT + + + sched_process_exec + true + TRACEPOINT + + + lttng_statedump_block_device + true + TRACEPOINT + + + lttng_statedump_process_state + true + TRACEPOINT + + + lttng_statedump_file_descriptor + true + TRACEPOINT + + + + + + + + -- 2.34.1