diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-24 22:55:29 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-24 22:55:29 -0400 |
commit | 236963e7563be3e3f8220dac7bb4af446928e194 (patch) | |
tree | e521ea226db0345bbb3679fffe09d96254b7dc73 /tools/ksyms | |
parent | 214eadc62b5578f76c98a38a28f8b3d80ac4d6ad (diff) |
Clean out for expt
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'tools/ksyms')
-rwxr-xr-x | tools/ksyms | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/ksyms b/tools/ksyms deleted file mode 100755 index 643c3e1..0000000 --- a/tools/ksyms +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -rm -f $1 -printf "#ifndef _KSYMS_H_\n" > $1 -printf "#define _KSYMS_H_\n\n" >> $1 -printf "#include <sys/types.h>\n\nstruct kernel_symbol" >> $1 -printf " {\n\tuint64_t addr;\n\tchar* name;\n};\n\n" >> $1 -printf "const struct kernel_symbol g_ksym_table[] = {\n" >> $1 -nm $2 | grep " [tT] " | awk '{ print " { .addr = 0x"$1", .name = \""$3"\" }," }' | sort >> $1 -printf " { .addr = (size_t)-1, .name = \"\" }\n};\n\n" >> $1 -printf "const int ksym_elem_count = sizeof(g_ksym_table) / sizeof(*g_ksym_table);\n" >> $1 -printf "\n#endif /* !_KSYMS_H_ */\n" >> $1 |