CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
34 lines
1.4 KiB
C++
34 lines
1.4 KiB
C++
// RUN: %clangxx_xray -g -std=c++11 %s -o %t
|
|
// RUN: rm -f fdr-logging-1thr-*
|
|
// RUN: env XRAY_OPTIONS=XRAY_OPTIONS="verbosity=1 patch_premain=true \
|
|
// RUN: xray_fdr_log=true \
|
|
// RUN: xray_fdr_log_func_duration_threshold_us=0 \
|
|
// RUN: xray_logfile_base=fdr-logging-1thr-" %run %t 2>&1
|
|
// RUN: ls fdr-logging-1thr-* | head -n1 | tr -d '\n' > %t.xray_input
|
|
// RUN: %llvm_xray convert --output-format=yaml --symbolize --instr_map=%t \
|
|
// RUN: "%{readfile:%t.xray_input}" | FileCheck %s
|
|
// RUN: rm fdr-logging-1thr-*
|
|
|
|
// UNSUPPORTED: target=arm{{.*}}
|
|
|
|
#include "xray/xray_log_interface.h"
|
|
#include <cassert>
|
|
|
|
[[clang::xray_always_instrument]] void __attribute__((noinline)) fn() { }
|
|
|
|
int main(int argc, char *argv[]) {
|
|
auto status = __xray_log_init_mode("xray-fdr", "");
|
|
assert(status == XRayLogInitStatus::XRAY_LOG_INITIALIZED);
|
|
|
|
__xray_patch();
|
|
fn();
|
|
__xray_unpatch();
|
|
assert(__xray_log_finalize() == XRAY_LOG_FINALIZED);
|
|
assert(__xray_log_flushLog() == XRAY_LOG_FLUSHED);
|
|
return 0;
|
|
}
|
|
|
|
// CHECK: records:
|
|
// CHECK-NEXT: - { type: 0, func-id: [[FID1:[0-9]+]], function: {{.*fn.*}}, cpu: {{.*}}, thread: [[THREAD1:[0-9]+]], process: [[PROCESS:[0-9]+]], kind: function-enter, tsc: {{[0-9]+}}, data: '' }
|
|
// CHECK-NEXT: - { type: 0, func-id: [[FID1:[0-9]+]], function: {{.*fn.*}}, cpu: {{.*}}, thread: [[THREAD1:[0-9]+]], process: [[PROCESS:[0-9]+]], kind: function-exit, tsc: {{[0-9]+}}, data: '' }
|