xref: /linux/tools/testing/selftests/ftrace/test.d/00basic/basic3.tc (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# description: Basic trace clock test
4# flags: instance
5test -f trace_clock
6for c in `cat trace_clock | tr  -d \[\]`; do
7  echo $c > trace_clock
8  grep '\['$c'\]' trace_clock
9done
10echo local > trace_clock
11