drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / tools / include / linux / kallsyms.h
blob5a37ccbec54fbc603108ad9346c0351c8a3c56a8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LIBLOCKDEP_LINUX_KALLSYMS_H_
3 #define _LIBLOCKDEP_LINUX_KALLSYMS_H_
5 #include <linux/kernel.h>
6 #include <stdio.h>
7 #include <unistd.h>
9 #define KSYM_NAME_LEN 512
11 struct module;
13 static inline const char *kallsyms_lookup(unsigned long addr,
14 unsigned long *symbolsize,
15 unsigned long *offset,
16 char **modname, char *namebuf)
18 return NULL;
21 #include <execinfo.h>
22 #include <stdlib.h>
23 static inline void print_ip_sym(const char *loglvl, unsigned long ip)
25 char **name;
27 name = backtrace_symbols((void **)&ip, 1);
29 dprintf(STDOUT_FILENO, "%s\n", *name);
31 free(name);
34 #endif