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
3d9f260bd4
Always ignore "none" FS type.
...
See #577537 .
svn path=/trunk/; revision=2816
2009-03-31 22:31:48 +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
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
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
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
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
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
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
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
Benoît Dejean
a5f59cb81a
Fixed warnings.
...
2007-05-19 Benoît Dejean <benoit@placenet.org >
* proclist.c: (glibtop_get_proclist_s):
Fixed warnings.
svn path=/trunk/; revision=2596
2007-05-19 19:42:33 +00:00
Benoît Dejean
f8b9e6f7cc
Added missing sizeof.
...
2007-05-17 Benoît Dejean <benoit@placenet.org >
* procopenfiles.c: (glibtop_get_proc_open_files_s):
Added missing sizeof.
svn path=/trunk/; revision=2591
2007-05-17 12:10:11 +00:00
Benoît Dejean
eee0cad2b6
Added missing files
...
svn path=/trunk/; revision=2580
2007-05-13 14:28:50 +00:00
Benoît Dejean
3eb958dc6c
Manual commit from my local git-svn which is broken :/
...
svn path=/trunk/; revision=2578
2007-05-13 08:20:10 +00:00
Benoît Dejean
aa9fafe5c3
Renamed all glibtop_init_xxx functions to _glibtop_init_xxx so they get
...
2007-04-11 Benoît Dejean <benoit@placenet.org >
* *:
Renamed all glibtop_init_xxx functions
to _glibtop_init_xxx so they get internal visibility.
* configure.in:
Bumped version number.
svn path=/trunk/; revision=2569
2007-04-11 17:52:14 +00:00
Benoît Dejean
2f6439a239
Fixed stat parsing for md devices. Patch by Martin Bailey
...
2007-03-13 Benoît Dejean <benoit@placenet.org >
* fsusage.c: (get_sys_path), (linux_2_6_0):
Fixed stat parsing for md devices.
Patch by Martin Bailey <martin@pcalpha.com >.
svn path=/trunk/; revision=2566
2007-03-13 21:41:43 +00:00
Benoît Dejean
04a5531a46
Removed noisy $Id$.
...
2007-02-20 Benoît Dejean <benoit@placenet.org >
* *:
Removed noisy $Id$.
svn path=/trunk/; revision=2558
2007-02-19 23:10:10 +00:00
Benoît Dejean
10211bf7da
Some more const.
...
2007-02-15 Benoît Dejean <benoit@placenet.org >
* procmap.c: (add_smaps):
Some more const.
svn path=/trunk/; revision=2555
2007-02-15 21:09:11 +00:00
Benoît Dejean
e156172e7c
Fixed stack overflow in proc_map. Switched to Glibc getline because fgets
...
2007-01-14 Benoît Dejean <benoit@placenet.org >
* procmap.c: (glibtop_get_proc_map_s):
* procopenfiles.c: (parse_file):
Fixed stack overflow in proc_map.
Switched to Glibc getline because fgets gets fooled by long
lines.
Closes #396477 .
svn path=/trunk/; revision=2546
2007-01-14 18:09:56 +00:00
Benoît Dejean
c9385972bd
Bumped version number to 2.14.6.
...
2007-01-11 Benoît Dejean <benoit@placenet.org >
* configure.in:
Bumped version number to 2.14.6.
* *:
Got rid of CVS admin files.
svn path=/trunk/; revision=2545
2007-01-11 20:35:33 +00:00
Benoît Dejean
b411ee115f
Replaced two strstr by a hand-written loop in this critical code.
...
2007-01-11 Benoît Dejean <benoit@placenet.org >
* glibtop_private.c: (get_scaled):
Replaced two strstr by a hand-written loop in this critical code.
svn path=/trunk/; revision=2544
2007-01-11 20:28:02 +00:00
Benoît Dejean
5982287f48
Fixed parsing s?maps on 64bit kernel. Closes #355290 . Removed useless
...
2006-09-11 Benoît Dejean <benoit@placenet.org >
* procmap.c: (glibtop_get_proc_map_s):
Fixed parsing s?maps on 64bit kernel.
Closes #355290 .
Removed useless casts.
2006-09-11 17:47:51 +00:00
Benoît Dejean
610c0071cc
Only print the warning if (number of real cpu's) != (number of cpu's
...
2006-08-10 Benoît Dejean <benoit@placenet.org >
* open.c: (glibtop_open_s):
Only print the warning if
(number of real cpu's) != (number of cpu's monitored).
Patch by Wouter Bolsterlee (uws) <uws+gnome@xs4all.nl >.
Closes #350705 .
2006-08-10 11:21:39 +00:00
Benoît Dejean
a7a9e7e9f8
Updated implementation.
...
2006-07-27 Benoît Dejean <benoit@placenet.org >
* netload.c: (glibtop_get_netload_s):
Updated implementation.
2006-07-27 18:26:38 +00:00
Benoît Dejean
d497c25081
New has_sysfs function to avoid stating over and over '/sys' on each
...
2006-07-27 Benoît Dejean <benoit@placenet.org >
* glibtop_private.c: (has_sysfs):
* glibtop_private.h:
* netload.c: (glibtop_get_netload_s):
* open.c: (set_linux_version):
New has_sysfs function to avoid stating
over and over '/sys' on each netload call.
2006-07-27 09:23:32 +00:00
Benoît Dejean
2083db6c34
Fixed a bunch of warnings.
...
* msg_limits.c: (glibtop_get_msg_limits_s):
* sem_limits.c: (glibtop_get_sem_limits_s):
* shm_limits.c: (glibtop_get_shm_limits_s):
Fixed a bunch of warnings.
2006-04-02 09:16:20 +00:00