1// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef THIRD_PARTY_TCMALLOC_CHROMIUM_SRC_LINUX_SHADOW_STACKS_H__
6#define THIRD_PARTY_TCMALLOC_CHROMIUM_SRC_LINUX_SHADOW_STACKS_H__
7
8#define NO_INSTRUMENT __attribute__((no_instrument_function))
9
10extern "C" {
11void init()  NO_INSTRUMENT;
12void __cyg_profile_func_enter(void *this_fn, void *call_site)  NO_INSTRUMENT;
13void __cyg_profile_func_exit(void *this_fn, void *call_site)  NO_INSTRUMENT;
14void *get_shadow_ip_stack(int *index /*OUT*/) NO_INSTRUMENT;
15void *get_shadow_sp_stack(int *index /*OUT*/) NO_INSTRUMENT;
16}
17
18#undef NO_INSTRUMENT
19
20#endif  // THIRD_PARTY_TCMALLOC_CHROMIUM_SRC_LINUX_SHADOW_STACKS_H__
21