1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 19 #include <cutils/trace.h> 20 21 // Wrappers for static inline functions 22 // TODO: b/291544011 - Replace with autogenerated wrappers once they are supported. 23 24 void atrace_begin_wrap(uint64_t tag, const char* name); 25 void atrace_end_wrap(uint64_t tag); 26 uint64_t atrace_is_tag_enabled_wrap(uint64_t tag); 27 void atrace_async_begin_wrap(uint64_t tag, const char* name, int32_t cookie); 28 void atrace_async_end_wrap(uint64_t tag, const char* name, int32_t cookie); 29 void atrace_async_for_track_begin_wrap(uint64_t tag, const char* track_name, const char* name, 30 int32_t cookie); 31 void atrace_async_for_track_end_wrap(uint64_t tag, const char* track_name, int32_t cookie); 32 void atrace_instant_wrap(uint64_t tag, const char* name); 33 void atrace_instant_for_track_wrap(uint64_t tag, const char* track_name, const char* name); 34 void atrace_int_wrap(uint64_t tag, const char* name, int32_t value); 35 void atrace_int64_wrap(uint64_t tag, const char* name, int64_t value); 36