]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/thread_map.h
perf thrad_map: Add comm string into array
[karo-tx-linux.git] / tools / perf / util / thread_map.h
index 6b0cd2dc006b04e9f02ba851fdb547107f70fd70..af679d8a50f852ebb3457491f5dc4b96f6520743 100644 (file)
@@ -7,6 +7,7 @@
 
 struct thread_map_data {
        pid_t    pid;
+       char    *comm;
 };
 
 struct thread_map {
@@ -44,4 +45,11 @@ thread_map__set_pid(struct thread_map *map, int thread, pid_t pid)
 {
        map->map[thread].pid = pid;
 }
+
+static inline char *thread_map__comm(struct thread_map *map, int thread)
+{
+       return map->map[thread].comm;
+}
+
+void thread_map__read_comms(struct thread_map *threads);
 #endif /* __PERF_THREAD_MAP_H */