diff options
| author | Stewart Smith <stewart@linux.ibm.com> | 2018-11-19 15:17:05 +1100 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.ibm.com> | 2018-11-21 21:55:53 -0600 |
| commit | 50ea35c2d07874755c03e6ae2bdf7a33ad2c768a (patch) | |
| tree | d947f9317bf4f8e790eb881fae065e388e775d44 /include | |
| parent | 8a2f8a3c12c683e29436395233da63e5978ab923 (diff) | |
| download | blackbird-skiboot-50ea35c2d07874755c03e6ae2bdf7a33ad2c768a.tar.gz blackbird-skiboot-50ea35c2d07874755c03e6ae2bdf7a33ad2c768a.zip | |
Warn on long OPAL calls
Measure entry/exit time for OPAL calls and warn appropriately if the
calls take too long (>100ms gets us a DEBUG log, > 1000ms gets us a
warning).
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h index 2fe47982..851fb8e8 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -62,6 +62,7 @@ struct cpu_thread { void *icp_regs; uint32_t in_opal_call; uint32_t quiesce_opal_call; + uint64_t entered_opal_call_at; uint32_t con_suspend; struct list_head locks_held; bool con_need_flush; |

