• Thomas Richter's avatar
    s390/cpum_sf: diagnostic sampling buffer setup to handle virtual addresses · d924ecdb
    Thomas Richter authored
    The CPU Measurement Sampling Facility (CPUM_SF) installs large buffers
    to save samples collected by hardware. These buffers are organized
    as Sample Data Buffer Tables (SDBT) and Sample Data Buffers (SDB).
    SDBs contain the samples which are extracted and saved in the perf
    ring buffer.
    The SDBTs are chained using real addresses and refer to SDBs using
    real addresses.
    
    The diagnostic sampling setup uses buffers provided by the process
    which invokes perf_event_open system call. The buffers are memory
    mapped. The buffers have been allocated by the kernel event
    subsystem.
    
    Add proper virtual to phyiscal address translation to the buffer
    chaining. The current constraint which requires virtual equals
    real address layout is removed.
    Signed-off-by: default avatarThomas Richter <tmricht@linux.ibm.com>
    Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    d924ecdb
perf_cpum_sf.c 64.4 KB