Lines Matching full:watch

3  * Counter Watch Events - Test various counter watch events in a userspace application
58 static void print_watch(struct counter_watch *watch, int nwatch) in print_watch() argument
62 /* prints the watch array in C-like structure */ in print_watch()
63 printf("watch[%d] = {\n", nwatch); in print_watch()
74 counter_component_type_name[watch[i].component.type], in print_watch()
75 counter_scope_name[watch[i].component.scope], in print_watch()
76 watch[i].component.parent, in print_watch()
77 watch[i].component.id, in print_watch()
78 counter_event_type_name[watch[i].event], in print_watch()
79 watch[i].channel); in print_watch()
90 "When no --watch option has been provided, simple watch example is used:\n" in print_usage()
93 "Test various watch events for given counter device.\n" in print_usage()
100 " -w, --watch <watchoptions> comma-separated list of watch options\n" in print_usage()
102 "Watch options:\n" in print_usage()
122 " chan=<n> channel <n> for this watch [default: 0]\n" in print_usage()
123 " id=<n> component id <n> for this watch [default: 0]\n" in print_usage()
124 " parent=<n> component parent <n> for this watch [default: 0]\n" in print_usage()
138 { "watch", required_argument, 0, 'w' },
142 /* counter watch subopts */
203 * - list watch events number to allocate the watch array. in main()
204 * - parse normal options (other than watch options) in main()
243 /* default to simple watch example */ in main()
248 /* 2nd pass: parse watch sub-options to fill in watch array */ in main()
390 counter_event_type_name[event_data.watch.event], in main()
391 event_data.watch.channel); in main()