Description of problem: There is no method how to show control groups in top tool and it seems for me to be useful to have the option to show this data there.
Created attachment 408554 [details] a non-complete patch The work on the patch is/was in progress. There is something wrong with it, because top segfaults after some time when compiled with the patch, but I have not found out why. That is why this was not included in the distribution and why it still needs more work.
Dan - to make it easier: #define MAX_CGR_STRING 0x100 => it means 256 you declare char cgroups[MAX_CGR_STRING]; and call cgrlen = pid2cgroup(p->tgid,cgroups); => static int pid2cgroup(int pid, char * outbuf) so you have outpuf with max length of 256... No wonder why it segfaults if you have: while (( (c = fgetc(fd)) != EOF) && (counter<665)) { ... outbuf[counter++]=';'; ... } So few comments: Why char filename[48]; ? Why 665? (Yes, I don't like magic numbers...) Additionally, please use consistent indentation in the code - preferably with no tabs - just spaces. The rest of code is without tabs, so you are breaking its coding style. Also you have a few trailing spaces in your patch.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
ping - anything new with this issue?
Top is using alphabet for columns identification and there are 26 columns now. We need to choose new way to add new columns. We are currently working on patch merging across distributions. This bug should be part of this process after we merge already existing patches.
This feature is well supported by procps-ng (available in Fedora 18 and later). I'm closing this bug.