MOS Source Code
Loading...
Searching...
No Matches
kallsyms.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <mos/types.h>
6
7typedef struct
8{
10 const char *name;
12
13extern const kallsyms_t mos_kallsyms[];
14
15#define mos_caller() (kallsyms_get_symbol_name((ptr_t) __builtin_return_address(0)))
16
18const char *kallsyms_get_symbol_name(ptr_t addr);
const kallsyms_t * kallsyms_get_symbol(ptr_t addr)
Definition kallsyms.c:5
const kallsyms_t mos_kallsyms[]
const char * kallsyms_get_symbol_name(ptr_t addr)
Definition kallsyms.c:22
ptr_t address
Definition kallsyms.h:9
const char * name
Definition kallsyms.h:10
unsigned long ptr_t
Definition types.h:25