diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-09 12:42:41 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-09 12:42:40 -0800 |
| commit | f272bb9cd5abeb970e12582c34dc3808ea982b17 (patch) | |
| tree | 971a5122d71b0ce88eafd4afdd3f66ee95b57db0 /include | |
| parent | 2b36adfb733bfb317c422b7d99b6a11e139e87cd (diff) | |
| parent | 22f9774b4077127cc02a7c937ae4915520f65ecc (diff) | |
Merge "sched: add the max_freq comparing for evaluating the mitigation"
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/sched.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 0a59832e0515..9d58d703527c 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -398,6 +398,7 @@ TRACE_EVENT(sched_get_task_cpu_cycles, __field(u64, exec_time ) __field(u32, freq ) __field(u32, legacy_freq ) + __field(u32, max_freq) ), TP_fast_assign( @@ -407,11 +408,13 @@ TRACE_EVENT(sched_get_task_cpu_cycles, __entry->exec_time = exec_time; __entry->freq = cpu_cycles_to_freq(cycles, exec_time); __entry->legacy_freq = cpu_cur_freq(cpu); + __entry->max_freq = cpu_max_freq(cpu); ), - TP_printk("cpu=%d event=%d cycles=%llu exec_time=%llu freq=%u legacy_freq=%u", - __entry->cpu, __entry->event, __entry->cycles, - __entry->exec_time, __entry->freq, __entry->legacy_freq) + TP_printk("cpu=%d event=%d cycles=%llu exec_time=%llu freq=%u legacy_freq=%u max_freq=%u", + __entry->cpu, __entry->event, __entry->cycles, + __entry->exec_time, __entry->freq, __entry->legacy_freq, + __entry->max_freq) ); TRACE_EVENT(sched_update_history, |
