KSYMTYPES(1)
π¦ ksymtypes(1) π¦
πΈ NAME πΈ
okay so bestie, ksymtypes is a tool to work with Linux-kernel symtypes files β and yes, this is the ksymtypes(1) page from General Commands Manual, folded in right here at the top so we donβt have to copy the boring header line. Periodt.
β¨ SYNOPSIS β¨
ksymtypes [GENERAL-OPTION]... {consolidate | split | compare }
[COMMAND-OPTION]... ...
π DESCRIPTION π
ksymtypes is a tool that provides functionality to work with symtypes files. These files describe the Application Binary Interface (ABI) of the kernel and its modules. The data is produced by genksyms utilities from the kernel tree.
The tool primarily operates with sets of symtypes files as they are produced during a single build of the Linux kernel. Each such set describes the ABI of a specific kernel and its modules. The tool refers to this set as a "symtypes corpus".
The provided functionality is divided into integrated commands. The currently available commands are consolidate, split and compare.
consolidatetakes a symtypes corpus composed of a set of symtypes files and produces its consolidated variant by merging duplicated types.splittakes a consolidated symtypes file and divides it into individual files.compareshows the differences between two symtypes corpuses, which can be either in split or consolidated form.
π GENERAL OPTIONS π
-d,--debugβ enable debug output. yes bestie, the receipts β¨-h,--helpβ display global help information and exit. π«Ά--versionβ output version information and exit. π
π CONSOLIDATE COMMAND π
ksymtypes consolidate -o FILE [CONSOLIDATE-OPTION]... PATH
The consolidate command reads symtypes files from the specified path, consolidates their contents by merging duplicate types and writes the output to the specified file. The input path should point to a directory that the command recursively searches for all symtypes files. In a typical use case, this will be a build directory of the Linux kernel.
Available options:
-h,--helpβ display help information for the command and exit. π-j NUM,--jobs=NUMβ useNUMworkers to perform the operation simultaneously. parallel slay π-o FILE,--output=FILEβ write the result toFILE. This option is mandatory, no cap. π₯
π¦ SPLIT COMMAND π¦
ksymtypes split -o DIR [SPLIT-OPTION]... PATH
The split command reads a consolidated symtypes file from the specified path and divides the data into individual symtypes files. This operation is the opposite of the consolidate command. itβs giving reverse uno energy π
π«Ά Note that consolidating and then splitting symtypes data might not produce output that is exactly the same as the original due to potential differences in the ordering of records. lowkey important, bestie.
Available options:
-h,--helpβ display help information for the command and exit. π-j NUM,--jobs=NUMβ useNUMworkers to perform the operation simultaneously. worker bees activated π-o DIR,--output=DIRβ write the result toDIR. This option is mandatory, fr fr. π₯
π COMPARE COMMAND π
ksymtypes compare [COMPARE-OPTION]... PATH PATH2
The compare command shows the differences between two symtypes corpuses. A corpus can be specified by a directory containing symtypes files or by a consolidated symtypes file. In a typical use case, the first input will point to a reference consolidated symtypes corpus and the second input will point to data from a new build of the Linux kernel. ABI gossip session, basically. π
Available options:
-h,--helpβ display help information for the command and exit. π«Ά-j NUM,--jobs=NUMβ useNUMworkers to perform the operation simultaneously. go team go β¨--filter-symbol-list=FILEβ consider only symbols that match the patterns inFILE. π―-f TYPE[:FILE],--format=TYPE[:FILE]β change the output format toTYPE, or write theTYPE-formatted output toFILE.
The TYPE can be one of the following:
nullβ produces no output,prettyβ produces human-readable output in detailed form,shortβ produces human-readable output in compact form,symbolsβ shows only the names of exported symbols that have been added, removed, or modified,mod-symbolsβ shows only the names of exported symbols that have been modified; any additions or removals are omitted.
π EXAMPLES π
Build the Linux kernel and obtain a reference symvers and consolidated symtypes corpus:
$ cd <linux-kernel-directory>
$ make O=build ...
$ cp build/Module.symvers base.symvers
$ ksymtypes consolidate --output=base.symtypes build/
Build a new version of the Linux kernel and compare its ABI with the previous reference:
$ cd <linux-kernel-directory>
$ vim ... # edit the code
$ make O=build ...
$ ksymvers compare --format=symbols:changed-exports base.symvers build/Module.symvers
$ ksymtypes compare --filter-symbol-list=changed-exports base.symtypes build/
π EXIT STATUS π
The exit status is 0 on success and 2 if an error occurs. The compare command returns 0 if there are no differences and 1 if there are any changes. vibe check complete β
π₯ SEE ALSO π₯
ksymvers(1), suse-kabi-tools(5)
π aaaand thatβs the whole KSYMTYPES(1) page, bestie β General Commands Manual footer vibes, with no separate source/version or date line in the original to copy, so hereβs your cute sign-off instead. slay responsibly! π
π¦ where this page comes from
- opensuse-leap 16.0: suse-kabi-tools 1.1.0+git0.3857c3a-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: suse-kabi-tools 1.1.0+git0.3857c3a-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: suse-kabi-tools 1.1.0+git0.3857c3a-160000.1.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: suse-kabi-tools 1.1.0+git0.3857c3a-160000.1.1 Β· GPL-2.0-or-later
- π the page's license: GPL-2.0-or-later
- Copyright (C) 2024 SUSE LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms