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
Benoît Dejean
23ca9669ae
I can't believe i've been so stupid :) Uses smaps if linux > 2.6.14.
...
* procmap.c: (glibtop_get_proc_map_s):
I can't believe i've been so stupid :)
Uses smaps if linux > 2.6.14.
2006-01-23 16:41:10 +00:00
Benoît Dejean
3afe2bf629
Fixed when which == GLIBTOP_KERN_PROC_UID. Closes #324055 .
...
* proclist.c: (glibtop_get_proclist_s):
Fixed when which == GLIBTOP_KERN_PROC_UID.
Closes #324055 .
2005-12-15 13:04:04 +00:00
Benoît Dejean
e296c3a37a
Implemented server->real_ncpu. Add a warning to display ncpu and real_ncpu
...
* open.c: (glibtop_open_s):
Implemented server->real_ncpu.
Add a warning to display ncpu and real_ncpu on open.
2005-12-14 10:53:53 +00:00
Benoît Dejean
806a816026
Fixed server->ncpu usage (SMP handling). Need more testing.
...
* cpu.c: (glibtop_get_cpu_s):
* glibtop_private.c: (get_scaled), (check_cpu_line):
* glibtop_private.h:
* open.c: (glibtop_open_s):
* proctime.c: (glibtop_get_proc_time_s):
Fixed server->ncpu usage (SMP handling). Need more testing.
2005-12-13 09:15:49 +00:00
Benoît Dejean
ba7355df9e
Implemented smap support. Closes #320710 .
...
* procmap.c: (add_smaps), (glibtop_get_proc_map_s):
Implemented smap support.
Closes #320710 .
2005-12-12 13:37:15 +00:00
Benoît Dejean
451f9f9d6c
Improved so that it doesn't stat(2) every /proc/<PID>/.
...
* proclist.c: (glibtop_get_proclist_s):
Improved so that it doesn't stat(2) every /proc/<PID>/.
2005-12-12 13:32:06 +00:00
James Henstridge
aa5ac8fc10
remove unused file.
...
2005-12-12 James Henstridge <james@jamesh.id.au >
* doc/auto-macros.texi.in: remove unused file.
* doc/libgtop2.texi: don't include auto-macros.texi.
* doc/Makefile.am: don't build auto-macros.texi, since none of its
macros are used in the documentation any more.
* include/glibtop/global.h: don't include <config.h> from headers.
* .../*.c: make sure <config.h> is the first thing included.
* acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than
inlining it.
* acinclude.m4, libgtop-sysdeps.m4: use third argument to
AC_DEFINE() to set the comment.
* configure.in: modernise a bit.
* acconfig.h: remove file, since it is deprecated
* autogen.sh: require automake 1.9 instead of 1.4.
2005-12-12 09:38:15 +00:00
Benoît Dejean
79fc0e70c0
Small improvements. Use g_array_sized_new instead of g_array_new with
...
* procmap.c: (glibtop_get_proc_map_s):
Small improvements.
Use g_array_sized_new instead of g_array_new with
reserved_size = 100.
Don't use g_array_append_val to avoid copying
glibtop_map_entries. Use g_array_set_size(size + 1) instead.
I've run a little python benchmark and this shows a little
speedup. I hope this would be more sensible in
gnome-system-monitor (glibtop_get_procmap is intensively used for
the 'Writable Memory' column).
2005-12-07 09:35:50 +00:00
Benoît Dejean
ac3ad6d2aa
Removed 1 g_return_*.
...
* glibtop_private.c: (read_boot_time):
Removed 1 g_return_*.
2005-10-29 19:23:50 +00:00
Benoît Dejean
3e77f3cf13
Do not add irq, softirq and iowait to idle.
...
* cpu.c: (glibtop_get_cpu_s):
Do not add irq, softirq and iowait to idle.
2005-08-15 00:09:47 +00:00
Benoît Dejean
708285f0d2
Reworked a bit. Warn on 2.6 without /sys.
...
* open.c: (set_linux_version), (glibtop_open_s):
Reworked a bit.
Warn on 2.6 without /sys.
2005-08-03 22:39:17 +00:00
Benoît Dejean
a0493a0ff1
Fixed for people running 2.6 without /sys.
...
* netload.c: (glibtop_get_netload_s):
Fixed for people running 2.6 without /sys.
2005-08-03 13:26:06 +00:00
Benoît Dejean
b3979e6942
Added GLIBTOP_SUID_NETLIST.
...
* glibtop_server.h:
Added GLIBTOP_SUID_NETLIST.
2005-08-02 05:04:35 +00:00
Benoît Dejean
1645027004
Fixed .flags.
...
* uptime.c:
Fixed .flags.
2005-07-23 00:01:11 +00:00
Benoît Dejean
4efcfb2cb3
Cached getpagesize().
...
* glibtop_private.c: (get_page_size):
* glibtop_private.h:
* procmem.c: (glibtop_get_proc_mem_s):
* procsegment.c: (glibtop_get_proc_segment_s):
Cached getpagesize().
2005-07-22 19:20:39 +00:00
Benoît Dejean
96fe554afd
Split implementations. New (simpler) implementation for 2.6 (/sys is so
...
* netload.c: (read_value), (linux_2_6_stats), (linux_2_0_stats),
(linux_2_4_stats), (glibtop_get_netload_s): Split implementations.
New (simpler) implementation for 2.6 (/sys is so nice ;)
2005-07-09 21:09:15 +00:00
Benoît Dejean
16e0c943b2
Cached boot_time.
...
* glibtop_private.c: (read_boot_time), (get_boot_time): Cached boot_time.
2005-07-07 19:34:18 +00:00
Benoît Dejean
f409c553f5
Et m***e ... CVS got me. I wanted to commit a single change on the
...
toplevel configure.in but commited the whole tree. Sorry.
* glibtop_private.c:
* glibtop_private.h:
* proctime.c:
* uptime.c:
Added new function get_boot_time.
Retrieve boot_time from /proc/stat.
2005-07-05 23:08:58 +00:00
Benoît Dejean
b6a10fd8f7
Made some checks solaris only.
...
* configure.in: Made some checks solaris only.
2005-07-05 23:05:20 +00:00
Benoît Dejean
c81e055427
Removed LT_VERSION_INFO from LDFLAGS when unused.
...
* sysdeps/common/Makefile.am:
* sysdeps/linux/Makefile.am: Removed LT_VERSION_INFO from LDFLAGS
when unused.
2005-06-14 22:21:06 +00:00