Commit Graph

23 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 7cb6fcdaff Rewrite to use CMake
Now the project is at least installable.

Added a LICENSE file.

Likely about to implement Lua plugins.
2015-01-17 16:10:12 +01:00
Přemysl Eric Janouch fcf21ca4cf Fix a memory leak 2014-09-25 22:39:17 +02:00
Přemysl Eric Janouch 88d92c87ce Fix the optimization
It wasn't all that easy.
2014-09-25 22:38:52 +02:00
Přemysl Eric Janouch 0e51b37411 Optimize and simplify the epoll poller
On my own machine (4096 max FD's), scanning localhost for all services,
there was no change to speak of.  On another one, though, with 65536
max FD's scanning localhost and another machine simultaneously for
a specific service, there was a dramatic speedup allowing much faster
scans, with userspace load dropping to about a quarter of a second.

As a bonus, it makes the code simpler.
2014-09-24 21:39:17 +02:00
Přemysl Eric Janouch 49e7f1798e Get rid of some memory holes on x86_64 2014-09-24 20:28:18 +02:00
Přemysl Eric Janouch 21cab71e75 Fix the epoll poller
Setting the fd to -1 broke poller_remove_from_dispatch().
2014-09-24 19:03:45 +02:00
Přemysl Eric Janouch 89edba14f0 Sort epoll_wait() output earlier 2014-09-24 19:00:09 +02:00
Přemysl Eric Janouch 734931d84f Fix the hotspot
Valgrind seems to be quite happy with it now.
2014-09-24 01:02:09 +02:00
Přemysl Eric Janouch bdb3b9b959 Identified a hot-spot 2014-09-24 00:20:20 +02:00
Přemysl Eric Janouch eee873e373 Implement idle events 2014-09-24 00:11:44 +02:00
Přemysl Eric Janouch 19491375f3 Formatting
No idea how this happened.
2014-09-24 00:11:40 +02:00
Přemysl Eric Janouch 0da95bf1c8 Fix str_append_data()
`void *' is more appropriate here.
2014-09-23 20:41:47 +02:00
Přemysl Eric Janouch 38a0077033 Generate a manpage
help2man should be enough so far.
2014-09-20 18:12:55 +02:00
Přemysl Eric Janouch 01c2bfa5a4 Fix timers
Fucking hell.  We're still having some event scheduling issues.
2014-09-20 01:59:41 +02:00
Přemysl Eric Janouch 97bcad8a03 Save a syscall per connection 2014-09-20 00:08:23 +02:00
Přemysl Eric Janouch 457eff90e3 Rework the poller
It's about time we stopped fucking ourselves in the butt.

The scanning should be much faster now.

Thanks to libuv for inspiration.
2014-09-19 23:44:00 +02:00
Přemysl Eric Janouch 4662e84995 First set of fixes
There are still some problems but at least it does something now.
2014-09-19 01:02:26 +02:00
Přemysl Eric Janouch 64fa986cd0 Implement the indicator etc. 2014-09-18 21:01:42 +02:00
Přemysl Eric Janouch 215891a8ee More stuff
- renamed *_func to *_fn
 - some initial code for the indicator (needs curses)
 - moved option handler to utils
 - more work on unit generation & processing
2014-09-14 00:28:50 +02:00
Přemysl Eric Janouch 1bc2e22167 Stuff 2014-09-12 23:28:33 +02:00
Přemysl Eric Janouch a133946688 Write stubs for the plugins
Make them compile.
2014-09-11 08:10:33 +02:00
Přemysl Eric Janouch 241bc64a11 Random crystallisation
Don't worry, there will be better commit messages eventually.
2014-09-10 23:14:53 +02:00
Přemysl Eric Janouch b418bfe22c Initial commit
Nothing's working yet, only some supporting code has been put in place.
2014-09-08 21:40:01 +02:00