Commit | Line | Data |
---|---|---|
74c0b9b3 OD |
1 | #!/bin/sh |
2 | # | |
3 | # SPDX-License-Identifier: MIT | |
4 | # | |
5 | # Copyright (c) 2024 Olivier Dion <odion@efficios.com> | |
6 | ||
7 | TRACE_OUTPUT=traces | |
8 | ||
9 | lttng create --output $TRACE_OUTPUT | |
10 | ||
11 | # Enable all HSA, HIP and roctx event types. | |
12 | lttng enable-event --userspace 'hsa:*' | |
13 | lttng enable-event --userspace 'hip:*' | |
14 | lttng enable-event --userspace 'roctx:*' | |
15 | ||
16 | lttng start | |
17 | ||
18 | LD_PRELOAD=$1 $2 | |
19 | ||
20 | lttng destroy | |
21 | ||
22 | babeltrace2 $TRACE_OUTPUT |