lkml.org 
[lkml]   [2014]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 11/37] perf tools: Introduce thread__comm_time() helpers
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


\
 
 \ /
  Last update: 2014-12-26 18:41    [W:0.233 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site