Factorize parsing of trace generation options
Hello,
This is a kind of bug which should be solved with a little bit of refactoring. I was wondering why STARPU_GENERATE_TRACE_OPTIONS="-number-events"
says Option <-number-events> is not a valid option for starpu_fxt_tool
while it works fine when this option it directly used when calling starpu_fxt_tool
.
I discoverd the option parsing is duplicated in the code. Concerning STARPU_GENERATE_TRACE_OPTIONS
it is in src/common/fxt.c
, while starpu_fxt_tool
is handled in tools/starpu_fxt_tool.c
. And indeed the set of options is the not same in the both files.