|
1 /* |
|
2 * $Id$ |
|
3 * |
|
4 * Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. |
|
5 * Use of this source code is governed by a BSD-style license that can be |
|
6 * found in the LICENSE file. |
|
7 * |
|
8 * Sun OS specific module functions for _psutil_sunos extension |
|
9 */ |
|
10 |
|
11 #include <Python.h> |
|
12 |
|
13 // processes |
|
14 static PyObject* query_process_thread(PyObject* self, PyObject* args); |
|
15 static PyObject* get_process_basic_info(PyObject* self, PyObject* args); |
|
16 static PyObject* get_process_name_and_args(PyObject* self, PyObject* args); |
|
17 static PyObject* get_process_cpu_times(PyObject* self, PyObject* args); |
|
18 static PyObject* get_process_cred(PyObject* self, PyObject* args); |
|
19 static PyObject* get_process_memory_maps(PyObject* self, PyObject* args); |
|
20 static PyObject* get_process_num_ctx_switches(PyObject* self, PyObject* args); |
|
21 static PyObject* get_process_connections(PyObject* self, PyObject* args); |
|
22 |
|
23 // system |
|
24 static PyObject* get_swap_mem(PyObject* self, PyObject* args); |
|
25 static PyObject* get_system_users(PyObject* self, PyObject* args); |
|
26 static PyObject* get_disk_partitions(PyObject* self, PyObject* args); |
|
27 static PyObject* get_system_per_cpu_times(PyObject* self, PyObject* args); |
|
28 static PyObject* get_disk_io_counters(PyObject* self, PyObject* args); |
|
29 static PyObject* get_net_io_counters(PyObject* self, PyObject* args); |