summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-profiler/backtrace.h
blob: 82b55db496f0e326664159d5cc19a2cbdfaf8239 (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
30
31
32
33
34
/*
 * drivers/misc/tegra-profiler/backtrace.h
 *
 * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 */

#ifndef __QUADD_BACKTRACE_H
#define __QUADD_BACKTRACE_H

#include <linux/types.h>

#define QUADD_MAX_STACK_DEPTH		64

struct quadd_callchain {
	int nr;
	u32 callchain[QUADD_MAX_STACK_DEPTH];
};

unsigned int
quadd_get_user_callchain(struct pt_regs *regs,
			 struct quadd_callchain *callchain_data);


#endif  /* __QUADD_BACKTRACE_H */