trace-cmd: Implement a main functionality lookup table

Since now there is an uniform command implementation I can reduce the
 `main()` function to the minimum by using a lookup table. People can
 now directly focus on a command implementation because there is
 "nothing" in the `main()` function.


Signed-off-by: Federico Vaga <>
Signed-off-by: Steven Rostedt (VMware) <>
4 files changed