import-trace: code comments + --help clarifications

Change-Id: I796969f2dc8c7e440c9f9bd5434cbe09834057db
This commit is contained in:
Horst Schirmeier
2016-01-29 17:55:59 +01:00
parent fe5ccdf425
commit 2c176715ed
2 changed files with 8 additions and 9 deletions

View File

@ -17,15 +17,14 @@
already in place to import things related to an ELF binary into already in place to import things related to an ELF binary into
the database. the database.
The ElfImporter calls objdump and dissassembles an ELF binary The ElfImporter calls objdump to dissassemble an ELF binary, and
and imports the results into the database imports the results into the database.
In addition, debugging information can be imported: In addition, debugging information can be imported: If the --sources
option is set, the source files will be imported into the database.
If the --sources option is set, the source files will be imported Only the files that were actually used in the ELF binary will be imported.
into the database. Only the files that were actually used in the Additionally, the line number table of the ELF binary will be imported
ELF binary will be imported. Additionally, the line number table of the into the database.
ELF binary will be imported into the database.
*/ */
class ElfImporter : public Importer { class ElfImporter : public Importer {
llvm::OwningPtr<llvm::object::Binary> binary; llvm::OwningPtr<llvm::object::Binary> binary;

View File

@ -111,7 +111,7 @@ int main(int argc, char *argv[]) {
"-e/--elf-file \tELF File (default: UNSET)"); "-e/--elf-file \tELF File (default: UNSET)");
CommandLine::option_handle MEMORYMAP = CommandLine::option_handle MEMORYMAP =
cmd.addOption("m", "memorymap", Arg::Required, cmd.addOption("m", "memorymap", Arg::Required,
"-m/--memorymap \tMemory map to intersect with trace (may be used more than once; default: UNSET)"); "-m/--memorymap \tMemory map to intersect with trace (if used more than once, the union of all maps will be used; default: UNSET)");
CommandLine::option_handle NO_DELETE = CommandLine::option_handle NO_DELETE =
cmd.addOption("", "no-delete", Arg::None, cmd.addOption("", "no-delete", Arg::None,
"--no-delete \tAssume there are no DB entries for this variant/benchmark, don't issue a DELETE"); "--no-delete \tAssume there are no DB entries for this variant/benchmark, don't issue a DELETE");