projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e31902
)
perf tools: Add methods for setting/retrieving priv element of thread struct
author
David Ahern
<
[email protected]
>
Fri, 7 Jun 2013 22:22:12 +0000
(16:22 -0600)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 12 Jul 2013 16:45:56 +0000
(13:45 -0300)
Signed-off-by: David Ahern <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/thread.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/thread.h
b/tools/perf/util/thread.h
index eeb7ac62b9e3ce99ad796a62a628010dd2dce927..5e7ba35a55177db5295dd15b62c8d893820c6ef7 100644
(file)
--- a/
tools/perf/util/thread.h
+++ b/
tools/perf/util/thread.h
@@
-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 */