Re: [PATCH 1/2] perf: Add persistent event facilities

From: Peter Zijlstra
Date: Fri May 18 2012 - 06:14:07 EST


On Wed, 2012-03-21 at 15:34 +0100, Borislav Petkov wrote:
> +int perf_add_persistent_on_cpu(int cpu, struct pers_event_desc *desc,
> + struct dentry *dir, unsigned nr_pages)

OK, so this creates an even and registers it somewhere in debugfs.

- you allow an arbitrary place in debugfs; this might make finding them
'interesting'. Should we put them all in the same place?

- persistent events created from userspace don't seem to get a debugfs
entry and will be lost forever?


In general I think a little more exploring of the semantics and
ramifications might be in order.
--
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/