3 # Copyright (C) 2013 Christian Babeux <christian.babeux@efficios.com>
5 # SPDX-License-Identifier: GPL-2.0-only
8 SESSION_NAME
="coredump-handler"
10 # Just recording kernel event sched_switch as an example, but we can as
11 # well record user-space events from UST domain.
12 EVENT_NAME
="sched_switch"
14 SNAPSHOT_PATH
="/tmp/lttng/snapshot"
15 SNAPSHOT_URI
="file://${SNAPSHOT_PATH}"
17 echo "Setup ${SESSION_NAME}..."
18 $LTTNG_BIN create
${SESSION_NAME} --snapshot -U ${SNAPSHOT_PATH}
19 $LTTNG_BIN enable-event
${EVENT_NAME} -k -s ${SESSION_NAME}
20 $LTTNG_BIN start
${SESSION_NAME}
31 $LTTNG_BIN stop
${SESSION_NAME}
32 $LTTNG_BIN destroy
${SESSION_NAME}
34 echo "Core dump will be available in /tmp/lttng/core."
35 echo "Snapshot will be available in ${SNAPSHOT_PATH}."
This page took 0.031025 seconds and 5 git commands to generate.