1*9880d681SAndroid Build Coastguard WorkerREGENERATE: You need a checkout of clang with compiler-rt to generate the 2*9880d681SAndroid Build Coastguard WorkerREGENERATE: binary file here. These shell commands can be used to regenerate 3*9880d681SAndroid Build Coastguard WorkerREGENERATE: it. 4*9880d681SAndroid Build Coastguard WorkerREGENERATE: 5*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ SRC=path/to/llvm 6*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ CFE=$SRC/tools/clang 7*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ TESTDIR=$SRC/test/tools/llvm-profdata 8*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ CFE_TESTDIR=$CFE/test/Profile 9*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/c-general.c 10*9880d681SAndroid Build Coastguard WorkerREGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profraw ./a.out 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard WorkerRUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s 13*9880d681SAndroid Build Coastguard WorkerRUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard WorkerSWITCHES-LABEL: Counters: 16*9880d681SAndroid Build Coastguard WorkerSWITCHES-NEXT: switches: 17*9880d681SAndroid Build Coastguard WorkerSWITCHES-NEXT: Hash: 0x2618e4f23f2e8daa 18*9880d681SAndroid Build Coastguard WorkerSWITCHES-NEXT: Counters: 19 19*9880d681SAndroid Build Coastguard WorkerSWITCHES-NEXT: Function count: 1 20*9880d681SAndroid Build Coastguard WorkerSWITCHES-LABEL: Functions shown: 1 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Total functions: 12 23*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: Maximum function count: 1 24*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: Maximum internal block count: 100 25