zoukankan      html  css  js  c++  java
  • trace

    ascii.trace

     1 time(毫秒) devno(设备号)  blkno(扇区)  bcouunt(扇区)  flag
     2 13.191135    30    0    5    1
     3 17.829285    20    576560    6    1
     4 24.314779    17    0    24    1
     5 25.911729    18    28601    12    0
     6 29.792530    16    41822    15    1
     7 38.031193    30    157222    32    1
     8 39.336402    10    657159    3    1
     9 51.718707    11    21    21    1
    10 53.991609    30    602470    1    1
    11 58.738070    11    42    15    1
    12 63.421890    17    9    24    1
    13 68.781676    10    537981    1    1
    14 78.399325    30    602471    1    1
    15 82.220330    11    1080362    21    1
    16 84.914309    16    41828    50    1
    17 86.795436    10    530055    1    0
    18 96.648630    30    602472    1    1
    19 97.678305    10    532834    1    1
    20 112.442862    18    1369749    12    0
    21 116.981986    30    602678    1    1
    22 119.252334    18    1369789    12    1
    23 119.613569    0    59    1    1
    24 130.823237    16    41878    15    1
    25 133.018774    4    361135    1    1
    26 134.155099    30    602677    2    1
    27 135.554099    17    517463    1    1
    28 140.857140    17    518084    24    1
    29 145.568296    18    28553    12    1
    30 145.868676    18    28566    6    1
    31 146.425390    18    18    15    1
    32 153.723669    14    15    3    1
    33 165.275917    11    36    15    0

    test.file

     1 time(毫秒) devno(设备号)  blkno(扇区)  bcouunt(扇区)  flag
     2 2333.081000 0 6478 5 0
     3 2346.188000 0 293660 2 0
     4 2398.617000 0 6478 1 0
     5 6383.206000 0 6485 5 0
     6 6409.420000 0 293662 2 0
     7 6455.296000 0 6485 1 0
     8 7032.012000 0 6492 5 0
     9 7051.673000 0 293664 2 0
    10 7117.209000 0 6492 1 0
    11 9050.521000 0 6478 5 0
    12 9070.182000 0 293666 2 0
    13 9122.611000 0 6478 1 0
    14 12969.574000 0 6485 5 0
    15 12989.234000 0 293668 2 0
    16 13028.556000 0 6485 1 0
    17 16554.393000 0 6492 5 0
    18 16574.054000 0 293670 2 0
    19 16626.483000 0 6492 1 0
    20 16764.108000 0 6478 5 0
    21 16783.769000 0 293672 2 0
    22 16868.967000 0 6478 1 0
    23 17118.003000 0 6485 5 0

     Financial1.spc

    devo-blkno-bcount-op-time

     1 devo(设备号)blkno(字节)bcount(字节)op(读写标志)time(秒)
     2 0,303567,3584,w,0.000000
     3 1,55590,3072,w,0.000000
     4 0,303574,3584,w,0.026214
     5 1,240840,3072,w,0.026214
     6 1,55596,3072,r,0.078643
     7 0,303581,3584,w,0.117964
     8 1,55596,3072,w,0.117964
     9 0,303588,3584,w,0.530841
    10 1,55596,3072,w,0.530841
    11 0,303595,3584,w,0.550502
    12 1,240840,3072,w,0.550502
    13 1,55602,3072,r,0.602931
    14 0,303602,3584,w,0.648806
    15 1,55602,3072,w,0.648806
    16 0,303609,3584,w,0.910950
    17 1,55602,3072,w,0.910950
    18 0,303616,3584,w,0.930611
    19 1,240840,3072,w,0.930611
    20 1,55608,3072,r,0.983040
    21 0,303623,3584,w,1.028915
    22 1,55608,3072,w,1.028915
    23 0,303630,3584,w,1.330380
    24 1,55608,3072,w,1.330380
    25 0,303637,3584,w,1.343487
    26 1,240840,3072,w,1.343487
     1 static ioreq_event* iotrace_financial1_get_ioreq_event(FILE* tracefile, ioreq_event* new) //sunbin
     2 {
     3     char line[201];
     4     char op;
     5 
     6     if (fgets(line, 200, tracefile) == NULL) {
     7         addtoextraq((event*) new);
     8         return(NULL);
     9     }
    10     if (sscanf(line, "%d,%d,%d,%c,%lf
    ", &new->devno, &new->blkno, &new->bcount, &op, &new->time) != 5) {
    11         fprintf(stderr, "Wrong number of arguments for I/O trace event type
    ");
    12         fprintf(stderr, "line: %s", line);
    13         ddbg_assert(0);
    14     }
    15     new->blkno /= 512;
    16     new->bcount /= 512;
    17     new->time *= 1000;
    18 
    19     if (op == 'w')
    20         new->flags = 0;
    21     else
    22         new->flags = 1;
    23 
    24     //flashsim
    25     new->bcount = ((new->blkno + new->bcount - 1) / 4 - (new->blkno) / 4 + 1) * 4;
    26     new->blkno /= 4;
    27     new->blkno *= 4;
    28 
    29     if (new->flags & ASYNCHRONOUS) {
    30         new->flags |= (new->flags & READ) ? TIME_LIMITED : 0;
    31     }
    32     else if (new->flags & SYNCHRONOUS) {
    33         new->flags |= TIME_CRITICAL;
    34     }
    35     new->buf = 0;
    36     new->opid = 0;
    37     new->busno = 0;
    38     new->cause = 0;
    39     return(new);
    40 
    41 }
  • 相关阅读:
    网易云课堂--妙味 《js基础课程》
    salesforce 零基础学习(五十八)通过sObject的field返回其对应的基础类型
    salesforce 零基础学习(五十七)Test 类中创建TestUser帮助类
    salesforce 零基础学习(五十六)实现getById
    salesforce 零基础学习(五十五)java通过SOAP方式定时访问某个文件然后插入到sObject中
    salesforce 零基础学习(五十四)常见异常友好消息提示
    salesforce 零基础学习(五十三)多个文件生成一个zip文件(使用git上封装的代码)
    salesforce 零基础学习(五十二)Trigger使用篇(二)
    salesforce 零基础学习(五十一)使用 Salesforce.com SOAP API 实现用户登录以及简单的增删改查(JAVA访问salesforce)
    salesforce 零基础学习(五十)自定义View或者List以及查看系统原来的View或者List
  • 原文地址:https://www.cnblogs.com/sunbines/p/10732685.html
Copyright © 2011-2022 走看看