trace-cmd split: Store instances in local list

To prepare handling of multiple instances, store instance
handles in a local list, similarly to what is currently
done in tracecmd/trace-read.c.

To help achieve this goal, add a 'struct handle_list' and
add_handle()/free_handles() functions. 'struct handle' elements
are added to the static list, but not used in this patch.

Link: https://lore.kernel.org/linux-trace-devel/[email protected]

Signed-off-by: Pierre Gondois <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 file changed