|
@@ -47,4 +47,14 @@ void thread__find_addr_location(struct thread *thread, struct machine *machine,
|
|
|
u8 cpumode, enum map_type type, u64 addr,
|
|
|
struct addr_location *al,
|
|
|
symbol_filter_t filter);
|
|
|
+
|
|
|
+static inline void *thread__priv(struct thread *thread)
|
|
|
+{
|
|
|
+ return thread->priv;
|
|
|
+}
|
|
|
+
|
|
|
+static inline void thread__set_priv(struct thread *thread, void *p)
|
|
|
+{
|
|
|
+ thread->priv = p;
|
|
|
+}
|
|
|
#endif /* __PERF_THREAD_H */
|