summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Avoid some deprecated networking functionsDavid King2023-01-091-7/+3
| | | | | | | | | | | | 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
* Add sysinfo exampleJames Dominic P. Guana2022-03-281-3/+3
| | | | | Retrieve cpu model via hashtable & number of logical cpu via exposed variable Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
* Add sysinfo exampleJames Dominic P. Guana2022-03-281-2/+3
| | | | | Retrieve cpu model via hashtable & number of logical cpu via exposed variable Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
* Exposes the processor modelDr. James Dominic P. Guana2022-03-282-2/+8
| | | | | | Accessing processor model becomes easier Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
* Add processor modelDr. James Dominic P. Guana2022-03-281-1/+1
| | | | | | Add processor model Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
* Add processor modelDr. James Dominic P. Guana2022-03-282-1/+45
| | | | | | Add processor model Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
* Revert "Revert "Code clean up and add example""James Dominic P. Guana2021-04-232-0/+68
| | | | This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
* Revert "Code clean up and add example"Michael Catanzaro2020-11-062-68/+0
| | | | This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
* Code clean up and add exampleJames Dominic P. Guana2020-11-042-0/+68
|
* Check if sbrk is availableTing-Wei Lan2020-01-201-0/+6
| | | | | | | | | | | | 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
* Try to fix all format flags in pprint example.Benoît Dejean2018-03-074-104/+109
|
* Merge branch 'wip/diskio'Robert Roth2017-05-234-3/+69
|\
| * Prepended disk io struct fields with disk_ prefixRobert Roth2017-05-121-1/+1
| |
| * Renamed procdiskio to procioRobert Roth2017-05-123-10/+10
| |
| * Add proc_diskio in sysdeps and timings tests.Benoît Dejean2017-02-242-2/+25
| |
| * Also display the flags value.Benoît Dejean2017-02-241-1/+1
| |
| * New API to retrieve process io stats, with Linux implementationRobert Roth2017-02-122-1/+44
| |
* | Better output format for arrays.Benoît Dejean2017-02-161-6/+7
|/
* Use upstream gettext intead intltool/glib-gettextJavier Jardón2016-07-121-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=768704
* Turn the proclist example into a minimal `ps`.Benoit Dejean2015-07-181-9/+25
|
* Fix signedness issue when printing HW address.Benoit Dejean2015-07-151-1/+1
|
* Implement a GNU `free -m` clone.Benoît Dejean2015-07-143-24/+47
|
* Add proc_affinity example.Benoît Dejean2015-07-101-0/+23
|
* Drop --with-libgtop-smp.Benoît Dejean2015-07-101-4/+0
| | | | No code uses this switch.
* Fixed build problem with procmap exampleRobert Roth2015-06-261-0/+2
|
* Display self-timings using `ps`.Benoit Dejean2015-06-261-2/+22
|
* Print more fields about each filesystem.Benoit Dejean2015-06-261-12/+29
|
* Don't try to print a NULL hash_table.Benoit Dejean2015-06-261-3/+5
|
* Display inode number without zero padding.Benoit Dejean2015-06-261-2/+2
|
* Fix format for permissions. Display mappings' sizes. Avoid duplicating ↵Benoit Dejean2015-06-261-33/+19
| | | | formatting code.
* If no argument is given, defaults to self. When self-testing, try to mmap ↵Benoit Dejean2015-06-261-2/+36
| | | | some files as an example.
* When pretty-printing an array, don't display 0 elements.Benoit Dejean2015-06-261-8/+15
|
* Update old FSF address.Robert Roth2014-08-209-18/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* examples: don't override LINK and other variablesRyan Lortie2014-02-201-6/+0
| | | | | | | | | | | Defining our own LINK causes us to run into some trouble with LDFLAGS, which commit 16bb5c8075ae3d18fa3b19fdd1b479b4cf17a96b 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
* pprint example extended to print cpu infoRobert Roth2013-12-091-0/+34
|
* Fixed automake warningRobert Roth2013-08-221-2/+2
|
* Fix build issue for strict linkers.Chris Kühl2011-03-141-0/+2
| | | | Closes Bug #644599.
* Updated example.Benoît Dejean2008-10-241-9/+66
| | | | svn path=/trunk/; revision=2782
* Improved example.Benoît Dejean2008-06-231-9/+15
| | | | svn path=/trunk/; revision=2758
* Updated example to display read/write counters.Benoît Dejean2008-06-221-4/+6
| | | | svn path=/trunk/; revision=2756
* New API to retrieve process CPU affinity.Benoît Dejean2008-05-242-1/+37
| | | | | | Linux implementation. svn path=/trunk/; revision=2748
* Updated glibtop_get_proc_open_files API so that it also list IPv6 TCP sockets.Benoît Dejean2008-04-211-0/+7
| | | | | | | | | | | | 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
* Fixed warnings about proclist returning pid_t.Benoît Dejean2008-04-034-6/+7
| | | | svn path=/trunk/; revision=2728
* Displays all fs.Benoît Dejean2007-10-171-1/+1
| | | | svn path=/trunk/; revision=2681
* Fixed printf format overflow.Benoît Dejean2007-10-011-2/+2
| | | | svn path=/trunk/; revision=2668
* git-svn sucks. Kill r2609Benoît Dejean2007-06-252-37/+1
| | | | svn path=/trunk/; revision=2611
* Fixed smaps parsing with linux > 2.6.21.Benoît Dejean2007-06-251-3/+3
| | | | | | | Closes #449595. Improved example. svn path=/trunk/; revision=2610
* New API : glibtop_get_proc_affinity.Benoît Dejean2007-06-252-1/+37
| | | | | | Implemented for linux. svn path=/trunk/; revision=2609
* Fixed wd and new simple mem example.Benoît Dejean2007-05-194-1/+41
| | | | | | | | | | | | 2007-05-19 Benoît Dejean <benoit@placenet.org> * Makefile.am: * mem.c: (main): * wd.c: (main): Fixed wd and new simple mem example. svn path=/trunk/; revision=2593
* Added missing filesBenoît Dejean2007-05-131-0/+31
| | | | svn path=/trunk/; revision=2580