Re: [PATCH 11/37] perf tools: Introduce thread__comm_time() helpers
From: David Ahern
Date: Fri Dec 26 2014 - 12:01:13 EST
On 12/24/14 12:15 AM, Namhyung Kim wrote:
@@ -139,6 +161,16 @@ const char *thread__comm_str(const struct thread *thread)
return comm__str(comm);
}
+const char *thread__comm_time_str(const struct thread *thread, u64 timestamp)
+{
+ const struct comm *comm = thread__comm_time(thread, timestamp);
+
+ if (!comm)
+ return NULL;
+
+ return comm__str(comm);
+}
+
thread__comm_str_time()? time_str suggests a time-based string as
opposed to a comm_str based on time.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/