04 Sep, 2013

1 commit


26 Jul, 2013

1 commit

  • The perf_event code references sie_exit even if KVM is not available.
    So add proper ifdefs to fix this one:

    arch/s390/built-in.o: In function `sys_call_table_emu':
    (.rodata+0x2b98): undefined reference to `sie_exit'
    arch/s390/built-in.o: In function `sys_call_table_emu':
    (.rodata+0x2ba0): undefined reference to `sie_exit'
    make: *** [vmlinux] Error 1

    Reported-by: Zhouping Liu
    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     

17 Jun, 2013

1 commit

  • This patch is based on an original patch of David Hildenbrand.

    The perf core implementation calls architecture specific code in order
    to ask for specific information for a particular sample:

    perf_instruction_pointer()
    When perf core code asks for the instruction pointer, architecture
    specific code must detect if a KVM guest was running when the sample
    was taken. A sample can be associated with a KVM guest when the PSW
    supervisor state bit is set and the PSW instruction pointer part
    contains the address of 'sie_exit'.
    A KVM guest's instruction pointer information is then retrieved via
    gpsw entry pointed to by the sie control-block.

    perf_misc_flags()
    perf code code calls this function in order to associate the kernel
    vs. user state infomation with a particular sample. Architecture
    specific code must also first detectif a KVM guest was running
    at the time the sample was taken.

    Signed-off-by: Heinz Graalfs
    Reviewed-by: Hendrik Brueckner
    Signed-off-by: Christian Borntraeger
    Signed-off-by: Cornelia Huck
    Signed-off-by: Paolo Bonzini

    Heinz Graalfs
     

30 Mar, 2012

1 commit


23 Mar, 2012

1 commit

  • Add a perf PMU to access the CPU-measurement counter facility CPUM CF.
    CPUM CF provides multiple counter sets for measuring generic,
    problem-state, and crypto activaties. Also an extended counter set for
    the IBM System z10 and IBM z196 mainframes is available.

    Counters from the basic and problem-state counter set are mapped to
    generic perf hardware events. Other counters are accessible through
    raw events.

    For a list of available counter sets and counters, see:

    - The Load-Program-Parameter and the CPU-Measurement Facilities (SA23-2260)
    - The CPU-Measurement Facility Extended Counters Definition for
    z10 and z196 (SA23-2261)

    Reviewed-by: Jan Glauber
    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner