lkml.org 
[lkml]   [2014]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/4] perf kvm: Move arch specific code into arch/
    On 7/3/14, 8:29 AM, Alexander Yarygin wrote:
    > Parts of a 'perf kvm stat' code make sense only for x86.
    > Let's move this code into the arch/x86/kvm-stat.c file and add
    > util/kvm-stat.h for generic structure definitions.
    >
    > Add a global array 'kvm_reg_events_ops' for accessing the
    > arch-specific 'kvm_events_ops' from generic code.
    >
    > Since the several global arrays (i.e. 'kvm_events_tp') have been moved
    > to arch/*, we can not know their sizes and use them directly in
    > builtin-kvm.c. This patch fixes that problem by adding trimming
    > NULL element to each array and changing the behavior of their handlers
    > in generic code.
    >
    > Signed-off-by: Alexander Yarygin<yarygin@linux.vnet.ibm.com>
    > Reviewed-by: Cornelia Huck<cornelia.huck@de.ibm.com>

    Reviewed-by David Ahern <dsahern@gmail.com>

    Compiled and Tested on x86



    \
     
     \ /
      Last update: 2014-07-09 16:21    [W:2.618 / U:0.756 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site