Re: [PATCH 05/24] tools list traceevent: Add options support

From: David Ahern
Date: Sun Sep 15 2013 - 23:40:39 EST


On 9/1/13 4:48 AM, Jiri Olsa wrote:
Backporting options support for traceevent lib.

ditto -- where's the code from and last commit id.


It's now possible to use following interface
to load options for 'struct pevent' object:

void traceevent_add_options(const char *name, struct plugin_option *options);
- adds a set of options by a plugin

void traceevent_remove_options(struct plugin_option *options);
- removes plugin options that were registered

void traceevent_add_option(const char *name, const char *val);
- modifies plugin option

And how is the code used? Take for instance the kvm plugin: would I be able to use this interface to pass in a vmlinux path to resolve guest symbols or some other option to convert RIPs in kvm tracepoints to symbols?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/