summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-08-09release 0.6HEADv0.6masterJiri Kastner2-5/+8
new functionality, new version :) Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2018-08-09python-linux-procfs: Add some functions for affinity from tunaJohn Kacur1-0/+16
Add cannot_set_affinity and cannot_set_thread_affinity from tuna Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-21release 0.5.1v0.5.1Jiri Kastner2-1/+2
trying to keep setup.py and rpm specfile coherent :) Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-21rpm: missed snippet in specfile for python2 onlyJiri Kastner1-0/+3
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-21setup.py: added scripts to setup.pyJiri Kastner3-2/+7
added scripts to setup.py, pflags renamed and added to setup.py Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20rpm: bump up version to 0.5v0.5Jiri Kastner3-16/+57
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Use `setuptools.setup()` instead of distutilsLumir Balhar1-1/+2
We need to specify new dependency on `six` module with `install_requires` which is supported via setuptools. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Use `range()` function from six.movesLumir Balhar1-0/+3
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: `print`, from statement to functionLumir Balhar3-17/+19
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Fix usage of `map()` functionLumir Balhar2-4/+5
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Use absolute import for import from local modulesLumir Balhar2-5/+11
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: `open()` is preferred way for opening files.Lumir Balhar2-10/+10
Moreover, `file()` is not available in Python 3. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Fixes related to new Python 3 dict views.Lumir Balhar3-19/+19
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: `reduce()` is moved to `functools` module in Python 3Lumir Balhar1-0/+1
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-11-20python3: Use `in` operator instead of `has_key()` method.Lumir Balhar2-7/+7
Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2017-09-26rpm: fixed Source, URL, bumped versionv0.4.11Jiri Kastner1-3/+6
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2016-12-22New release: 0.4.10v0.4.10Jiri Kastner1-1/+5
Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2016-12-22python-linux-procfs: bitmasklist_test.py Add the first unit testJohn Kacur1-0/+67
This adds the first unit test to python-linux-procfs It adds the bitmasklist_test for testing the function bitmasklist, which is called by parse_affinity. Unlike parse_affinity, the number of cpus is not detected, so the unit test can simulate different numbers of cpus. This is an expanded form of a reproducer from Jozef Bacik from Bugzilla 1365902 If we add more unit tests in the future (we should), then we can consider some kind of python package scheme, but for now this can live in the base directory. Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2016-12-22fix parse_affinity for CPU numbers greater than 31Jozef Bacik1-10/+6
The function parse_affinity reports wrong results for CPU numbers greater than 31. The problem is caused by the function bitmastlist which parse_affinity calls. The fix treats the inpput line as a long hexbitmask instead of an array in order to produce correct results Signed-off-by: Jozef Bacik <jobacik@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Jiri Kastner <jkastner@redhat.com>
2015-10-09pidstats: fix documentation indentationJiri Kastner1-11/+11
Signed-off-by: Jiri Kastner <jkastner@redhat.com> Signed-off-by: John Kacur <jkacur at redhat.com>
2015-10-08New release: 0.4.9v0.4.9Arnaldo Carvalho de Melo2-2/+7
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-08pidstats: Add documentation for the reload() methodArnaldo Carvalho de Melo1-0/+14
Mention python-perf as an alternative way of noticing thread lifetime events (FORK, EXIT). Requested-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02interrupts: Add documentation about 'cpu' fieldArnaldo Carvalho de Melo1-0/+5
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02Add values() methods to all classes with dictsArnaldo Carvalho de Melo1-0/+30
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02Add items() method to all the classes with dictsArnaldo Carvalho de Melo1-0/+24
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@edhat.com>
2015-10-02cpustat: Add __repr__ methodArnaldo Carvalho de Melo1-0/+9
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02cmdline: Document itArnaldo Carvalho de Melo1-1/+20
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02cmdline: Add dict methodsArnaldo Carvalho de Melo1-0/+6
So that we can use procfs.cmdline()["BOOT_IMAGE"], for instance. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-10-02Document smaps_libArnaldo Carvalho de Melo1-0/+9
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-09-01smaps: Provide usage example in the class documentationArnaldo Carvalho de Melo1-0/+19
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-09-01smaps: Add __len__ methodArnaldo Carvalho de Melo1-0/+3
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-09-01smaps: Add __getitem__ methodArnaldo Carvalho de Melo1-0/+3
So that we can do: >>> import procfs >>> processes = procfs.pidstats() >>> sshd = processes.find_by_name("sshd") >>> print sshd_maps[0].perms >>> sshd_maps = procfs.smaps(sshd[0]) >>> print sshd_maps[0].perms r-xp I.e. access it like an array. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-09-01smaps: Add documentationArnaldo Carvalho de Melo1-0/+5
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-31cpusstats, cpuinfo: Provide documentationArnaldo Carvalho de Melo1-0/+37
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-26interrupts: Document classArnaldo Carvalho de Melo1-0/+48
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-26procfs: Document the process pidstats classesArnaldo Carvalho de Melo1-0/+34
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-25pidstat: Add missing documentationArnaldo Carvalho de Melo1-0/+44
Getting the process flags documentation from the kernel include/linux/sched.h file, that is what 'man procfs' references when describing the processor flags in /proc/PID/stat. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-12pidstatus, process: Provide class level documentationArnaldo Carvalho de Melo1-0/+42
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-05pidstat: Provide class level documentationArnaldo Carvalho de Melo1-0/+25
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-05interrupts: Fix parsing of users fieldArnaldo Carvalho de Melo1-1/+1
It is the last field, in CSV format, and that was what was being parsed, but in a convoluted way, fixing it also simplified it. Buggy: [root@zoo ~]# tuna -Q # users affinity 0 2-edge timer 0,1,2,3 8 8-edge rtc0 0,1,2,3 9 9-fasteoi acpi 0,1,2,3 17 17-fasteoi brcmsmac 0,1,2,3 22 22-fasteoi ehci_hcd:usb4 0,1,2,3 23 23-fasteoi ehci_hcd:usb3 0,1,2,3 26 2146304-edge pciehp 0,1,2,3 27 2162688-edge pciehp 0,1,2,3 28 2179072-edge pciehp 0,1,2,3 29 2195456-edge pciehp 0,1,2,3 30 512000-edge 0000:00:1f.2 0,1,2,3 31 327680-edge xhci_hcd 0,1,2,3 32 32768-edge i915 0,1,2,3 33 360448-edge mei_me 0,1,2,3 34 2621440-edge thunderbolt 0,1,2,3 35 442368-edge snd_hda_intel 0,1,2,3 [root@zoo ~]# Fixed: # tuna -Q # users affinity 0 timer 0,1,2,3 8 rtc0 0,1,2,3 9 acpi 0,1,2,3 17 brcmsmac 0,1,2,3 22 ehci_hcd:usb4 0,1,2,3 23 ehci_hcd:usb3 0,1,2,3 26 pciehp 0,1,2,3 27 pciehp 0,1,2,3 28 pciehp 0,1,2,3 29 pciehp 0,1,2,3 30 0000:00:1f.2 0,1,2,3 31 xhci_hcd 0,1,2,3 32 i915 0,1,2,3 33 mei_me 0,1,2,3 34 thunderbolt 0,1,2,3 35 snd_hda_intel 0,1,2,3 # Reported-by: Flavio Leitner <fbl@redhat.com> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1245677 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-23New release: 0.4.8v0.4.8Arnaldo Carvalho de Melo2-2/+6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-15pidstat: Support COMM names with spacesArnaldo Carvalho de Melo1-1/+2
The load method was just splitting the fields using space as the separator, but since some COMM names started having spaces... We better use the () as the COMM "quotes", using spaces as the separator for the remaining fields. Reported-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-11New release: 0.4.7v0.4.7Arnaldo Carvalho de Melo3-2/+12
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-11pflags: Add command line utility to print processor flagsArnaldo Carvalho de Melo1-0/+65
E.g.: $ ./pflags-cmd.py ssh*,bash,6941 1278 sshd RANDOMIZE|SUPERPRIV|USED_ASYNC|USED_MATH 2692 bash RANDOMIZE|USED_ASYNC|USED_MATH 2919 bash RANDOMIZE|SUPERPRIV|USED_ASYNC|USED_MATH 3116 bash RANDOMIZE|USED_ASYNC|USED_MATH 3149 bash RANDOMIZE|USED_ASYNC|USED_MATH 3384 bash RANDOMIZE|USED_ASYNC|USED_MATH 3579 bash RANDOMIZE|USED_ASYNC|USED_MATH 3834 ssh RANDOMIZE|USED_ASYNC|USED_MATH 4372 bash RANDOMIZE|USED_ASYNC|USED_MATH 5024 bash RANDOMIZE|USED_ASYNC|USED_MATH 6339 bash RANDOMIZE|USED_ASYNC|USED_MATH 6941 vim FREEZER_SKIP|RANDOMIZE|USED_ASYNC|USED_MATH $ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-11pidstat: Add missing PF_ flagsArnaldo Carvalho de Melo1-0/+10
Adding the ones found in the v4.1-rc kernel. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-11pidstat: Fix process_flags() methodArnaldo Carvalho de Melo1-1/+1
It was referencing self.flags, that doesn't exists, fix it by making it access self.fields["flags"] instead. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-10interrupts: Do not refrain from parsing the irq affinities for !rootArnaldo Carvalho de Melo1-2/+0
I.e. let the OS be the one to decide if access to this file is allowed or not, and non root users can see this, at least around 4.1-rc times: Running: procfs/procfs.py: 31: {'affinity': [0, 1, 2, 3], 'type': 'PCI-MSI-edge', 'cpu': [178564, 0, 285828, 0], 'users': ['xhci_hcd']} 30: {'affinity': [0, 1, 2, 3], 'type': 'PCI-MSI-edge', 'cpu': [342630, 0, 197229, 0], 'users': ['0000:00:1f.2']} 35: {'affinity': [0, 1, 2, 3], 'type': 'PCI-MSI-edge', 'cpu': [858, 0, 565, 0], 'users': ['snd_hda_intel']} 34: {'affinity': [0, 1, 2, 3], 'type': 'PCI-MSI-edge', 'cpu': [306, 0, 44, 0], 'users': ['thunderbolt']} And now 'tuna -Q' works for non root users: [acme@zoo python-linux-procfs]$ ../tuna/tuna-cmd.py -Q # users affinity 0 timer 0,1,2,3 8 rtc0 0,1,2,3 9 acpi 0,1,2,3 17 17-fasteoi brcmsmac 0,1,2,3 22 22-fasteoi ehci_hcd:usb4 0,1,2,3 23 23-fasteoi ehci_hcd:usb3 0,1,2,3 26 pciehp 0,1,2,3 27 pciehp 0,1,2,3 28 pciehp 0,1,2,3 29 pciehp 0,1,2,3 30 0000:00:1f.2 0,1,2,3 31 xhci_hcd 0,1,2,3 32 i915 0,1,2,3 33 mei_me 0,1,2,3 34 thunderbolt 0,1,2,3 35 snd_hda_intel 0,1,2,3 [acme@zoo python-linux-procfs]$ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-10pidstat: Add PF_NO_SETAFFINITY constArnaldo Carvalho de Melo1-1/+2
For the stat flag that means that userland is not allowed to meddle with cpus_allowed, i.e. with the thread's smp affinity, via sched_setaffinity. This indeed has the same value as PF_THREAD_BOUND, see the kernel sources for an explanation, but basically was in this cset: commit 14a40ffccd6163bbcd1d6f32b28a88ffe6149fc6 Author: Tejun Heo <tj@kernel.org> Date: Tue Mar 19 13:45:20 2013 -0700 sched: replace PF_THREAD_BOUND with PF_NO_SETAFFINITY PF_THREAD_BOUND was originally used to mark kernel threads which were bound to a specific CPU using kthread_bind() and a task with the flag set allows cpus_allowed modifications only to itself. Workqueue is currently abusing it to prevent userland from meddling with cpus_allowed of workqueue workers. --------------------------------------------------------------- So add the new const but keep the old one, we may have some tool out there using it. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-05-28procfs: Add a __contains__ method to dict classesGuy Streeter1-0/+15
Signed-off-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-06-07New release: 0.4.6v0.4.6Arnaldo Carvalho de Melo2-2/+6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-06-07procfs: Parse environment variablesJiri Kastner1-1/+12
Signed-off-by: Jiri Kastner <jkastner@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-04-05pidstats: Added support for parsing cgroups as a per thread attributePetr Oros1-0/+12
Signed-off-by: Petr Oros <poros@redhat.com>
2013-03-30smaps: Improve parsing of mmapsArnaldo Carvalho de Melo1-2/+7
Recent kernels (detected on 3.9.0-rc2) have a VmFlags field that has string flags that broke the detection of multiple memory maps. Fix it by checking for a ':' as the last character of the first token in the split() line. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2010-05-10rpm: Tag 0.4.5v0.4.5Arnaldo Carvalho de Melo2-2/+5
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2010-03-26pidstats: Catch more vanished processes casesArnaldo Carvalho de Melo1-7/+31
When the process vanishes after we got a list of pids that match some criteria, just catch it, remove it from the pid dictionary and continue. Reported-by: Clark Williams <williams@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-02-10rpm: More fixes from the fedora review processArnaldo Carvalho de Melo4-2/+347
Reviewed-by: Parag AN(पराग) <panemade@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-02-09Add shebangs and licensesv0.4.3Arnaldo Carvalho de Melo5-2/+72
Part of the fedora review process. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-02-09rpm: Fixup rpmlint warningsArnaldo Carvalho de Melo1-1/+2
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-01-28Makefile: Add clean targetArnaldo Carvalho de Melo1-0/+11
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-01-28rpm: Add missing changelog entry with changes since 0.4Arnaldo Carvalho de Melo1-0/+8
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-01-13rpm: bump to 0.4.2Arnaldo Carvalho de Melo1-1/+1
Thanks to Guy Streeter for letting me know about this problem. Signed-off-by: Arnaldo Carvalho de Melo <acme@doppio.ghostprotocols.net>
2009-01-09interrupts: Add find_by_user_regexv0.4.2Arnaldo Carvalho de Melo1-1/+12
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-12-08process: Always set the "cmdline" array, even if emptyv0.4.1Arnaldo Carvalho de Melo1-5/+2
So that we don't require the tools that use p-l-procfs to call load_cmdline everytime we refresh the list of processes, leaving parsing of /proc/cmdline to the last possible moment. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-12-08pidstats: Remove dead processes in find_by_name()Arnaldo Carvalho de Melo1-2/+9
Since we now defer looking at the contents till we really need to parse the files, we have to check if the process died in this method. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-12-08pidstats: Add process class to catch dict references for late parsingArnaldo Carvalho de Melo1-33/+44
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-12-03pidstats: Move the /proc/PID/{stat,status} parsing to classesArnaldo Carvalho de Melo1-37/+79
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-12-02pidstats: Introduce process_flags methodArnaldo Carvalho de Melo1-0/+12
Usage example: >>> import procfs >>> ps = procfs.pidstats() >>> for t in ps.find_by_name("sirq-net-tx/6"): ... print "%s: %s" % (t, ps.process_flags(t)) ... 85: ['PF_FORKNOEXEC', 'PF_NOFREEZE', 'PF_SUPERPRIV', 'PF_THREAD_BOUND'] >>> for t in ps.find_by_name("pdflush"): ... print "%s: %s" % (t, ps.process_flags(t)) ... 398: ['PF_FLUSHER', 'PF_FORKNOEXEC', 'PF_SWAPWRITE'] 399: ['PF_FLUSHER', 'PF_FORKNOEXEC', 'PF_SWAPWRITE'] >>> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-12rpm: Package .egg-info files if version is new enoughv0.4Arnaldo Carvalho de Melo1-0/+3
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-12rpm: v0.4Arnaldo Carvalho de Melo1-1/+4
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-12pidstats: Add per process flagsArnaldo Carvalho de Melo1-0/+34
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-07Makefile: add make rpmdevArnaldo Carvalho de Melo1-0/+8
To build an rpm without first commiting the latest changes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-05Makefile: Use --prefix in git-archiveArnaldo Carvalho de Melo2-2/+3
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-08-05Makefile: add rpmdirs target and trigger it when doing make rpmArnaldo Carvalho de Melo1-2/+8
Thanks to Jon Masters for pointing out this. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-06-13MANIFEST: add MakefileArnaldo Carvalho de Melo1-0/+1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-06-13Makefile: make rpmv0.3Arnaldo Carvalho de Melo2-1/+12
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-06-13cpustats: handle CPU hotplugArnaldo Carvalho de Melo1-6/+17
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-04-16[CPUSTAT]: 2.6.9 has only 8 fields in /proc/statArnaldo Carvalho de Melo1-4/+5
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-03-25[PROCFS] cpustats: allow specifying a filenameArnaldo Carvalho de Melo1-2/+3
So that we can experiment with files saved from different machines. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-03-20[CPUINFO]: Handle the non-multicore formatArnaldo Carvalho de Melo1-2/+3
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-03-20[CPUINFO]: Count number of sockets and coresArnaldo Carvalho de Melo1-4/+11
Number of cpus remains with the same algorithms, so for a 16 socket machine with dual core cpus with ht enabled we have: nr_sockets: 16 nr_cores: 32 nr_cpus: 64 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-02-26[PROCFS] pidstats: Fixup load_cmdline exception handlingArnaldo Carvalho de Melo1-1/+1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-02-26[PIDSTATS]: Check if process has vanished when accessing cmdline & tasks/Arnaldo Carvalho de Melo2-13/+21
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2008-02-25Created repo from files previously in ait.gitArnaldo Carvalho de Melo7-0/+608
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>