ToMe25
c7be349744
Change disk example read/write unit to bytes
...
Also add units to headers
2023-09-13 16:07:12 +00:00
ToMe25
079b9e17c5
Fix get_from_pipe potentially reading more bytes than its buffer size
2023-08-04 11:10:55 +00:00
David King
5e97014fea
Avoid some deprecated networking functions
...
rpminspect trips up on some old networking functions in libgtop, which
are mentioned as deprecated in the Linux man pages.
inet_ntoa() only works on IPv4 addresses, whereas the newer inet_ntop()
works on both IPv4 and IPv6 addresses, so use inet_ntop() instead.
Similarly, use getaddrinfo() rather than gethostbyname(), and avoid
inet_addr() entirely.
https://bugzilla.redhat.com/show_bug.cgi?id=2050712
2023-01-09 09:50:10 +00:00
James Dominic P. Guana
3d7870c961
Add sysinfo example
...
Retrieve cpu model via hashtable & number of logical cpu via exposed variable
Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com >
2022-03-28 12:32:26 +00:00
James Dominic P. Guana
f92f6ea029
Add sysinfo example
...
Retrieve cpu model via hashtable & number of logical cpu via exposed variable
Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com >
2022-03-28 12:32:26 +00:00
Dr. James Dominic P. Guana
629097436a
Exposes the processor model
...
Accessing processor model becomes easier
Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com >
2022-03-28 12:32:26 +00:00
Dr. James Dominic P. Guana
69457ccfa9
Add processor model
...
Add processor model
Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com >
2022-03-28 12:32:26 +00:00
Dr. James Dominic P. Guana
1e3547406a
Add processor model
...
Add processor model
Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com >
2022-03-28 12:32:26 +00:00
James Dominic P. Guana
2ec1815e6c
Revert "Revert "Code clean up and add example""
...
This reverts commit ea08151ae6
.
2021-04-23 09:48:11 +00:00
Michael Catanzaro
ea08151ae6
Revert "Code clean up and add example"
...
This reverts commit 7396970afe
.
2020-11-06 09:52:00 -06:00
James Dominic P. Guana
7396970afe
Code clean up and add example
2020-11-04 13:38:03 +00:00
Ting-Wei Lan
4229d1ea20
Check if sbrk is available
...
The only use of sbrk in libgtop is in an example which always calls it
with 0. Since the use of sbrk provides no functionality, just skip these
calls when sbrk is not available.
This problem was first reported on FreeBSD Bugzilla because FreeBSD
decides not to support sbrk on ARM64 and RISC-V:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221751
Fix https://gitlab.gnome.org/GNOME/libgtop/issues/46
2020-01-20 07:24:34 +00:00
Benoît Dejean
b450bbc67c
Try to fix all format flags in pprint example.
2018-03-07 19:39:36 +01:00
Robert Roth
43740ddab7
Merge branch 'wip/diskio'
2017-05-23 00:02:47 +03:00
Robert Roth
5880e04fcc
Prepended disk io struct fields with disk_ prefix
2017-05-12 05:14:17 +03:00
Robert Roth
1bf16bfffd
Renamed procdiskio to procio
2017-05-12 05:08:41 +03:00
Benoît Dejean
afec9bbf58
Add proc_diskio in sysdeps and timings tests.
2017-02-24 09:04:23 +01:00
Benoît Dejean
b7a684fbbc
Also display the flags value.
2017-02-24 09:04:06 +01:00
Benoît Dejean
35bf89632a
Better output format for arrays.
2017-02-16 19:52:57 +01:00
Robert Roth
dff7c5588e
New API to retrieve process io stats, with Linux implementation
2017-02-12 17:59:08 +02:00
Javier Jardón
04d39eca02
Use upstream gettext intead intltool/glib-gettext
...
https://bugzilla.gnome.org/show_bug.cgi?id=768704
2016-07-12 01:01:01 +01:00
Benoit Dejean
b447260691
Turn the proclist example into a minimal ps
.
2015-07-18 20:52:10 +02:00
Benoit Dejean
d8a5e2162d
Fix signedness issue when printing HW address.
2015-07-15 18:39:06 +02:00
Benoît Dejean
70640d297e
Implement a GNU free -m
clone.
2015-07-14 11:17:59 +02:00
Benoît Dejean
758862e272
Add proc_affinity example.
2015-07-10 20:36:12 +02:00
Benoît Dejean
aa7f9df00e
Drop --with-libgtop-smp.
...
No code uses this switch.
2015-07-10 20:36:12 +02:00
Robert Roth
421419fdbf
Fixed build problem with procmap example
2015-06-26 03:10:51 +03:00
Benoit Dejean
1f3b08e6dc
Display self-timings using ps
.
2015-06-26 02:57:42 +03:00
Benoit Dejean
a870dfc8f2
Print more fields about each filesystem.
2015-06-26 02:57:42 +03:00
Benoit Dejean
e0244ad3fc
Don't try to print a NULL hash_table.
2015-06-26 02:57:41 +03:00
Benoit Dejean
0a94dc7992
Display inode number without zero padding.
2015-06-26 02:57:41 +03:00
Benoit Dejean
1f41349a7e
Fix format for permissions. Display mappings' sizes. Avoid duplicating formatting code.
2015-06-26 02:57:41 +03:00
Benoit Dejean
548f104f35
If no argument is given, defaults to self. When self-testing, try to mmap some files as an example.
2015-06-26 02:57:41 +03:00
Benoit Dejean
e2348c24a0
When pretty-printing an array, don't display 0 elements.
2015-06-26 02:57:41 +03:00
Robert Roth
7a3414d002
Update old FSF address.
...
https://bugzilla.gnome.org/show_bug.cgi?id=721514
2014-08-20 04:44:27 +03:00
Ryan Lortie
e682094418
examples: don't override LINK and other variables
...
Defining our own LINK causes us to run into some trouble with LDFLAGS,
which commit 16bb5c8075
already
demonstrated.
LDFLAGS does need to be included here, but it's probably even easier to
just use the default value.
https://bugzilla.gnome.org/show_bug.cgi?id=724195
2014-02-20 20:58:16 -05:00
Robert Roth
38bfee6739
pprint example extended to print cpu info
2013-12-09 04:02:21 +02:00
Robert Roth
16bb5c8075
Fixed automake warning
2013-08-22 01:30:29 +03:00
Chris Kühl
b40f210d03
Fix build issue for strict linkers.
...
Closes Bug #644599 .
2011-03-14 16:35:09 +01:00
Benoît Dejean
ab3f8f58ef
Updated example.
...
svn path=/trunk/; revision=2782
2008-10-24 19:28:51 +00:00
Benoît Dejean
ce23ce407c
Improved example.
...
svn path=/trunk/; revision=2758
2008-06-23 22:07:26 +00:00
Benoît Dejean
229eab1213
Updated example to display read/write counters.
...
svn path=/trunk/; revision=2756
2008-06-22 10:50:29 +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
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
87a80ba430
Fixed warnings about proclist returning pid_t.
...
svn path=/trunk/; revision=2728
2008-04-03 16:29:55 +00:00
Benoît Dejean
b058565419
Displays all fs.
...
svn path=/trunk/; revision=2681
2007-10-17 20:51:40 +00:00
Benoît Dejean
665d65d164
Fixed printf format overflow.
...
svn path=/trunk/; revision=2668
2007-10-01 21:11:38 +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