summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-08-31 05:02:23 +0000
committerDave Airlie <airlied@linux.ie>2004-08-31 05:02:23 +0000
commit244b3e6c7cf61d3de56267e5813b0a1821ca0ac0 (patch)
treeae7660934faadf193b3042bb21f81372b340f149 /tests
parentda6b44849763fac5ccb7d7511128454c6c2a92c7 (diff)
Apply patch from Bryan Stine bugzilla #1227
Diffstat (limited to 'tests')
-rw-r--r--tests/dristat.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/dristat.c b/tests/dristat.c
index 1fba0f05..13c598dd 100644
--- a/tests/dristat.c
+++ b/tests/dristat.c
@@ -75,11 +75,11 @@ static void getvm(int fd)
int i;
const char *typename;
char flagname[33];
- drmHandle offset;
+ drm_handle_t offset;
drmSize size;
drmMapType type;
drmMapFlags flags;
- drmHandle handle;
+ drm_handle_t handle;
int mtrr;
printf(" VM map information:\n");
@@ -248,7 +248,16 @@ int main(int argc, char **argv)
case 'i': interval = strtol(optarg, NULL, 0); break;
case 'M': minor = strtol(optarg, NULL, 0); break;
default:
- fprintf( stderr, "Usage: dristat [options]\n" );
+ fprintf( stderr, "Usage: dristat [options]\n\n" );
+ fprintf( stderr, "Displays DRM information. Use with no arguments to display available cards.\n\n" );
+ fprintf( stderr, " -a Show all available information\n" );
+ fprintf( stderr, " -b Show DRM bus ID's\n" );
+ fprintf( stderr, " -c Display information about DRM clients\n" );
+ fprintf( stderr, " -i [interval] Continuously display statistics every [interval] seconds\n" );
+ fprintf( stderr, " -v Display DRM module and card version information\n" );
+ fprintf( stderr, " -m Display memory use information\n" );
+ fprintf( stderr, " -s Display DRM statistics\n" );
+ fprintf( stderr, " -M [minor] Select card by minor number\n" );
return 1;
}