summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-10-17process: add missing licenseHEADmasterLukasz Stanislawski2-1/+17
Change-Id: Ica09216dc213f6b914e20544d2c6a352ed54a2ad
2018-08-16procfs: check stream errorLukasz Stanislawski1-12/+15
Theoretically there might be a situation when stream error occured but procfs_read_process_cmdline func will return 0 (no error) and NULL as cmd line. This patch prevents such situation by returning error code in such scenarios. Change-Id: I7b02dd50fbd7a17ab8ba7cdafb28ea5e785bb22a
2018-08-02ipc: use seconds instead of milliseconds by defaultLukasz Stanislawski1-1/+1
Change-Id: I5e3ec60bfc89c1a1ee93a05f0cd1339aed78a4d4
2018-08-02config: change matchers to filterLukasz Stanislawski4-21/+25
Change name from matcher to filter. Now if no filter is defined, the PROCESS task will return all available process info. Change-Id: Ia26df85dbb6a7e48e4ca3557d6ff7f1e8c0b998f
2018-07-26procfs: improve parsing of stat fileLukasz Stanislawski1-21/+49
In rare situation when process could have malicious name containing some tricky characters like whitespaces and numbers - the parsing result may be wrong. This patch fixes this issue by loading whole stat file into memory and then proceed with parsing. Change-Id: Iede6e0b6d1362a56449e1a53a0348f6cd7b4f768
2018-07-25report-generator: update schemasLukasz Stanislawski5-12/+15
Change-Id: I8caf912d4b4a4c800cad784d8a52b23a32c913ec
2018-07-25scheduler: do not log error when items are nullLukasz Stanislawski1-2/+2
Change-Id: I51dec8fe498c1b9b6fc385cbe899f4d020756a82
2018-07-25report-generator-top: change sorting conditionLukasz Stanislawski1-2/+2
Change-Id: I3a6a71d0ec24ef55e51ccedf218212dbdb90405a
2018-07-25task-factory: refactorLukasz Stanislawski1-215/+81
Remove code duplication. Change-Id: I60adf02a3134d402a3bf0c1bdd12e4eb725a0844
2018-07-25remove unsued code after refactorLukasz Stanislawski8-423/+1
Change-Id: I8d08ab69d195bbee5aea8abd915b9342fa0fda8b
2018-07-25report-generator: refactor top generatorLukasz Stanislawski9-421/+308
- Move top generator to separate file - remove "target" from top generator Change-Id: I5eedcd44f5eaf959328fdc96562d0996a28bae0d
2018-07-25report-generator: move process generator to separate fileLukasz Stanislawski6-146/+189
Change-Id: I4dfa0b6c692e89ff259dba95378e2dbf94977cfe
2018-07-25report-generator: move load_avg generator to separate fileLukasz Stanislawski7-87/+136
Change-Id: I21df30c3c57d78a938bd1d177f3aa988c170de40
2018-07-25report-generator: move system_generator to separate fileLukasz Stanislawski12-88/+138
Change-Id: If06549372f095047fe52395667e9dc249970338e
2018-07-25report-generator: refactor load_avg generatorLukasz Stanislawski4-20/+120
Change-Id: I7a2c41d56e6bdbd65eb909a2ae9fc35bdcd47fd3
2018-07-25report-generator: refactor system_generatorLukasz Stanislawski6-80/+161
Introduce new generic report_generator_t. Change-Id: Ib2bdb246413542e08dc22fad22352639ccf253c6
2018-07-24report-generator: reafactor process generatorLukasz Stanislawski14-358/+295
Change-Id: Ic1664627b6562f78e7b34d70a2bbdb45f0e07f4a
2018-07-23report-generator: refactor system reportLukasz Stanislawski9-142/+32
report cpu and memory usage at once, remove "target" config option. Change-Id: I5ad40cff0733ea3c8ee258fa9854ea9d17fa95e0
2018-07-19stats: rename to sys-stats + refactorLukasz Stanislawski10-374/+272
Make stats module handle only system-wide statistics. Change-Id: If9b391e7a635ec3185a3459a25ed49c758721f98
2018-07-19process: micro optimizationLukasz Stanislawski2-8/+6
Change-Id: Ib21b5172763663d83e160016f645e276a8c0ad88
2018-07-19appinfo-provider: fix crash on iterator freeLukasz Stanislawski1-2/+2
Change-Id: I6c9b3f61441185b936d91a16113fff35c6319d5f
2018-07-19report-generator: remove interval paramLukasz Stanislawski3-48/+15
The interval parameter was unused in fact, so remove it to simplify code. Change-Id: Ic527f753773f2a0f482398a5a43c26859aadfae3
2018-07-19do not null-check before freeLukasz Stanislawski2-3/+3
Change-Id: I6388c069fd659808060d25d39d6c77abe32d6791
2018-07-18config: fixed naming, deleted empty config.c fileMichal Kolodziejski4-5/+5
Change-Id: I31dd633e5df8fca2f624740f4a55e2053b514d97 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-17top generator related fixesLukasz Stanislawski5-11/+12
Change-Id: Ic4dd1274a976da898c007e8a5a0e893c17ed6a68
2018-07-17clock: refactor API for most common use casesLukasz Stanislawski5-19/+22
Change-Id: I36e38d424d25443561db10b0b7d28698677a6ca8
2018-07-17process: fixesLukasz Stanislawski1-1/+3
- implement getting appid - return memory as KiB not bytes Change-Id: I21e4af8c8627ae52a6be8afb77eb1a03df26166b
2018-07-17refactor: removed app report, added app_id to process reportMichal Kolodziejski6-78/+62
Change-Id: I7b01b1c1a3901c0d1adbbbf129dbd6f963f3c494 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-17process: read memory from stat instead of smapsLukasz Stanislawski5-29/+36
Change-Id: Idf095953b96b929cc76417f35ccc7c925fd2af96
2018-07-17procfs: refactor namingLukasz Stanislawski4-72/+54
Make procfs functions & structures names map exeacly to filenames from /proc/ Change-Id: Ic3635f4db29be194ebfc97d107fc71cd82d2df1b
2018-07-16refactor: merged process cpu and mem reports into one structMichal Kolodziejski4-24/+15
Change-Id: I66b3c8b9c1b9461abc16e617968effabf5946de5 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-16refactor: merged system cpu and mem reports into one structMichal Kolodziejski6-26/+18
Change-Id: I2c5e8ae3d8ea520c4ed86233ccde5f6309c81c11 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-16refactor: removed percpu reportMichal Kolodziejski3-40/+0
Change-Id: Ic0aced66216ff37e11ad5cbd013f330c379807e7 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-16report-generator: implement top report generatorLukasz Stanislawski20-128/+1123
This patch adds additional objects: proc-scanner - for scanning whole /proc/ dir process - to gather information from /proc/<pid>/* Change-Id: Ic0ad58fb9a0ae59e9390b3d109440d91d25e90da
2018-07-16ipc: integrated with ttsdMichal Kolodziejski2-9/+66
Change-Id: I08ee3b7a1e6eaeba8c37835129d78221bb62e6f5 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-16ipc: integrated with projectMichal Kolodziejski9-84/+87
Change-Id: I0bf64847369d7969abad3fa80760ae7d9e76da70 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-13ipc: counter implementationMichal Kolodziejski2-5/+33
Change-Id: Ib0e58ad1afacceb75749e862adc43e618e7a8f6f Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-13ipc: apiMichal Kolodziejski3-0/+84
Change-Id: I708fd42d26c6f604cc48ceef253e054dd3cb03ad Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-10Merge "main: implementation"Lukasz Stanislawski3-2/+74
2018-07-10main: implementationMichal Kolodziejski3-2/+74
Change-Id: Ifc140f9d3ed40ba1fd347a1ec52526ab84004d7b Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-09report-generator: move clock func to seaprate headerLukasz Stanislawski4-21/+116
Use realtime clock for report time. Change-Id: I4623ef15d9c5b842077035525248015051b9e34b
2018-07-06config: added total_durationMichal Kolodziejski10-13/+61
Change-Id: I73700bfbd122980aa865c80a7147954873fcbf31 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-05Merge "report-json-serializer: app and top serializers"Lukasz Stanislawski4-12/+210
2018-07-05report-json-serializer: app and top serializersMichal Kolodziejski4-12/+210
Change-Id: Iecc773aecbc6f44d404e7edd4eea13e62868683f Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-07-03procfs: add reading cmdline and exeLukasz Stanislawski2-0/+109
Change-Id: Ibf7e126b86ddb70144448f87da167a55a4dfb7cf
2018-07-02report-generator: refactorLukasz Stanislawski4-126/+324
Move the statistic calculation logic out-of report-generator. Change-Id: I4993271bc9e0dbb0dd665f48f6fe66933e7b8bc3
2018-07-02appinfo-provider: implementation part 2Michal Kolodziejski2-20/+89
Change-Id: Ib1f4eaa08058488bde38d7bf9f82a65e446baaa6 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
2018-06-29Merge "report-generator: implement app_report_generator"Lukasz Stanislawski6-59/+125
2018-06-29report-generator: implement app_report_generatorLukasz Stanislawski6-59/+125
Change-Id: I8820b70f3f4fbca245276ec99b49c1de5a7eb8b3
2018-06-29procfs: implement pid iteratorLukasz Stanislawski2-0/+125
Change-Id: I1fa1db698ba6e71778bee11dc606c9fa3b503f13