Vincent Torri
0cdd501246
EFL For WIN32: Replace HAVE_EVIL define with _WIN32
2017-09-22 05:06:10 -05:00
Carsten Haitzler
b944fc7c9b
eina evlog debugging - when freeing debug buf with mmap 0 size after
...
munmap would not munmap the memory with a size of 0... so zero the
size after the munmap.
found by PVS studio
@fix
2017-07-29 09:08:40 +09:00
Daniel Zaoui
ea50cbd2b3
Support endianness
2017-06-05 08:55:38 +03:00
Daniel Zaoui
758bb0557c
Support opcodes registration for Windows
...
A standard static array with symbols whose addresses are only known at
runtime is not supported in Windows.
2017-06-05 08:55:38 +03:00
Daniel Zaoui
ab01f3f696
Rename opcodes for a better readability
2017-06-05 08:55:38 +03:00
Daniel Zaoui
253d3ffe44
Remove thread management
...
The handling to forward requests is let to the callbacks.
2017-06-05 08:55:37 +03:00
Daniel Zaoui
27228d3dc1
Add data to opcode registration callback
2017-06-05 08:55:37 +03:00
Daniel Zaoui
5f268ec26a
First patch of the Eina Debug layer rewriting
...
Eina Debug is a new layer aimed for EFL debugging. It offers scalability
by allowing registration of operations not specific to EFL core.
The protocol is simple and the APIs try to provide as much
functionalities/freedom as possible.
2017-06-05 08:51:49 +03:00
Carsten Haitzler
ba3ac16b62
evlog/log bt - fix size casting tot stop warning when printing errs
2017-02-12 00:32:22 +09:00
Carsten Haitzler
1b53925b4c
evlog - fix "remove setting stack var to 0" that broke evlogs
...
this fixes b38c610c7e
- recent commit by
me. bad me! spank!
2017-02-02 14:01:10 +09:00
Carsten Haitzler
b38c610c7e
evlog - remove setting stack var to 0 until it is needed later
...
we set stack var to 0 even if evlog was off and thus didn't use it.
this cleans up the evlog func a bit and also moves locking until later
so it's locked for the minimum period to punt something into the log
buffer. it's an improvement, but no bug fix.
2017-01-31 23:01:50 +09:00
Derek Foreman
853adace69
eina_evlog: Don't call get_time prematurely
...
If we're not logging events this generates a lot of wasted system
calls. They probably don't amount to much, but it's trivial to
get rid of them, and they make a mess when logging with strace.
2017-01-30 15:28:29 -06:00
Carsten Haitzler
ce3685f001
evlog - reduce overhead of getting time a little by pre-checking clock
...
this checks for clock_gettime + CLOCK_MONOTONIC or CLOCK_REALTIME at
evlog init to avoid a cmp+brang and l1 instr cache hit every get.
slightly less overhead when this is on.
2016-11-10 16:22:34 +09:00
Carsten Haitzler
42ebfa863f
evlog - no need to take lock to check if evlog is on. fix
...
this should reduce oerhead of evlog when on by a bit by not
taking+releasing a lock at all in this case.
2016-11-10 16:22:34 +09:00
Carsten Haitzler
8dd44c13c8
eina evlog - use CORRECT clock (monotonic) not gettimeofday if possible
2015-10-13 08:38:42 +09:00
Vincent Torri
a75155d8ba
eina, efl: add copyright notice.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-14 18:41:48 +02:00
Carsten Haitzler
a5635d0c01
eina evlog - fix overflow tracking
2015-05-13 22:25:09 +09:00
Carsten Haitzler
71182a57a3
eina evlog - remove stolen count - unecessary
2015-05-10 22:27:37 +09:00
Carsten Haitzler
2aeb289063
eina - begin event log infra we can get from the new debug monitor
...
we can down dump event logs. some ecore mainloop bits are logging at
the moment.
2015-05-10 19:05:54 +09:00