X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fpoll.h;h=080717bde9d0da3757fd304c76f82360e963cdc1;hb=f6566a02ebae53d06e70520e553cd36fde313066;hp=416ce5740da7a6e15b88401e209c49dc54860310;hpb=17baffe29814f2508556e498ab8c41a192e76b67;p=lttng-modules.git diff --git a/wrapper/poll.h b/wrapper/poll.h index 416ce574..080717bd 100644 --- a/wrapper/poll.h +++ b/wrapper/poll.h @@ -1,20 +1,16 @@ +#ifndef _LTTNG_WRAPPER_POLL_H +#define _LTTNG_WRAPPER_POLL_H + /* - * wrapper/poll.h - * - * Copyright (C) 2010-2011 Mathieu Desnoyers + * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) * * Dual LGPL v2.1/GPL v2 license. */ -#ifndef CONFIG_LIB_RING_BUFFER #include -#warning "poll_wait_set_exclusive() is defined as no-op. Will increase LTTng overhead. Please consider using the LTTng kernel tree for better results." +#warning "poll_wait_set_exclusive() is defined as no-op. Thundering herd effect can be noticed with large number of consumer threads." -/* - * Will cause higher overhead when signalling all possible reader threads when a - * buffer is ready to be consumed. - */ #define poll_wait_set_exclusive(poll_table) -#endif +#endif /* _LTTNG_WRAPPER_POLL_H */