c84264bb398c51438bb5230fc6b4a2a75a5bd923
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c  1) #include "event.h"
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c  2) #include "cleaner.h"
Stefan Schuermans first incomplete begin_proc...

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c  3) 
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.c   4) #include <uproctrace.pb-c.h>
Stefan Schuermans first incomplete begin_proc...

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c  5) 
liblwpttr/src/event.c  6) #include <stdlib.h>
liblwpttr/src/event.c  7) 
Stefan Schuermans split event and proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c  8) /**
liblwpttr/src/event.c  9)  * @brief pack event to a buffer
liblwpttr/src/event.c 10)  * @param[in] event the event to pack to a buffer
liblwpttr/src/event.c 11)  * @param[out] *data pointer to event data (malloc-ed)
liblwpttr/src/event.c 12)  * @param[out] *size size of data
liblwpttr/src/event.c 13)  * @param[in] cleaner cleaned up after building data buffer (also on error)
liblwpttr/src/event.c 14)  * @return 0 on success (*data, *size set),
liblwpttr/src/event.c 15)  *         -1 on error (*data = NULL, *size = 0)
liblwpttr/src/event.c 16)  */
Stefan Schuermans formatting

Stefan Schuermans authored 4 years ago

libuptev/src/event.c  17) int uptev_event_pack(struct _Uproctrace__Event *event, void **data,
libuptev/src/event.c  18)                      size_t *size, uptev_cleaner_t *cleaner) {
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.c  19)   *size = uproctrace__event__get_packed_size(event);
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c 20)   *data = malloc(*size);
Stefan Schuermans formatting

Stefan Schuermans authored 4 years ago

libuptev/src/event.c  21)   if (!data) {
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.c  22)     uptev_cleaner_cleanup(cleaner);
Stefan Schuermans add exe and cwd to proc_begin

Stefan Schuermans authored 4 years ago

liblwpttr/src/event.c 23)     *size = 0;
liblwpttr/src/event.c 24)     return -1;
liblwpttr/src/event.c 25)   }
Stefan Schuermans rename: lwproctrace -> upro...

Stefan Schuermans authored 4 years ago

libuptev/src/event.c  26)   *size = uproctrace__event__pack(event, *data);
libuptev/src/event.c  27)   uptev_cleaner_cleanup(cleaner);