xen: fix identation of device files

Automatically:
 s/\t/    /g
 s/ +$//

Manually: align constant definitions in block.h

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
loader.ld: merge init_array and ctors into init_array

put all of .ctors, .init_array, .ctors.*, init_array.*
into the init_array section.
This fixes the build for mixed ctors / init_array tooling
and dependencies.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
epoll: fix EPOLLET checking condition

Because bitwise "&" was used instead of logical "&&" the condition
was always false:

  (e & EPOLLET) & !warned = 0x80000000 & 1 = 0

And the warning "EPOLLET ignored" was never printed.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
sched: add thread name attribute

Useful for debugging and pthread_setname_np().

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
trace: record and display thread names

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
sched: name some core threads

idle, load balancer, init.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
xen: name interrupt threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
bsd: name some bsd-provided threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
dhcp: name the dhcp threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
percpu-worker: name the threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
rcu: name the threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
console: name the console thread

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
virtio: name virtio threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
libc: name some internal threads

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
libc: provide pthread_setname_np()

Useful for debugging.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Merge branch 'sched'

Thread names

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>

Conflicts:
	core/sched.cc
	libc/timerfd.cc
trace: update format version for thread_name

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
java: Refactored cli and cloudius packages

Combined java/cli and java/cloudius packages into one.
Added java/cloudius.jar as a jar to the build.

Signed-off-by: Or Cohen <orc@fewbytes.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
java: Remove unused build.xml

Signed-off-by: Or Cohen <orc@fewbytes.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
java: Added stty JNI method for JLine support

This was previously added to Stty under the mgmt tree.

Signed-off-by: Or Cohen <orc@fewbytes.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>