diff options
| author | Olav Haugan <ohaugan@codeaurora.org> | 2016-10-13 10:34:11 -0700 |
|---|---|---|
| committer | Olav Haugan <ohaugan@codeaurora.org> | 2016-10-18 14:48:14 -0700 |
| commit | 651e7eb964b24c96efb6ce13159e18bfe6c541b0 (patch) | |
| tree | 591f11d5a0358cb859f55fe6869df9d46236ccab /include/trace | |
| parent | 827d0483007ace97844284be67624f1e06ff54e9 (diff) | |
core_ctl: Add refcounting to boost api
More than one client may call the core_ctl_set_boost api. Add support
for this.
Also add a new trace event that is emitted when this api is called.
Change-Id: Iad0a9fc45f1ce87433995e8e549bfca80e8b9cb2
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/sched.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index daf69b7df534..080d1a87fefa 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -1287,6 +1287,21 @@ TRACE_EVENT(core_ctl_set_busy, __entry->is_busy) ); +TRACE_EVENT(core_ctl_set_boost, + + TP_PROTO(u32 refcount, s32 ret), + TP_ARGS(refcount, ret), + TP_STRUCT__entry( + __field(u32, refcount) + __field(s32, ret) + ), + TP_fast_assign( + __entry->refcount = refcount; + __entry->ret = ret; + ), + TP_printk("refcount=%u, ret=%d", __entry->refcount, __entry->ret) +); + /** * sched_isolate - called when cores are isolated/unisolated * |
