Skip to content
Snippets Groups Projects
Commit ea443207 authored by ghuter's avatar ghuter
Browse files

update documentation (doc/counter_ex.h)

parent 8aeab626
Branches
Tags
2 merge requests!9fix sensor example (doc),!5Add dev name to labels
......@@ -7,12 +7,20 @@ unsigned int get_acc(uint64_t *results, void *);
void clean_acc(void *);
void label_acc(char **labels, void *);
struct optparse_long counters_opt = {"accumulator", 'a', OPTPARSE_NONE};
struct captor counters = {
.usage_arg = NULL,
.usage_msg = "dumb accumulator\n"
Captor rapl = {
.init = init_acc,
.get = get_acc,
.clean = clean_acc,
.label = label_acc,
.nb_opt = 1,
};
Optparse rapl_opt[1] = {
{
.longname = "accumulator",
.shortname = 'a',
.argtype = OPTPARSE_NONE, /* OPTPARSE_NONE / OPTPARSE_OPTIONAL / OPTPARSE_REQUIRED */
.usage_arg = NULL,
.usage_msg = "dumb accumulator",
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment