// Copyright 2022 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34// Empty macros for when the tracing feature isn't used.5#[macro_export]6macro_rules! trace_event {7($category:ident, $name:expr $(,$t:expr)*) => {{8// Real backends will return an Option type.9None as Option<bool>10}};11}1213// This is NOT part of the public cros_tracing interface. Some backends14// need to expose it since macros calling macros requires the inner macros15// to be public.16#[macro_export]17macro_rules! trace_event_begin {18($category:ident, $name:literal $(,$t:expr)*) => {};19}2021// Similarly, this is not public.22#[macro_export]23macro_rules! trace_event_end {24($category:ident $(,$t:expr)*) => {};25}2627#[macro_export]28macro_rules! trace_simple_print {29($($t:tt)+) => {};30}3132#[macro_export]33macro_rules! push_descriptors {34($fd_vec:expr) => {};35}3637pub fn init() {}383940