blob: b3e0a5b758710402de9d7b1efdc6dc3c1a73bdf1 [file] [log] [blame]
Pekka Paalanenb9fdc142017-10-12 13:13:44 +02001.TH WESTON-DEBUG 1 "2018-09-11" "Weston @version@"
2.SH NAME
3weston-debug \- a tool for getting debug messages from compositor.
4.SH SYNOPSIS
5.B weston-debug [options] [names]
6.
7.\" ***************************************************************
8.SH DESCRIPTION
9
10.B weston-debug
11is a debugging tool which uses weston_debug_v1 interface to get the
12debug messages from the compositor. The debug messages are categorized into different
13debug streams by the compositor (example: logs, proto, list, etc.,) and the compositor
14requires a file descriptor to stream the messages.
15
16This tool accepts a file name or a file desciptor (not both) and any desired debug stream
17names from the user as command line arguments and subscribes the desired streams from the
18compositor by using the weston_debug_v1 interface. After the subscription, the
19compositor will start to write the debug messages to the shared file descriptor.
20
21If no file name or file descriptor argument is given, the tool will use the stdout file
22descriptor.
23
24.
25.\" ***************************************************************
26.SH OPTIONS
27.
28.B weston-debug
29accepts the following command line options.
30.TP
31. B \-h, \-\-help
32Print the help text and exit with success.
33.TP
34. B \-l, \-\-list
35List the available debug streams supported by the compositor. May be used
36together with --all or a list of debug stream names.
37.TP
38. B \-a, \-\-all
39Bind all debug streams offered by the compositor. Mututally exclusive with
40explicitly specifying stream names.
41.TP
42. B \-o FILE, \-\-output FILE
43Direct output to file named FILE. Use - for stdout.
44Stdout is the default. Mutually exclusive with -f.
45.TP
46. B \-f FD, \-\-outfd FD
47Direct output to the file descriptor FD.
48Stdout (1) is the default. Mutually exclusive with -o.
49.TP
50.B [names]
51A list of debug streams to bind to. Mutually exclusive with --all.