fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / tests / regression / tools / notification / test_notification_kernel_userspace_probe
CommitLineData
45294d8a
FD
1#!/bin/bash
2#
3# Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
4#
5# SPDX-License-Identifier: LGPL-2.1-only
6
7CURDIR=$(dirname "$0")/
8TESTDIR=$CURDIR/../../../
9
8d5a3312 10TESTAPP_STATE_PATH=$(mktemp -u -t "tmp.test_notif_kernel_uprobe_application_state.XXXXXXXXXX")
45294d8a
FD
11
12NUM_TESTS=13
13
14# shellcheck source=../../../utils/utils.sh
15source "$TESTDIR/utils/utils.sh"
16# shellcheck source=./util_event_generator.sh
17source "$CURDIR/util_event_generator.sh"
18
19function test_kernel_userspace_probe_notification
20{
21 kernel_event_generator_run_once_per_transition userspace_probe_testapp "$TESTAPP_STATE_PATH" 10 &
22 APP_PID=$!
23
24 "$CURDIR/notification" 6 LTTNG_DOMAIN_KERNEL \
25 $APP_PID "$TESTAPP_STATE_PATH" \
26 "$USERSPACE_PROBE_ELF_TESTAPP_BIN" "test_function"
27
28 kill -SIGUSR2 $APP_PID
29 wait $APP_PID 2> /dev/null
30}
31
3a174400
XC
32check_skip_kernel_test &&
33{
34 plan_skip_all "Skipping all tests."
35 exit 0
36}
37
38validate_lttng_modules_present
45294d8a 39
3a174400 40start_lttng_sessiond_notap
45294d8a 41
3a174400 42test_kernel_userspace_probe_notification
45294d8a 43
3a174400 44stop_lttng_sessiond_notap
45294d8a 45
33e55711 46rm -f "$TESTAPP_STATE_PATH"
This page took 0.044859 seconds and 4 git commands to generate.