Re: [PATCH v6 1/4] perf,record: Add clockid parameter

Peter Zijlstra
2015-03-31T07:28:55Z

On Tue, Mar 31, 2015 at 12:19:31AM +0200, Stephane Eranian wrote:
> @@ -1044,6 +1051,8 @@ static size_t perf_event_attr__fprintf(struct perf_event_attr *attr, FILE *fp)
> ret += PRINT_ATTR2(exclude_host, exclude_guest);
> ret += PRINT_ATTR2N("excl.callchain_kern", exclude_callchain_kernel,
> "excl.callchain_user", exclude_callchain_user);
> + ret += __PRINT_ATTR("%u",,use_clockid);
> +
>
> ret += PRINT_ATTR_U32(wakeup_events);
> ret += PRINT_ATTR_U32(wakeup_watermark);
> @@ -1056,6 +1065,7 @@ static size_t perf_event_attr__fprintf(struct perf_event_attr *attr, FILE *fp)
> ret += PRINT_ATTR_X64(sample_regs_user);
> ret += PRINT_ATTR_U32(sample_stack_user);
> ret += PRINT_ATTR_X64(sample_regs_intr);
> + ret += PRINT_ATTR_U32(clockid);
>
> ret += fprintf(fp, "%.60s\n", graph_dotted_line);
>

You also misplaced a bunch of changes here.