31 Commits

Author SHA1 Message Date
Victor Rodriguez 93c7d3acd3 Merge pull request #8 from VictorRodriguez/develop-fix
Fix to bug error: non-void function return
v1.3
2018-04-12 17:36:04 -05:00
Victor Rodriguez f685024270 Fix to bug error: non-void function return
This patch fix bug reported by

src/main.c:129:17: error: non-void function 'do_one_process'
    should return a value [-Wreturn-type]
                return;

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2018-04-12 14:33:26 +00:00
Auke Kok f2e96c9511 Fix, publish man page, bump release version.
This uses `ronn` to create a developer-maintained manual
page. The output is pushed into git, such that a normal
distribution compilation does not need to have `ronn` installed
to do a full install. Developers will need to check in the
psstop.1 file after modifying the psstop.1.md file
v1.2
2018-03-26 11:53:42 -07:00
Victor Rodriguez 510e0e563b Add sorting to PSSTOP using realloc
This patch makes use of realloc array and qsort() to display process
sorted. This helps users to easily find process consuming more
proportional set size memory on the OS.

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
v1.1
2018-03-23 18:26:30 +00:00
Victor Rodriguez 9068d7c3bc Merge pull request #6 from phmccarty/readme-fixes
Fix some typos/grammar
v1.0
2017-07-05 17:14:14 -07:00
Patrick McCarty 45f42dc1db Fix typos/grammar in the man page
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2017-07-05 14:18:37 -07:00
Patrick McCarty d42a243aa2 Fix some typos/grammar in the README
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2017-07-05 14:13:04 -07:00
vrodri3 c86e556819 Fix warning for -Wparentheses
Signed-off-by: vrodri3 <victor.rodriguez.bahena@intel.com>
2017-07-05 09:47:38 -05:00
Victor Rodriguez 1b68121849 Merge pull request #4 from dtzWill/feature/use-cmdline
Add '-c' flag to support reading process name from cmdline.
2017-07-05 07:07:16 -07:00
Victor Rodriguez 20125a2b5f Merge branch 'master' into feature/use-cmdline 2017-07-05 07:00:58 -07:00
Victor Rodriguez 2f15fb0349 Merge pull request #3 from dtzWill/fix/tweak-width
main.c: Extend PSS column by 1 character to fit >= 100MB
2017-07-05 06:53:10 -07:00
Victor Rodriguez f666a80533 Merge pull request #2 from dtzWill/fix/remove-unused-verbose-flag
main.c: Remove unused '-v'/verbose flag
2017-07-05 06:52:52 -07:00
Will Dietz 4f5bac46d2 main.c: Extend PSS column by 1 character to fit >= 100MB 2017-06-30 09:14:13 -05:00
Will Dietz d6cfef9e4a Add '-c' flag to support reading process name from cmdline.
Useful with processes started using fexecve or execveat.
2017-06-30 09:05:40 -05:00
Will Dietz bc058ea073 main.c: Remove unused '-v'/verbose flag 2017-06-30 08:39:31 -05:00
Victor Rodriguez 3772b98a7e Merge pull request #1 from ignaciohg/correct-readme
Added a missing step in the README
2017-06-01 10:29:36 -05:00
Ignacio Hernandez 0d7c237165 Added basic rpm generation capabilities
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2017-05-31 20:36:45 -07:00
Ignacio Hernandez 2e0c6df22b Added missing step to installation instructions
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2017-05-31 19:13:26 -07:00
Victor Rodriguez 2a456fb8b6 Fix unncesary print of help with oen arg
This commit remove the unncesary print of the help with argc == 1

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-12 15:33:03 +00:00
Victor Rodriguez 125efc0ebd Adding Victor Rodriguez to authors
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-02 20:22:07 +00:00
Victor Rodriguez b22de84fda Add help and verbose arg options
This patch adds a simple help menu to interact with psstop

    psstop$ ./psstop -h

        Help :
            -h : Print this help
            -p : Process name to measure memory usage
            -v : Verbose

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-02 20:21:57 +00:00
Victor Rodriguez 5a8a6d70c0 Fix printing format in a pretty way
This patch improve the way that psstop prints the results:

Process Name         PID   : Size in KB

[...]

systemd-udevd        23356 : 0      Kb
systemd              24050 : 2183   Kb
(sd-pam)             24051 : 0      Kb
tmux: server         31523 : 1087   Kb
bash                 31524 : 4      Kb
bash                 31525 : 4      Kb
vim                  31684 : 4      Kb

Total is 19871Kb (181 processes)

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-01 23:02:43 +00:00
Victor Rodriguez 4567cc55a7 Add man page
This patch add a md file consumed by ronn(1) to generate man pages.
There is still some other comand line and funtions that need to be added
, however this first version is good for now

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-01 20:55:40 +00:00
Victor Rodriguez 7893710183 Add README
This is a basic README for psstop, there are incoming patches for adding
extra functions and proper arguments like : help, version,
verbose or some others common options in sw tools

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-01 19:47:45 +00:00
Victor Rodriguez af6a26b9a3 Changing headers of source code
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:53:34 +00:00
Victor Rodriguez 50799cb7fe renaming LICENSE
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:27:25 +00:00
Victor Rodriguez 4a6cc3b5e1 Add LICENSE file
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:23:04 +00:00
Victor Rodriguez 79d1823c95 Clean with Clang Format
Fixing Clang format and valgrind memory leaks:

==1721==    definitely lost: 0 bytes in 0 blocks
==1721==    indirectly lost: 0 bytes in 0 blocks
==1721==      possibly lost: 0 bytes in 0 blocks

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:18:32 +00:00
Victor Rodriguez da4c09a2e1 fix warnings in prints and fgets
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:18:25 +00:00
Arjan van de Ven 557003d171 latest version 2016-11-30 19:18:19 +00:00
Arjan van de Ven b47d54ce51 empty project 2016-11-30 19:18:02 +00:00