1/* 2 * Copyright 2018 The Fuchsia Authors. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7/* 8 * This is an input linker script used in linking libdriver.so. 9 * The linker is pulling in our symbols from an archive, thus they won't get 10 * pulled in unless they are referenced. 11 * This file injects synthetic references to keep the symbols alive. 12 * 13 * TODO(ZX-2884): Some of these might go away. And some symbols that aren't 14 * here may still be exported due to being referenced somewhere (these need 15 * to either be removed, renamed to something internal, or be added here). 16 */ 17 18/* Context acquire/release. */ 19EXTERN(trace_acquire_context) 20EXTERN(trace_acquire_context_for_category) 21EXTERN(trace_acquire_context_for_category_cached) 22EXTERN(trace_release_context) 23 24/* Basic events. */ 25EXTERN(trace_context_write_async_begin_event_record) 26EXTERN(trace_context_write_async_end_event_record) 27EXTERN(trace_context_write_async_instant_event_record) 28EXTERN(trace_context_write_counter_event_record) 29EXTERN(trace_context_write_duration_begin_event_record) 30EXTERN(trace_context_write_duration_end_event_record) 31EXTERN(trace_context_write_duration_event_record) 32EXTERN(trace_context_write_flow_begin_event_record) 33EXTERN(trace_context_write_flow_end_event_record) 34EXTERN(trace_context_write_flow_step_event_record) 35EXTERN(trace_context_write_instant_event_record) 36 37/* Misc. */ 38EXTERN(trace_generate_nonce) 39EXTERN(trace_state) 40EXTERN(trace_is_category_enabled) 41EXTERN(trace_context_is_category_enabled) 42EXTERN(trace_context_begin_write_blob_record) 43EXTERN(trace_context_write_blob_record) 44EXTERN(trace_context_write_kernel_object_record_for_handle) 45EXTERN(trace_context_register_current_thread) 46EXTERN(trace_context_register_string_literal) 47EXTERN(trace_context_register_vthread) 48EXTERN(trace_engine_flush_category_cache) 49 50/* The observer API. */ 51EXTERN(trace_register_observer) 52EXTERN(trace_unregister_observer) 53EXTERN(trace_notify_observer_updated) 54