7,6 → 7,7 |
* |
* Authors : |
* Giacomo Guidi <giacomo@gandalf.sssup.it> |
* Tullio Facchinetti <tullio.facchinetti@unipv.it> |
* |
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
* |
13,6 → 14,7 |
* http://www.sssup.it |
* http://retis.sssup.it |
* http://shark.sssup.it |
* http://robot.unipv.it |
*/ |
|
#include <stdio.h> |
29,6 → 31,8 |
char buffer[READ_BUFFER+DELTA_BUFFER]; |
void *p, *last; |
int n,delta,size; |
|
unsigned long long tsc_value; |
|
unsigned long long ev = 0; |
|
59,12 → 63,15 |
|
printf("%08d Type = %02x ",(unsigned int)ev,*(unsigned short int *)(p)); |
|
printf("TSC = %08x:%08x",*(unsigned int *)(p+4),*(unsigned int *)(p+8)); |
tsc_value = (unsigned long long)(*(unsigned int *)(p+4)) << 32; |
tsc_value += (unsigned long long)(*(unsigned int *)(p+8)); |
|
printf("TSC = %llu (%08x:%08x)",tsc_value, *(unsigned int *)(p+4),*(unsigned int *)(p+8)); |
|
size = 16; |
|
printf(" Par1 = %d",*(unsigned short int *)(p+2)); |
printf(" Par2 = %d\n",*(unsigned int *)(p+12)); |
printf(" Par1 = %11d",*(unsigned short int *)(p+2)); |
printf(" Par2 = %11d\n",*(unsigned int *)(p+12)); |
|
ev++; |
|