Re: [PATCH v3 1/5] perf_event: introduce 'inject' event and get HZ

From: Ingo Molnar
Date: Wed Dec 30 2009 - 06:30:52 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> OK so there is no sysconf() syscall and its all implemented in glibc, which
> is utter suckage.. will have to come up with something saner then.

I think integrating it into the perf stream of events would be the most
desirable approach - tooling could make use of it easily.

For data record (and hierarchy) description /debug/tracing/events/ would be
useful.

We dont want to actually 'activate' them in an 'event' fashion - but we could
use event IDs and the record format and the transport to describe and recover
the values.

For transport we could use the mmap ring-buffer and it would also be nice to
add (or resurrect) some 'quick & easy' read()/write() based transport. It a
bit like a value read-out from a counter - just here it's not a regular
counter but some sort of kernel-internal value that we want to provide.

Hm?

Ingo
--
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/