1. 28 Jan, 2018 2 commits
    • Hisham Muhammad's avatar
      Linux: fix thread flags · 7dd971e3
      Hisham Muhammad authored
      7dd971e3
    • Hisham Muhammad's avatar
      Core/Linux: reorganize process reading loop · 66909bf5
      Hisham Muhammad authored
      Move functions that read process data into LinuxProcess.c
      and change flow from a monolithic `ProcessList_scan ->
      ProcessList_goThroughEntries` into the following:
      
      ```
      ProcessList_scan -> (Linux)ProcessList_goThroughEntries ->
      ProcessList_scanProcess -> (Linux)Process_update
      ```
      
      This will allow hooking plugins into the scanning
      process.
      
      Other platforms need to be similarly reworked.
      66909bf5
  2. 04 Dec, 2017 1 commit
    • André Carvalho's avatar
      Adds support for linux delay accounting (#667) · b7b66b76
      André Carvalho authored
      Adds support for showing columns with linux delay accounting.
      
      This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan.
      b7b66b76
  3. 27 Jul, 2017 1 commit
  4. 05 Jul, 2017 1 commit
  5. 04 Feb, 2017 1 commit
  6. 31 Jan, 2017 1 commit
  7. 01 Oct, 2016 1 commit
  8. 20 Feb, 2016 1 commit
  9. 14 Feb, 2016 1 commit
    • Hisham's avatar
      Disable the syscall on systems that don't have it. · 35657208
      Hisham authored
      Got a report in #397 that htop runs in NetBSD
      masquerading as Linux and using a compatibility /proc
      (like we used to in FreeBSD) and that it builds fine
      apart from this syscall.
      35657208
  10. 02 Feb, 2016 1 commit
  11. 07 Sep, 2015 1 commit
    • Christian Hesse's avatar
      fix calloc() calls · e8970b6f
      Christian Hesse authored
      * size_t nmemb (number of elements) first, then size_t size
      * do not assume char is size 1 but use sizeof()
      * allocate for char, not pointer to char (found by Michael McConville,
        fixes #261)
      e8970b6f
  12. 20 Aug, 2015 1 commit
  13. 23 Jul, 2015 1 commit
  14. 09 Apr, 2015 1 commit
  15. 01 Apr, 2015 1 commit
  16. 17 Mar, 2015 1 commit
  17. 16 Mar, 2015 2 commits
  18. 15 Mar, 2015 1 commit
  19. 08 Mar, 2015 2 commits
  20. 23 Feb, 2015 2 commits
  21. 20 Feb, 2015 1 commit
  22. 22 Jan, 2015 1 commit
  23. 24 Nov, 2014 2 commits