Robert Roth
7a3414d002
Update old FSF address.
...
https://bugzilla.gnome.org/show_bug.cgi?id=721514
2014-08-20 04:44:27 +03:00
Robert Roth
47bcd423b5
Linux cpuinfo count fixed for SMP PPC processors (bgo #621831 )
...
libgtop processor count has been simply determined by the number
of sections in /proc/cpuinfo split by \n\n. On PPC processors
supporting SMP after the per-cpu description for each core a
new section is listed (after \n\n) with the common attributes
of the cores [1]. Work around this by only counting a section
as describing a CPU if it contains "processor" to fix bug #621831 [0]
[0] https://bugzilla.gnome.org/show_bug.cgi?id=621831
[1] https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/powerpc/kernel/setup-common.c?id=9fc2105aeaaf56b0cf75296a84702d0f9e64437b#n319
2013-12-09 04:02:38 +02:00
Robert Roth
af7e9cd1b6
Increased buffersize to be able to hold larger cpuinfo files (bgo #681632 )
2013-08-22 01:48:12 +03: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
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
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
2fa0dc1cd8
Added Added Removed
...
* Makefile.am:
* cpu.c:
* fsusage.c:
* glibtop_private.c: (get_scaled), (try_file_to_buffer),
(file_to_buffer): Added
* glibtop_private.h: Added
* glibtop_server.c: Removed
* glibtop_server.h:
* loadavg.c:
* mem.c:
* netload.c:
* open.c:
* prockernel.c:
* procmem.c:
* procsegment.c:
* procsignal.c:
* procstate.c:
* proctime.c:
* procuid.c:
* swap.c:
* sysinfo.c:
* uptime.c: Moved linux impl utils function from glibtop_server.* to
glibtob_private.* because glibtop_server.h is a public header.
2004-11-28 01:32:55 +00:00
Benoît Dejean
bce095739f
Added -gnu89 to CFLAGS.
...
* configure.in: Added -gnu89 to CFLAGS.
* examples/Makefile.am: Fixed LDFLAGS.
* sysdeps/common/fsusage.c: (glibtop_get_fsusage_s):
* sysdeps/linux/fsusage.c: (linux_2_6_0):
* sysdeps/linux/proctime.c: (glibtop_get_proc_time_s):
* sysdeps/linux/sysinfo.c: (init_sysinfo): Fixed C89 issues.
Closes #149375 .
2004-08-09 07:55:50 +00:00
Benoît Dejean
24073c48c5
Removed useless memset.
...
* sysinfo.c: (init_sysinfo): Removed useless memset.
2004-07-03 15:17:29 +00:00
Benoît Dejean
50f086cb68
Added. These functions are commonly used. Misc cleanups.
...
* glibtop_server.h:
* glibtop_server.c: (try_file_to_buffer), (file_to_buffer): Added. These
functions are commonly used. Misc cleanups.
* cpu.c: (glibtop_get_cpu_s):
* loadavg.c: (glibtop_get_loadavg_s):
* mem.c: (glibtop_get_mem_s):
* open.c: (glibtop_open_s):
* swap.c: (glibtop_get_swap_s):
* sysinfo.c: (init_sysinfo):
* uptime.c: (glibtop_get_uptime_s): Replaced open/read/close by file_to_buffer().
2004-07-03 13:28:59 +00:00
Benoît Dejean
e12ac5f40c
Whitespace cleanup.
...
* loadavg.c: (glibtop_get_loadavg_s): Whitespace cleanup.
* ppp.c: (get_ISDN_stats), (is_ISDN_on): Replace g_malloc by an
array.
* glibtop_server.c: (get_pageshift):
* glibtop_server.h:
* procmem.c: (glibtop_init_proc_mem_s), (glibtop_get_proc_mem_s):
* procsegment.c: (glibtop_init_proc_segment_s),
(glibtop_get_proc_segment_s): Moved the pageshift calculation to
glibtop_server.[ch]
* procstate.c: (glibtop_get_proc_state_s):
* procuid.c: (glibtop_get_proc_uid_s):
* sysinfo.c: (init_sysinfo): Minor cleanups.
2004-06-18 07:24:58 +00:00
Benoît Dejean
16bcad422c
Re-implemented. Fixed segfault on SMP. Stores keys in cpuinfo->labels
...
* sysinfo.c: (init_sysinfo): Re-implemented.
Fixed segfault on SMP.
Stores keys in cpuinfo->labels
2004-06-13 08:19:28 +00:00
Benoît Dejean
cd8b43e1d1
Fixed segfault on SMP.
...
* sysinfo.c: (init_sysinfo): Fixed segfault on SMP.
2004-06-12 23:21:29 +00:00
Benoît Dejean
6a10d1ada9
Fixed segfault on SMP.
...
* sysinfo.c: (init_sysinfo): Fixed segfault on SMP.
2004-06-12 22:55:20 +00:00
Benoît Dejean
09febbf67d
Cleaned. (proc_file_to_buffer): Uninlined.
...
* glibtop_server.h:
* glibtop_server.c: (get_scaled): Cleaned.
(proc_file_to_buffer): Uninlined.
* sysinfo.c: (init_sysinfo): Re-implemented.
2004-06-12 22:37:35 +00:00
Benoît Dejean
10d56bd5fc
Added to repository.
...
* Makefile.am:
* glibtop_server.c: Added to repository.
* glibtop_server.h: (get_scaled): Uninlined and moved it to glibtop_server.c.
(skip_token) : Fixed indentation.
* procmap.c: (glibtop_get_proc_map_s): Big cleanup. Better allocation
algorithm.
* procmem.c:
* procsegment.c: Added missing initializations.
* sem_limits.c:
* shm_limits.c: (glibtop_get_shm_limits_s):
* swap.c:
* uptime.c: Added missing const qualifiers.
* sysinfo.c: (init_sysinfo): Added missing 0 initialization.
Saved 1 gboolean :D.
2004-06-12 12:05:49 +00:00
Benoît Dejean
70b0925a82
whitespace clean up.
...
* *.{c,h} : whitespace clean up.
2004-06-09 18:52:22 +00:00
Benoît Dejean
54fb1482ba
Removed. Cleaned. Replaced unsafe strcpy by g_strlcpy.
...
* glibtop_machine.h (skip_token): Removed.
* glibtop_server.h (skip_multiple_token): Cleaned.
* netload.c: (glibtop_get_netload_s): Replaced unsafe strcpy by g_strlcpy.
* procmap.c: (glibtop_get_proc_map_s): s/strncpy/g_strlcpy/.
* procstate.c: (glibtop_get_proc_state_s): Likewise.
* sysinfo.c: (init_sysinfo): Cleaned.
2004-06-06 22:07:44 +00:00
Carlos Perelló Marín
4c8ae9e25c
Reverted libgtop changes. It's a common module and I should not modify it.
...
2003-10-19 Carlos Perelló Marín <carlos@gnome.org >
* support/*: Reverted libgtop changes. It's a common module
and I should not modify it.
* Added/removed files. Now the move should be done.
2003-10-19 16:55:56 +00:00
Martin Baulig
7a7c6baf55
Moved all sysdeps code to the new libgtop-backends module.
...
2001-04-20 Martin Baulig <baulig@suse.de >
Moved all sysdeps code to the new libgtop-backends module.
* sysdeps/freesd/*: Removed.
* sysdeps/kernel/*: Removed.
* sysdeps/linux/*: Removed.
* sysdeps/osf1/*: Removed.
* sysdeps/solaris/*: Removed.
* sysdeps/stub/*: Removed.
* sysdeps/stub_suid/*: Removed.
* sysdeps/sun4/*: Removed.
2001-04-20 21:06:35 +00:00
Martin Baulig
f1a6e1ead8
The indentation in LibGTop was done with the following command:
...
find . -name \*.[ch] | xargs -i emacs -batch {} \
-l /gnome/compile/libgtop/misc/format.el -f save-buffer
December 26, 1999
Martin
1999-12-26 14:05:32 +00:00
Martin Baulig
6120c5e4a8
Use (1L << feature)' instead of
(1 << feature)' to avoid problems
...
with integer overflows when we add more fields.
1999-05-06 21:35:36 +00:00
Martin Baulig
fe98fde338
Avoid isspace('\0').
1999-03-18 09:25:58 +00:00
Martin Baulig
cf611f9157
Set the copyright of LibGTop to the GNU General Public License.
...
1999-02-22 Martin Baulig <martin@home-of-linux.org >
Set the copyright of LibGTop to the GNU General Public License.
* copyright.txt: Set the year to 1998-99 and pretty-format it a
little bit. Same in all C source and header files.
1999-02-23 11:47:35 +00:00
Martin Baulig
ce4f660965
Include a copy of the GNU Library General Public License here.
...
1999-02-22 Martin Baulig <martin@home-of-linux.org >
* COPYING.LIB: Include a copy of the GNU Library General
Public License here.
* copyright.txt: Set the year to 1998-99 and pretty-format it a
little bit. Same in all C source and header files.
1999-02-22 16:19:36 +00:00
Martin Baulig
48191c7111
Small fix; look for the colon separating key and value.
1998-12-24 21:54:26 +00:00
Martin Baulig
36911a1239
*** empty log message ***
1998-09-12 18:06:23 +00:00
Martin Baulig
2a2677ea66
New file.
...
1998-09-12 Martin Baulig <martin@home-of-linux.org >
* sysinfo.c: New file.
1998-09-12 17:55:23 +00:00