aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-08-29hook+trace: adds hookid and typeJosé Bollo4-219/+236
The hookid is a unic identifier for a hook event. Its purpose is to distinguish events that could match different filters: a same event has a same id. Also integrate the field "type" (of the event) in the trace event. Change-Id: I90b0b2d3a0846b673b993110d2752cc54db75bd8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afb-config Copies the values of option --execJosé Bollo1-2/+27
Not copying is not possible if the name of the process is changed. Change-Id: I52122c84234ac275975dae47c23c9d7240b82df8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29process-name: fix a warningJosé Bollo1-1/+0
Change-Id: I1e70cded34b080215b53b8bb28945303d4e5f3e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29Add option --name for naming the processJosé Bollo6-1/+113
This option allows to set the command line and the thread name of the main process. The value can contain spaces that will be replaced by nulls. Change-Id: I895270a24663467b16fb3cd8fc3218b7b003b6bb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29afb-config: update the output of the configJosé Bollo2-1/+11
Change-Id: I1dbc3c0b0c84cb34da1c8851044a6e72e4dfbd34 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29Rework CMakeList.txtJosé Bollo1-0/+9
Explicit options and add a definition for AGL_DEVEL Change-Id: I8419f0b0dfecc1e0171c282573cdf32ae3f09704 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-29Merge "Update packaging"José Bollo2-2/+7
2017-08-28build config: remove forced AGL_DEVEL from src/CMakelists.txtStephane Desneux1-1/+0
Change-Id: I6fd44469b148732103d4b903f94c355f2bd231ee Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-08-28monitor: disable monitoring by defaultStephane Desneux1-1/+0
Change-Id: I8e76e9c184dd913a5040578366c8783ac4b3efaa Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-08-28fix typoStephane Desneux2-7/+7
Change-Id: Ifb2de3c13f814f16f23ead9357f4fec97b3e675c Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-08-28Update packagingRonan Le Martret2-2/+7
* add libmicrohttpd dependency for deb packaging * add monitoring packaging to spec file Change-Id: I228907183640f4edda9bcc3ca634043d5e22e811 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-08-27monitoring: add default page index.htmlJosé Bollo2-1/+2
This allows to acces monitoring interface using url HOST/monitoring/ when option --monitoring is set. Change-Id: If7dfc89e4c4db0d87ec5c8e74f9243691a3ec0e8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-27afb-config: rework on option --random-tokenJosé Bollo2-22/+8
When set, this option will enforce a random token in any cases. Not using the option --token has the same effect asking for a random token. So the option now serves to enforce a random token. Change-Id: Iea2cee44b95d5479c36217d312ab6e8ce6726005 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-27monitoring: Add option --monitoringJosé Bollo2-0/+33
Installs basic interface for monitoring and add the option --monitoring / -M to activate the alias /monitoring. This makes the page /monitoring/monitor.html available. Change-Id: Iebe0959f0a5e7c396fe7ce6862d0f9c883733824 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-27afb-config: Add short -p option for --portJosé Bollo2-3/+6
Change-Id: Iae8475559ee2381ee7d687c6afc2e6ce7145ebf3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-27monitoring: improvementsJosé Bollo9-228/+231
- use flex/css for correct layout - handles disconnection nicely - handles initial token - fix typo in afb-api-so Change-Id: I386b98f9d6a2182029d39a373a9820478f97cfa6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-26src/afb-api-so.c: fix uninitialized variableStephane Desneux1-1/+1
Change-Id: If7f576e8f4bdc613d836c158df6e5f0bbfea87b7 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-08-26monitoring: add copyrightsJosé Bollo6-6/+102
Also still improve colours Change-Id: I2afc2dc7bf22ef65e39c18c9397ae6c7cd2df1d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-26monitoring: fix colorJosé Bollo1-2/+2
Change-Id: I73481b5a7d509c7f6640fc8b0c21c502667a657e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25afb-config: copy string valuesJosé Bollo1-5/+16
Change-Id: Ibbc5924adef104d9ec7399e7943baa1d799d2572 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25afb-config: Improve naming (cosmetic)José Bollo1-8/+8
Change-Id: Ib3133cbcd458fbd1ca1ee5aac64700c9ebc83b60 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25afb-config: Optimize boolean flagsJosé Bollo1-3/+6
Change-Id: I476cb5c7cd873802273f243eb3454857c8723e96 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25Add option --no-ldpaths to avoid default ldpathsJosé Bollo2-2/+10
Instead of writing --ldpaths=/dev/null simply use the option --no-ldpaths Change-Id: Ia278989b90a079d998ba0cbb7a6bb78c46d58090 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25Add option --weak-ldpaths (for weak loading path)José Bollo3-2/+9
This option allows to specify a loading path where binding that fails on load are ignored. Change-Id: Ie0646f88ba9207dd117737a8b251a7a42f424f02 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25afb-api-so: fix a bug in error detectionJosé Bollo3-15/+34
Error detection wasn't reported when an error occured in a subdirectory. Also closes the opened directories on error and allows a mode for ignoring binding errors. Change-Id: I34e52de8ea71bf84556878a395b56c6628cc5d9a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25monitoring: improve user interfaceJosé Bollo5-11/+114
- fix buttons - manage scrolling - added separators Change-Id: I327a74d004ec33c41bb5e0dbc913bb02d9848878 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-25monitoring: updated demo with dark themeJosé Bollo6-127/+469
Change-Id: Ibb77655cd614553bf0090bf5ffa64180d1279f8b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-24monitor: Test page for monitoringJosé Bollo13-4/+1175
This is a test page for showing basic monitoring use. Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-24afb-monitor: update hooks for tracingJosé Bollo1-0/+2
Updating hooks is needed (at the moment) also for events. Change-Id: If5f6259499b3d35a2fd5504185b9f751f96c4e06 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-24Fix: C++ compilation warning using genskelRomain Forlot1-1/+7
Unitialized struct member. Change-Id: Ib507aef4ceb459571b6bb70e5a879e1f34823a77 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-08-23genskel: fix bug in namingsJosé Bollo1-3/+3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-23afb-monitor: update hooks for tracingJosé Bollo1-2/+4
Updating hooks is needed (at the moment) after trace requests Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-23genskel: improvements and bug fixsJosé Bollo2-25/+60
- Fills the info fields - take care of C in names Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-11afb-stub-ws: improvementsJosé Bollo3-15/+47
The client stub isn't connecting anymore automatically to the apiset. The function 'afb_stub_ws_client_add' provides the feature. The client now returns a afb_api structure. name and on_hangup features added. Change-Id: I204cc39adeb782f5d40360c22c79d14f54dd5c63 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-11afb-apiset: add a wrapper for 'describe'José Bollo4-15/+35
And use it in monitor. Change-Id: I9efbd19cfbdc665d1d686831b529ebaa7bd917a2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-11afb-websocket: update websocket protocolJosé Bollo1-1/+0
After integration of UPGRADE in libmicrohttpd, the header "Connection: Upgrade" has to be removed because it is now sent 2 times. This caused Webkit to fail to connect its websocket. Bug-AGL: SPEC-821 Change-Id: Ib9744208cf7175f0c56e513b18b53ab0a9b60b9f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-10afb-debug: expose wait/break featuresJosé Bollo2-29/+45
Change-Id: I197350dee4f85dfc167ea4ffcb54e6e3ceba89ad Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-10subpath: creation for splitting locale-rootJosé Bollo4-82/+154
Change-Id: Ia339dc1d1291ef52fbec3c928537721ed7410694 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-10afb-xreq: handle when no reply was sentJosé Bollo1-0/+2
Send an error reply if no reply was sent. Change-Id: Ibc5c98d22b9820f1f0b5370083f79a52213ddc61 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-09afb-api-ws: typoJosé Bollo1-1/+1
Change-Id: Iea02e0720e40c2b4630a15606e798c53b4bbfe6c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08afb-evt: fix a bug discovered by clang-checkJosé Bollo2-10/+7
Change-Id: I6bb1dffeb17fdcaf6e3a2686651d35dd0b0500b9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08afb-session: fix an over allocationJosé Bollo1-1/+1
Thanks to Markus Fritzsch and clang-check Change-Id: I4822eb14bff49680df05e472363228cc82566edf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08sig-monitor: dump the stack on SIGABRTJosé Bollo1-0/+2
Change-Id: Id21c444d6d18a78f731458a43519a131515385c0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08Add specific permission for monitor/traceJosé Bollo2-30/+35
Change-Id: I39c9295596e1c328533319354dddbf5191f11463 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-08afb-trace: Add tracing features to API monitorJosé Bollo7-44/+1834
This api allows to receive events when particular actions are reached. At the moment, tracing is bound to the API monitor and can trace anything. In the future, this will not be the case and the API monitor will only allow to trace requests of its session. The tracing of all will be available for supervision only. Change-Id: I880852612c2f77ff5329496b16c75fe602db4090 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-03afb-cred: fix default valuesJosé Bollo1-5/+9
Because SO_PEERCRED returns without error even when no data is available (tcp by example), the resulting uid is now tested. Also, for tcp, by default avoid by default to create a default user value. Instead, return NULL. This will allow client having an HTTP/Websocket connection to get full rights on the binder. Change-Id: I2defb585bf79c023e2391c2e18d6de17e5112770 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-03subcall_req: introduce afb_req_subcall_reqJosé Bollo6-16/+195
The function 'afb_req_subcall_req' can be used to make asynchronous subcalls. It improves the function 'afb_req_subcall' by automatically keeping the request opened for the callback and by passing it, the request, as an extra argument of the callback. Change-Id: I2dc79c01fc25c7a65b9c8cc9e001a5b85fba99df Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-02afb-xreq: integration of subcallsJosé Bollo4-242/+208
The file afb-subcall is now integrated within afb-xreq. It improves memory allocation and performance of synchronous calls. Change-Id: I4190199babbe0559527438b530b19ac9a35ec38b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-31afb-svc: allows NULL for callbacks or resultsJosé Bollo1-6/+16
This allows afb_service_call to set NULL callback and afb_service_call_sync to set a NULL result pointer. Change-Id: Ie16ae5557e6851d2f1e730ad32450489242b5daa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-31Fix fallthrough warningsJosé Bollo4-1/+7
Change-Id: Ibe8e0b4e59ad4d5f0b0cca82ccdb3d0f035b0501 Signed-off-by: José Bollo <jose.bollo@iot.bzh>