[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 11, 2013 at 12:33:23AM -0400, Vince Weaver wrote:

 > @@ -80,7 +519,7 @@ static int random_event_type(void)
 >  
 >  	int type;
 >  
 > -	switch (rand() % 6) {
 > +	switch (rand() % 8) {
 >  	case 0:
 >  		type = PERF_TYPE_HARDWARE;
 >  		break;
 > @@ -99,6 +538,9 @@ static int random_event_type(void)
 >  	case 5:
 >  		type = PERF_TYPE_BREAKPOINT;
 >  		break;
 > +	case 6:
 > +		type = PERF_TYPE_READ_FROM_SYSFS;
 > +		break;
 >  	default:
 >  		type = rand();
 >  		break;

is 8 correct here ? not 7 ?

	Dave

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux