Changeset da13982 in mainline for kernel/generic/include
- Timestamp:
- 2023-10-26T15:20:07Z (21 months ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2fbb42f
- Parents:
- d28bdbe
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 14:42:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 15:20:07)
- Location:
- kernel/generic/include
- Files:
-
- 1 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
rd28bdbe rda13982 37 37 38 38 #include <log.h> 39 #include <symtab_lookup.h>40 39 #include <printf/verify.h> 41 40 … … 43 42 44 43 /* An empty printf function to ensure syntactic correctness of disabled debug prints. */ 45 _HELENOS_PRINTF_ATTRIBUTE(1, 2) 44 static inline void dummy_printf(const char *fmt, ...) _HELENOS_PRINTF_ATTRIBUTE(1, 2); 46 45 static inline void dummy_printf(const char *fmt, ...) 47 46 { -
kernel/generic/include/debug/register.h
rd28bdbe rda13982 1 1 /* 2 * Copyright (c) 20 05 Ondrej Palkovsky2 * Copyright (c) 2023 Jiří Zárevúcky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup kernel_generic 30 * @{ 31 */ 32 /** @file 33 */ 29 #ifndef DEBUG_REGISTER_H_ 30 #define DEBUG_REGISTER_H_ 34 31 35 #ifndef KERN_SYMTAB_LOOKUP_H_ 36 #define KERN_SYMTAB_LOOKUP_H_ 32 /** Accepts data of an ELF file containing debug sections. */ 33 void register_debug_data(const void *data, size_t data_size); 37 34 38 #include <typedefs.h> 39 40 #define MAX_SYMBOL_NAME 64 41 42 struct symtab_entry { 43 uint64_t address_le; 44 char symbol_name[MAX_SYMBOL_NAME]; 45 }; 46 47 extern errno_t symtab_name_lookup(uintptr_t, const char **, uintptr_t *); 48 extern const char *symtab_fmt_name_lookup(uintptr_t); 49 extern errno_t symtab_addr_lookup(const char *, uintptr_t *); 50 51 #ifdef CONFIG_SYMTAB 52 53 /** Symtable linked together by build process 54 * 55 */ 56 extern struct symtab_entry symbol_table[]; 57 58 #endif /* CONFIG_SYMTAB */ 59 60 #endif 61 62 /** @} 63 */ 35 #endif /* DEBUG_REGISTER_H_ */ -
kernel/generic/include/symtab.h
rd28bdbe rda13982 36 36 #define KERN_SYMTAB_H_ 37 37 38 #include <symtab_lookup.h> 39 #include <console/chardev.h> 38 #include <typedefs.h> 40 39 41 40 extern void symtab_print_search(const char *); 42 41 extern const char *symtab_hints_enum(const char *, const char **, void **); 42 extern const char *symtab_fmt_name_lookup(uintptr_t); 43 extern errno_t symtab_addr_lookup(const char *, uintptr_t *); 44 extern const char *symtab_name_lookup(uintptr_t, uintptr_t *); 43 45 44 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.