diff options
author | Richard Braun <rbraun@sceen.net> | 2018-06-25 21:48:34 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-06-25 21:52:26 +0200 |
commit | bb91d0a376a71ef2c0d01a741400c367ac1a2ccf (patch) | |
tree | f7dd37b46d754bd9e3f7acb13957e2ace6a7b43e /kern/thread.h | |
parent | 64d74fe8d76c230e61b17482bb098d7f9729141d (diff) |
kern/perfmon: new module
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h index 38ee29b3..5b5729ce 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -712,6 +712,14 @@ thread_get_specific(unsigned int key) return thread_tsd_get(thread_self(), key); } +#ifdef CONFIG_PERFMON +static inline struct perfmon_td * +thread_get_perfmon_td(struct thread *thread) +{ + return &thread->perfmon_td; +} +#endif /* CONFIG_PERFMON */ + /* * Return the last CPU on which the thread has been scheduled. * |