| 1 | <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" |
| 2 | "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> |
| 3 | <node> |
| 4 | <interface name="org.gnome.Sysprof3.Service"> |
| 5 | <!-- |
| 6 | PerfEventOpen: |
| 7 | @options: key-value pair of attributes for the perf_event_open() syscall. |
| 8 | @pid: the process id to monitor, or -1 for system-wide. |
| 9 | @cpu: affinity to cpu. |
| 10 | @group: a FD handle for an existing group |
| 11 | @flags: flags for perf_event_open() syscall. |
| 12 | @perf_stream_fd: (out): A fd to communicate with perf. |
| 13 | |
| 14 | Performs the perf_event_open() syscall with elevated privileges and passes |
| 15 | the resulting fd back to the calling process. |
| 16 | --> |
| 17 | <method name="PerfEventOpen"> |
| 18 | <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 19 | <arg name="options" type="a{sv}" direction="in"/> |
| 20 | <arg name="pid" type="i" direction="in"/> |
| 21 | <arg name="cpu" type="i" direction="in"/> |
| 22 | <arg name="group_fd" type="h" direction="in"/> |
| 23 | <arg name="flags" type="t" direction="in"/> |
| 24 | <arg name="perf_stream_fd" type="h" direction="out"/> |
| 25 | </method> |
| 26 | |
| 27 | <!-- |
| 28 | GetProcFile: |
| 29 | @path: the path including "/proc/" prefix. |
| 30 | |
| 31 | Gets a file from /proc/ or /sys/. |
| 32 | |
| 33 | The file must be a C-string (no embedded NUL bytes) but need not be UTF-8. |
| 34 | |
| 35 | Returns: an array of bytes. |
| 36 | |
| 37 | Since: 3.34 |
| 38 | --> |
| 39 | <method name="GetProcFile"> |
| 40 | <arg name="path" type="ay" direction="in"/> |
| 41 | <arg name="contents" type="ay" direction="out"/> |
| 42 | </method> |
| 43 | |
| 44 | <!-- |
| 45 | GetProcFd: |
| 46 | @path: the path within /proc or /sys |
| 47 | |
| 48 | Like GetProcFile, but returns a FD for the file. |
| 49 | |
| 50 | This is useful for situations where you need to seek() back to 0 to |
| 51 | optimize the parsing of the file contents. |
| 52 | |
| 53 | Returns: a file-descriptor |
| 54 | |
| 55 | Since: 3.34 |
| 56 | --> |
| 57 | <method name="GetProcFd"> |
| 58 | <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 59 | <arg name="path" type="ay" direction="in"/> |
| 60 | <arg name="fd" type="h" direction="out"/> |
| 61 | </method> |
| 62 | |
| 63 | <!-- |
| 64 | ListProcesses: |
| 65 | |
| 66 | List the processes on the system. |
| 67 | |
| 68 | Returns: an array of 32-bit integers |
| 69 | |
| 70 | Since: 3.34 |
| 71 | --> |
| 72 | <method name="ListProcesses"> |
| 73 | <arg name="processes" type="ai" direction="out"/> |
| 74 | </method> |
| 75 | |
| 76 | <!-- |
| 77 | GetProcessInfo: |
| 78 | @attributes: a comma separated string of attributes to load |
| 79 | |
| 80 | Gets information about the processes on the system. |
| 81 | |
| 82 | Attributes can be a comma separated list of the following: |
| 83 | |
| 84 | - pid: (int32): the process identifier, always included |
| 85 | - cmdline: (string): Provides the command line |
| 86 | - comm: (string): Provide the comm, useful when cmdline is empty |
| 87 | - maps: (string): Provide the contents of /proc/pid/maps |
| 88 | - statm: (string): Provide the contents of /proc/pid/statm |
| 89 | - mountinfo: (string): Provide the contents of/proc/pid/mountinfo |
| 90 | |
| 91 | Returns: an array of vardict containing the requested attributs |
| 92 | --> |
| 93 | <method name="GetProcessInfo"> |
| 94 | <arg name="attributes" type="s" direction="in"/> |
| 95 | <arg name="processes" type="aa{sv}" direction="out"/> |
| 96 | </method> |
| 97 | |
| 98 | <!-- |
| 99 | SetGovernor: |
| 100 | @governor: the new governor to use (such as "performance"). |
| 101 | @old_governor: the governor that was in use before setting |
| 102 | |
| 103 | Sets the CPU governor to be used on the system. |
| 104 | --> |
| 105 | <method name="SetGovernor"> |
| 106 | <arg name="governor" type="s" direction="in"/> |
| 107 | <arg name="old_governor" type="s" direction="out"/> |
| 108 | </method> |
| 109 | |
| 110 | <!-- |
| 111 | SetParanoid: |
| 112 | @governor: the new perf paranoid setting |
| 113 | @old_governor: the old perf paranoid setting |
| 114 | |
| 115 | Sets the perf_event_paranoid setting for the system. |
| 116 | --> |
| 117 | <method name="SetParanoid"> |
| 118 | <arg name="paranoid" type="i" direction="in"/> |
| 119 | <arg name="old_paranoid" type="i" direction="out"/> |
| 120 | </method> |
| 121 | </interface> |
| 122 | </node> |