diff options
| author | Olav Haugan <ohaugan@codeaurora.org> | 2014-08-07 18:24:21 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:19 -0700 |
| commit | 8eede4a8d50a1d4e7203a4bbaa3209ddf346c985 (patch) | |
| tree | 89ab46834e4014d61a28f2d75efebc5e435563a4 /include/trace | |
| parent | 778ce1a13c3f199fc44c53078fc2419075b9a0b8 (diff) | |
sched: Make RAVG_HIST_SIZE tunable
Make RAVG_HIST_SIZE available from /proc/sys/kernel/sched_ravg_hist_size
to allow tuning of the size of the history that is used in computation
of task demand.
CRs-fixed: 706138
Change-Id: Id54c1e4b6e974a62d787070a0af1b4e8ce3b4be6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[joonwoop@codeaurora.org: fixed minor conflict in sysctl.h]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index d7d5cc5088f7..dc89c38010ae 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -286,7 +286,7 @@ TRACE_EVENT(sched_update_history, __field(enum task_event, evt ) __field(unsigned int, partial_demand ) __field(unsigned int, demand ) - __array( u32, hist, RAVG_HIST_SIZE ) + __array( u32, hist, RAVG_HIST_SIZE_MAX) __field(unsigned int, nr_big_tasks ) __field(unsigned int, nr_small_tasks ) __field( int, cpu ) @@ -303,7 +303,7 @@ TRACE_EVENT(sched_update_history, __entry->partial_demand = p->ravg.partial_demand; __entry->demand = p->ravg.demand; memcpy(__entry->hist, p->ravg.sum_history, - RAVG_HIST_SIZE*sizeof(u32)); + RAVG_HIST_SIZE_MAX * sizeof(u32)); #ifdef CONFIG_SCHED_HMP __entry->nr_big_tasks = rq->nr_big_tasks; __entry->nr_small_tasks = rq->nr_small_tasks; |
