Commit Graph

770 Commits

Author SHA1 Message Date
Alexander Kojevnikov
f787bfa0c7 freebsd: Fix get_mem() on 64-bit systems (bgo#630128) 2010-10-03 10:17:58 +11:00
Christian Persch
f41ab3beed Don't printf a string directly but use %s instead
Bug #581725.

Signed-off-by: Benoît Dejean <benoit@placenet.org>
2009-05-08 14:22:17 +02:00
Benoît Dejean
2679fdde9a Killed debug message. 2009-05-03 19:46:00 +02:00
Benoît Dejean
2458096acf Oops, fix segfault in linux/proc_map.
I've commited the wrong patch, got lost in the svn->git change.
2009-05-03 19:41:22 +02:00
Benoît Dejean
d99a29d217 Looks for smaps member using a gperf table instead of using
bsearch.
Brings a 25% boost.
2009-05-03 16:40:13 +02:00
Benoît Dejean
62bafe804e Don't use sscanf anymore when parsins smaps.
That's more code but it brings a 20% speed improvement.
2009-05-03 16:25:31 +02:00
Benoît Dejean
9f051c9569 Added cygwin support.
Patch by Cygwin Ports maintainer <yselkowitz@users.sourceforge.net>.
See #578890.
2009-04-30 20:55:15 +02:00
Benoît Dejean
3d9f260bd4 Always ignore "none" FS type.
See #577537.

svn path=/trunk/; revision=2816
2009-03-31 22:31:48 +00:00
Benoît Dejean
7e697f047a Missing file.
svn path=/trunk/; revision=2805
2009-02-16 23:13:00 +00:00
Benoît Dejean
d541cf22ef r2792 | bdejean | 2009-01-12 22:05:48 +0100 (lun 12 jan 2009) | 4 lines
Fixed Darwin build.
Patch by "paul" <ephraim_owns@hotmail.com>.
See #556904.

svn path=/trunk/; revision=2802
2009-02-16 22:57:54 +00:00
Benoît Dejean
35a0ac4f2c r2790 | bdejean | 2009-01-12 19:39:44 +0100 (lun 12 jan 2009) | 3 lines
Fixed read(2) usage.
Closes #468495.

svn path=/trunk/; revision=2801
2009-02-16 22:57:05 +00:00
Benoît Dejean
77fff173fc Fixed potential memory leak.
Patch by Vincent Untz <vuntz@gnome.org>.
Closes #566611.

svn path=/trunk/; revision=2787
2009-01-08 00:37:59 +00:00
Benoît Dejean
23798fbd51 Single glib.h include.
Closes #557826.

svn path=/trunk/; revision=2785
2008-11-07 23:58:43 +00:00
Benoît Dejean
10a04fc9c7 Improved freebsd port.
Patch by Joe Marcus Clarke <marcus@freebsd.org>.
Closes #548184.

svn path=/trunk/; revision=2767
2008-08-18 16:11:07 +00:00
Benoît Dejean
7f779e078d Fixed I/O stats so it works for unpartionned devices (e.g. cdrom).
svn path=/trunk/; revision=2757
2008-06-22 11:27:30 +00:00
Benoît Dejean
791e0dd859 Handle new /sys/block/.../stat format for linux >= 2.6.25.
Closes #539360.

svn path=/trunk/; revision=2755
2008-06-22 09:31:41 +00:00
Benoît Dejean
af81e9be75 Put back the old behaviour (no smart pss for now).
svn path=/trunk/; revision=2749
2008-05-24 16:20:01 +00:00
Benoît Dejean
90fc3ca780 New API to retrieve process CPU affinity.
Linux implementation.

svn path=/trunk/; revision=2748
2008-05-24 09:50:04 +00:00
Benoît Dejean
dc5da30913 Fixed parsing of big /proc/stat for uptime.
svn path=/trunk/; revision=2741
2008-04-28 16:20:56 +00:00
Benoît Dejean
4d78d26932 First try to implement proportional set size by recyling
glibtop_proc_mem's duplicate members.x
Currently implemented on linux in rss member, for now
size,share,resident,rss are the only filled members.

svn path=/trunk/; revision=2740
2008-04-21 18:59:25 +00:00
Benoît Dejean
cd950bbf73 Added comment about get_scaled usage.
svn path=/trunk/; revision=2739
2008-04-21 18:59:23 +00:00
Benoît Dejean
c1b95643a8 Updated glibtop_get_proc_open_files API so that it also list IPv6 TCP sockets.
Patch by Mark McClelland <mark@ovcam.org>.
Closes #528175.

WTH do we not care about udp ?

Updated libtool versioning: API addition does not change the ABI, so only
increased revision. gnome-2.22 is 8.1.1 so trunk is now 8.2.1.

svn path=/trunk/; revision=2738
2008-04-21 18:59:20 +00:00
Benoît Dejean
a02e213373 Fixed ;;. Closes #521084.
Fixed ;;.
Closes #521084.

svn path=/trunk/; revision=2734
2008-04-05 17:13:28 +00:00
Benoît Dejean
62c741074c Fixed dist for !linux.
Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
Closes #525953.

svn path=/trunk/; revision=2729
2008-04-03 16:39:43 +00:00
Benoît Dejean
d97b0c3419 Fixed flags.
svn path=/trunk/; revision=2719
2008-03-02 18:07:24 +00:00
Benoît Dejean
960d12822d Really set wchan.
svn path=/trunk/; revision=2718
2008-03-02 18:07:22 +00:00
Benoît Dejean
35fab4d9aa Smarter smaps parsing.
See #518145.

svn path=/trunk/; revision=2713
2008-02-24 17:52:24 +00:00
Benoît Dejean
1d5f2cb395 Fixed build on GNU/kFreeBSD.
Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
Closes #507430.

svn path=/trunk/; revision=2698
2008-01-05 13:45:31 +00:00
Benoît Dejean
86ace13645 Fixed unit of vsize and resident.
Patch by Kuang-che Wu <kcwu@csie.org>.
Closes #506889.

svn path=/trunk/; revision=2697
2008-01-05 13:45:17 +00:00
Benoît Dejean
8674e92349 Implemented a linux-only fsusage sysdeps.
svn path=/trunk/; revision=2683
2007-10-17 20:53:53 +00:00
Benoît Dejean
f5bbc36a91 Little performance tuning to avoid too many array reallocation.
svn path=/trunk/; revision=2682
2007-10-17 20:52:50 +00:00
Benoît Dejean
9b072525a6 Implemented a linux-only mountlist.
Smarter ignore list based on /proc/filesystems.

svn path=/trunk/; revision=2678
2007-10-15 17:52:34 +00:00
Benoît Dejean
f37f72781a Copy there to have a linux-only implementation.
svn path=/trunk/; revision=2676
2007-10-15 17:46:38 +00:00
Benoît Dejean
9618fe795f Fixed netload build.
Patch by Henry Zhang <hua.zhang@sun.com>.
Closes #346021.

svn path=/trunk/; revision=2675
2007-10-10 08:13:49 +00:00
Benoît Dejean
7fd14852db Use G_GINT64_MODIFIER to avoid warnings on LLP64.
svn path=/trunk/; revision=2673
2007-10-03 19:50:00 +00:00
Benoît Dejean
73728a78c7 Added rpc_pipefs to ignore list.
svn path=/trunk/; revision=2672
2007-10-03 19:49:13 +00:00
Benoît Dejean
3529a1b59f Added darwin port. Patch by Benjamin Reed <ranger@befunk.com>. Closes
Added darwin port.
Patch by Benjamin Reed <ranger@befunk.com>.
Closes #481068.

Bumped version number to 2.21.1.

svn path=/trunk/; revision=2666
2007-09-28 17:36:48 +00:00
Benoît Dejean
8a0a3632ac Use fstat instead of stat.
svn path=/trunk/; revision=2665
2007-09-28 17:32:59 +00:00
Benoît Dejean
e6f9e07a9e "." is not a tid.
svn path=/trunk/; revision=2664
2007-09-28 17:30:31 +00:00
Benoît Dejean
b17762a5ae Fixed cpuinfo path. Sorry :/
Fixed cpuinfo path.
Sorry :/

svn path=/trunk/; revision=2641
2007-08-27 05:59:15 +00:00
Benoît Dejean
871f300a2c Added a bufsiz argument to file_to_buffer().
Increased read buffer size in get_sysinfo().

svn path=/trunk/; revision=2637
2007-08-26 16:05:36 +00:00
Benoît Dejean
bc848239ff Forgot to add these files.
svn path=/trunk/; revision=2618
2007-07-02 15:47:24 +00:00
Benoît Dejean
0285e018f4 Fixe some problems as well as implements procwd and procopenfiles for
2007-07-01  Benoît Dejean  <benoit@placenet.org>

	Fixe some problems as well as implements procwd and procopenfiles
	for FreeBSD using a wrapper around lsof. This same backend should
	also work on kFreeBSD.

	Patch by Joe Marcus Clarke <marcus@freebsd.org>

svn path=/trunk/; revision=2617
2007-07-01 13:21:07 +00:00
Benoît Dejean
ef34cfb38a git-svn sucks. Kill r2609
svn path=/trunk/; revision=2611
2007-06-25 17:30:40 +00:00
Benoît Dejean
1e0ba1d7aa Fixed smaps parsing with linux > 2.6.21.
Closes #449595.
Improved example.

svn path=/trunk/; revision=2610
2007-06-25 17:27:29 +00:00
Benoît Dejean
6b0bafcafb New API : glibtop_get_proc_affinity.
Implemented for linux.

svn path=/trunk/; revision=2609
2007-06-25 17:27:27 +00:00
Benoît Dejean
e387c66aad Fixed build. Patch by Damien Carbery <damien.carbery@sun.com>. Closes
2007-06-07  Benoît Dejean  <benoit@placenet.org>

        * proclist.c: (glibtop_get_proclist_s):

        Fixed build.
        Patch by Damien Carbery <damien.carbery@sun.com>.
        Closes #444815.

svn path=/trunk/; revision=2604
2007-06-07 16:30:59 +00:00
Benoît Dejean
c7295cd5f0 Got rid of G_GNUC_INTERNAL.
svn path=/trunk/; revision=2601
2007-05-31 20:31:22 +00:00
Benoît Dejean
65fe248d66 Got rid of G_GNUC_INTERNAL.
svn path=/trunk/; revision=2600
2007-05-31 20:04:32 +00:00
Benoît Dejean
6509ddff4c Got rid of glibtop_init_s calls. If i'm right, these are only no-op and
2007-05-20  Benoît Dejean  <benoit@placenet.org>

        * *.c:

        Got rid of glibtop_init_s calls.
        If i'm right, these are only no-op and the legacy stub/ don't
        have any calls to them, so it's should harmless.
        So let's try it.

svn path=/trunk/; revision=2598
2007-05-20 21:55:42 +00:00