; REQUIRES: opencsd, arm-registered-target ; RUN: yaml2obj %S/Inputs/etm-opencsd.yaml -o %t.bin ; Verify ETM trace decoding using OpenCSD with inlined trace data. ; RUN: printf "\000\000\000\000\000\000\000\000\000\000\000\200\001\000\203\001\232\117\000\000\226\201\232\374\376\372\370\375\375\326\375\375\301" > %t.trace ; Run the generator to produce the output file. ; RUN: llvm-profgen --etm=%t.trace --binary=%t.bin --output=%t.prof --format=text ; RUN: ls %t.prof ; Verify target-triple override works. ; RUN: llvm-profgen --etm=%t.trace --binary=%t.bin --output=%t2.prof --format=text --target-triple=thumbv7m-none-eabi ; RUN: ls %t2.prof ; Verify error handling when no synchronization header (0x80) is found. ; RUN: printf "\000\000\000" > %t.nosync ; RUN: not llvm-profgen --etm=%t.nosync --binary=%t.bin --output=%t3.prof 2>&1 | FileCheck %s --check-prefix=NOSYNC ; NOSYNC: error: No synchronization header (0x80) found in the bitstream.