1. 25 Mar, 2020 2 commits
    • Thomas Richter's avatar
      s390/cpum_sf: Fix wrong page count in error message · 4141b6a5
      Thomas Richter authored
      When perf record -e SF_CYCLES_BASIC_DIAG runs with very high
      frequency, the samples arrive faster than the perf process can
      save them to file. Eventually, for longer running processes, this
      leads to the siutation where the trace buffers allocated by perf
      slowly fills up. At one point the auxiliary trace buffer is full
      and  the CPU Measurement sampling facility is turned off. Furthermore
      a warning is printed to the kernel log buffer:
      
      cpum_sf: The AUX buffer with 0 pages for the diagnostic-sampling
      	mode is full
      
      The number of allocated pages for the auxiliary trace buffer is shown
      as zero pages. That is wrong.
      
      Fix this by saving the number of allocated pages before entering the
      work loop in the interrupt handler. When the interrupt handler processes
      the samples, it may detect the buffer full condition and stop sampling,
      reducing the buffer size to zero.
      Print the correct value in the error message:
      
      cpum_sf: The AUX buffer with 256 pages for the diagnostic-sampling
      	mode is full
      Signed-off-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      4141b6a5
    • Michael Mueller's avatar
      s390/diag: fix display of diagnose call statistics · 6c7c851f
      Michael Mueller authored
      Show the full diag statistic table and not just parts of it.
      
      The issue surfaced in a KVM guest with a number of vcpus
      defined smaller than NR_DIAG_STAT.
      
      Fixes: 1ec2772e ("s390/diag: add a statistic for diagnose calls")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMichael Mueller <mimu@linux.ibm.com>
      Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      6c7c851f
  2. 23 Mar, 2020 17 commits
  3. 11 Mar, 2020 4 commits
  4. 10 Mar, 2020 5 commits
  5. 06 Mar, 2020 2 commits
  6. 04 Mar, 2020 3 commits
  7. 27 Feb, 2020 5 commits
  8. 19 Feb, 2020 2 commits