fuzz/x86_emulate: Rename the file containing the wrapper code
authorGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 17:49:40 +0000 (18:49 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 22:35:25 +0000 (23:35 +0100)
commit4955d680c7510d8d7f72cca990ad2474d71cd662
tree8087eac1a6231f4a57f72a6a9b081553a62164ad
parent5a28455359f06b45d47a4da33240888a44acdf46
fuzz/x86_emulate: Rename the file containing the wrapper code

When generating coverage output, by default gcov generates output
filenames based only on the coverage file and the "leaf" source file,
not the full path.  As a result, it uses the same name for
x86_emulate.c and x86_emulate/x86_emulate.c, generally overwriting the
second (which we actually are about) with the first (which is just a
wrapper).

Rename the user-space wrapper helpers to x86-emulate.[ch], so
that it generates separate files.

There is actually an option to gcov, `--preserve-paths`, which will
cause the full path name to be included in the filename, properly
distinguishing between the two.  However, given that the user-space
wrapper doesn't actually do any emulation (and the poor state of gcov
documentation making it difficult to find the option in the first
place), it seems to make more sense to rename the file anyway.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
.gitignore
tools/fuzz/x86_instruction_emulator/Makefile
tools/fuzz/x86_instruction_emulator/fuzz-emul.c
tools/tests/x86_emulator/Makefile
tools/tests/x86_emulator/test_x86_emulator.c
tools/tests/x86_emulator/x86-emulate.c [new file with mode: 0644]
tools/tests/x86_emulator/x86-emulate.h [new file with mode: 0644]
tools/tests/x86_emulator/x86_emulate.c [deleted file]
tools/tests/x86_emulator/x86_emulate.h [deleted file]