Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
symtab.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Meta Platforms
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DEBUG_SYMTAB_H_
8#define ZEPHYR_INCLUDE_DEBUG_SYMTAB_H_
9
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
26struct z_symtab_entry {
27 const uint32_t offset;
28 const char *const name;
29};
30
36 /* Absolute address of the first symbol */
38 /* Number of symbol entries */
40 /* Symbol entries */
41 const struct z_symtab_entry *const entries;
42};
43
49const struct symtab_info *const symtab_get(void);
50
60const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
61
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* ZEPHYR_INCLUDE_DEBUG_SYMTAB_H_ */
const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset)
Find the symbol name with a binary search.
const struct symtab_info *const symtab_get(void)
Get the pointer to the symbol table.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:105
Definition: symtab.h:35
const struct z_symtab_entry *const entries
Definition: symtab.h:41
const uintptr_t first_addr
Definition: symtab.h:37
const uint32_t length
Definition: symtab.h:39