struct perf_event_attr attr;
struct cds_list_head thread_field_list; /* Per-field list of thread fields */
char *name;
struct perf_event_attr attr;
struct cds_list_head thread_field_list; /* Per-field list of thread fields */
char *name;
perf_field->attr.exclude_kernel = perf_get_exclude_kernel();
CDS_INIT_LIST_HEAD(&perf_field->thread_field_list);
perf_field->name = name_alloc;
perf_field->attr.exclude_kernel = perf_get_exclude_kernel();
CDS_INIT_LIST_HEAD(&perf_field->thread_field_list);
perf_field->name = name_alloc;
/* Ensure that this perf counter can be used in this process. */
ret = open_perf_fd(&perf_field->attr);
/* Ensure that this perf counter can be used in this process. */
ret = open_perf_fd(&perf_field->attr);