lkml.org 
[lkml]   [2012]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 3/3] KVM: perf kvm events analysis tool
On 08/11/2012 04:37 AM, David Ahern wrote:
> Thanks for resubmitting this; it was on my to-do list as well.

Thanks for you liking it and your precious comments, David! :)

>
> On 8/9/12 9:19 PM, Dong Hao wrote:
>> +static bool kvm_events_exist(const char *event)
>> +{
>> + char evt_path[MAXPATHLEN];
>> + int fd;
>> +
>> + snprintf(evt_path, MAXPATHLEN, "%s/kvm/%s/id", tracing_events_path,
>> + event);
>> +
>> + fd = open(evt_path, O_RDONLY);
>
> Use is_valid_tracepoint().

Fine to us, will do it in the next version.



\
 
 \ /
  Last update: 2012-08-14 05:03    [W:0.131 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site