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
79 lines
2.7 KiB
C++
79 lines
2.7 KiB
C++
//===-- memprof_interface_internal.h ---------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file is a part of MemProfiler, a memory profiler.
|
|
//
|
|
// This header declares the MemProfiler runtime interface functions.
|
|
// The runtime library has to define these functions so the instrumented program
|
|
// could call them.
|
|
//
|
|
// See also include/sanitizer/memprof_interface.h
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef MEMPROF_INTERFACE_INTERNAL_H
|
|
#define MEMPROF_INTERFACE_INTERNAL_H
|
|
|
|
#include "sanitizer_common/sanitizer_internal_defs.h"
|
|
|
|
#include "memprof_init_version.h"
|
|
|
|
using __sanitizer::u32;
|
|
using __sanitizer::u64;
|
|
using __sanitizer::uptr;
|
|
|
|
extern "C" {
|
|
// This function should be called at the very beginning of the process,
|
|
// before any instrumented code is executed and before any call to malloc.
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_init();
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_preinit();
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_version_mismatch_check_v1();
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void __memprof_record_access(void const volatile *addr);
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void __memprof_record_access_hist(void const volatile *addr);
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void __memprof_record_access_range(void const volatile *addr, uptr size);
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void __memprof_record_access_range_hist(void const volatile *addr, uptr size);
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_print_accumulated_stats();
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE extern char
|
|
__memprof_default_options_str[1];
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
const char *__memprof_default_options();
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
extern uptr __memprof_shadow_memory_dynamic_address;
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE extern char
|
|
__memprof_profile_filename[1];
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE extern bool
|
|
__memprof_histogram;
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE int __memprof_profile_dump();
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_profile_reset();
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_load(uptr p);
|
|
SANITIZER_INTERFACE_ATTRIBUTE void __memprof_store(uptr p);
|
|
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void *__memprof_memcpy(void *dst, const void *src, uptr size);
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void *__memprof_memset(void *s, int c, uptr n);
|
|
SANITIZER_INTERFACE_ATTRIBUTE
|
|
void *__memprof_memmove(void *dest, const void *src, uptr n);
|
|
} // extern "C"
|
|
|
|
#endif // MEMPROF_INTERFACE_INTERNAL_H
|