summaryrefslogtreecommitdiffstats
path: root/binding/task-manager-binding.c
AgeCommit message (Collapse)AuthorFilesLines
2019-11-22fix(task-manager-binding.c): remove unused variable i and ret_jsonicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.58.99.48.99.38.99.2Li Xiaoming1-3/+1
Bug-AGL: SPEC-2807 Change-Id: I66000e567f323c5a53954d1c6a7dcc193e13f89f Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-08-09Migration to binding V3José Bollo1-27/+28
Bug-AGL: SPEC-2745 Change-Id: I18f6ecb51719c1d7d2c2e16b10a475b527ad4daa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-05-17Fill in basic network statshalibut_7.99.1halibut/7.99.17.99.1Vitaly Wool1-0/+54
Per request from the front-end, provide IP statistics as found in /proc/net/netstat. Bug-AGL: SPEC-2403 Change-Id: I98214e0c187546f3c2c4a338d09357582d51b87f Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2019-05-03Fix error handlingVitaly Wool1-0/+2
Bail out immediately if fopen() fails, do not try to proceed. Change-Id: Ib3ca73b3aefbb7f3c6de799ff8676a1f13e5479e Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Bug-AGL: SPEC-2378
2019-04-08Implement average load request processingVitaly Wool1-0/+33
Per request from the front-end, provide system average load values as found in /proc/loadavg. Change-Id: Ia7a63684de16bd0dbadcd2eacedb9b2d56b138d8 Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2019-03-07Fill out extra info for a processVitaly Wool1-1/+54
Per request from the front-end, obtain extended information for the process specified by tid, and compose reply with that info. Change-Id: I514e20581b1a3513f68495b74e1f4c2f839870ad Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2019-02-05binding: add messageType string tagVitaly Wool1-0/+1
To be able to extend communication with the task manager frontend in future, add a sting tag "messageType" for the frontend to be able to distinguish between different types of replies. Change-Id: I3e36e8d1f4ec97dab007b0abdc5709dd1de22513 Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
2018-11-28Fix memory leaks and add 'kill' verbguppy_6.99.2guppy/6.99.26.99.2Vitaly Wool1-69/+98
Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com> Change-Id: Idf75bb1ce703300f9b918969289aba7df9b2a182
2018-08-17Importing agl-service-taskmanager codeYordan Dimitrov1-0/+179
The service queries /proc for system statistics data and collects data for all processes currently running on the system. The data for each consists of process name, process ID, user, system CPU usage, user CPU usage, memory and state. The data is then converted to JSON and sent to the requesting app. v1 - removed trailing whitespaces - added description in the README file - removed URL from config.cmake v2 - added project URL to config.cmake Change-Id: I7670c239191ee9b7333d5a383f1b2fcf6bc774c1 Signed-off-by: Yordan Dimitrov <y.dimitrov.14@gmail.com>