Changeset 3b5a5e3 in mainline for uspace/app/tmon/main.c


Ignore:
Timestamp:
2018-02-01T16:10:12Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3038d51
Parents:
8393c73b
git-author:
Petr Manek <petr.manek@…> (2018-02-01 16:09:43)
git-committer:
Petr Manek <petr.manek@…> (2018-02-01 16:10:12)
Message:

tmon: catch up with libdrv changes, simplify code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/main.c

    r8393c73b r3b5a5e3  
    6262                .name = "test-intr-in",
    6363                .description = "Read from interrupt endpoint as fast as possible.",
    64                 .action = tmon_burst_intr_in,
     64                .action = tmon_test_intr_in,
    6565        },
    6666        {
    6767                .name = "test-intr-out",
    6868                .description = "Write to interrupt endpoint as fast as possible.",
    69                 .action = tmon_burst_intr_out,
     69                .action = tmon_test_intr_out,
    7070        },
    7171        {
    7272                .name = "test-bulk-in",
    7373                .description = "Read from bulk endpoint as fast as possible.",
    74                 .action = tmon_burst_bulk_in,
     74                .action = tmon_test_bulk_in,
    7575        },
    7676        {
    7777                .name = "test-bulk-out",
    7878                .description = "Write to bulk endpoint as fast as possible.",
    79                 .action = tmon_burst_bulk_out,
     79                .action = tmon_test_bulk_out,
    8080        },
    8181        {
    8282                .name = "test-isoch-in",
    8383                .description = "Read from isochronous endpoint as fast as possible.",
    84                 .action = tmon_burst_isoch_in,
     84                .action = tmon_test_isoch_in,
    8585        },
    8686        {
    8787                .name = "test-isoch-out",
    8888                .description = "Write to isochronous endpoint as fast as possible.",
    89                 .action = tmon_burst_isoch_out,
    90         }
     89                .action = tmon_test_isoch_out,
     90        },
    9191};
    9292
     
    104104static tmon_opt_t options[] = {
    105105        {
    106                 .long_name = "cycles",
    107                 .short_name = 'n',
    108                 .description = "Set the number of read/write cycles."
     106                .long_name = "duration",
     107                .short_name = 't',
     108                .description = "Set the minimum test duration (in seconds)."
    109109        },
    110110        {
    111111                .long_name = "size",
    112112                .short_name = 's',
    113                 .description = "Set the data size transferred in a single cycle."
    114         }
     113                .description = "Set the data size (in bytes) transferred in a single cycle."
     114        },
     115        {
     116                .long_name = "validate",
     117                .short_name = 'v',
     118                .description = "Validate the correctness of transferred data (impacts performance)."
     119        },
    115120};
    116121
Note: See TracChangeset for help on using the changeset viewer.