summaryrefslogtreecommitdiff
path: root/include/stack_trace.h
blob: 90d20519b9abff101eb0bc5bb2771d42c8daea69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright 2014 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Trace dump module */

#ifndef __CROS_EC_STACK_TRACE_H
#define __CROS_EC_STACK_TRACE_H

#ifdef EMU_BUILD
/*
 * Register trace dump handler for emulator. Trace dump is printed to stderr
 * when SIGUSR2 is received.
 */
void task_register_tracedump(void);

/* Dump current stack trace */
void task_dump_trace(void);
#else
static inline void task_register_tracedump(void)
{
}
static inline void task_dump_trace(void)
{
}
#endif

#endif /* __CROS_EC_STACK_TRACE_H */