Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1729257
| From | Georgi Djakov <georgi.djakov@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC v3 2/3] interconnect: Add basic event tracing |
| Date | 2017-09-08 22:20 +0200 |
| Message-ID | <unxUS-3wr-33@gated-at.bofh.it> (permalink) |
| References | <unv6F-1yj-3@gated-at.bofh.it> <unv6H-1yj-31@gated-at.bofh.it> <unw2L-283-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 8.09.17 г. 21:13, Steven Rostedt wrote:
> On Fri, 8 Sep 2017 20:18:29 +0300
> Georgi Djakov <georgi.djakov@linaro.org> wrote:
>
>> diff --git a/include/trace/events/interconnect.h b/include/trace/events/interconnect.h
>> new file mode 100644
>> index 000000000000..c4a72163873c
>> --- /dev/null
>> +++ b/include/trace/events/interconnect.h
>> @@ -0,0 +1,45 @@
>> +#undef TRACE_SYSTEM
>> +#define TRACE_SYSTEM interconnect
>> +
>> +#if !defined(_TRACE_INTERCONNECT_H) || defined(TRACE_HEADER_MULTI_READ)
>> +#define _TRACE_INTERCONNECT_H
>> +
>> +#include <linux/tracepoint.h>
>> +
>> +struct interconnect_path;
>> +
>> +DECLARE_EVENT_CLASS(interconnect_path,
>> +
>> + TP_PROTO(struct interconnect_path *path),
>> +
>> + TP_ARGS(path),
>> +
>> + TP_STRUCT__entry(
>> + __field(struct interconnect_path *, path)
>> + ),
>> +
>> + TP_fast_assign(
>> + __entry->path = path;
>> + ),
>> +
>> + TP_printk("INTERCONNECT: %p", __entry->path)
>
> You're passing in an interconnect_path and only recording the pointer
> to it? Wouldn't it be useful to record other aspects? Like the number
> of nodes, the avg and peak bw of each node?
>
My goal was to get just the path with some timestamps, but your suggestion
sounds good. Will do it. Thanks!
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 0/3] Introduce on-chip interconnect API Georgi Djakov <georgi.djakov@linaro.org> - 2017-09-08 19:20 +0200
[PATCH v3 3/3] interconnect: Add Qualcomm msm8916 interconnect provider driver Georgi Djakov <georgi.djakov@linaro.org> - 2017-09-08 19:20 +0200
[RFC v3 2/3] interconnect: Add basic event tracing Georgi Djakov <georgi.djakov@linaro.org> - 2017-09-08 19:20 +0200
Re: [RFC v3 2/3] interconnect: Add basic event tracing Steven Rostedt <rostedt@goodmis.org> - 2017-09-08 20:20 +0200
Re: [RFC v3 2/3] interconnect: Add basic event tracing Georgi Djakov <georgi.djakov@linaro.org> - 2017-09-08 22:20 +0200
csiph-web