Cleanup: remove trailing white spaces across project
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 17 Feb 2020 15:46:45 +0000 (10:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Feb 2020 01:19:58 +0000 (20:19 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I15202338465ee56d33316cbc632d9e3bf44ee31e

doc/examples/easy-ust/Makefile
doc/examples/easy-ust/sample.c
doc/examples/easy-ust/sample_component_provider.h
doc/examples/easy-ust/tp.c
doc/examples/java-jul/Makefile
include/lttng/tracepoint.h
include/lttng/ust.h
liblttng-ust/jhash.h
liblttng-ust/lttng-ring-buffer-metadata-client.h
libringbuffer/ring_buffer_frontend.c
snprintf/vfprintf.c

index 022729389f4a14fe0e032e99720ba3249d5cc266..c9c5c1d38506d01f44ab17f4116ea06380952b1e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com> 
+# Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com>
 # Copyright (C) 2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 #
 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
index 4d19890b5fcd711be9ca964fc0b40cd2a40a9757..416cb550db395386bb5d9c1499d28ffba02e7e6c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com> 
+ * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com>
  * Copyright (C) 2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -20,7 +20,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  */
+
 #include <unistd.h>
 
 /*
index dd3c5f0f6fb6106a2d271501e456a377cc365bbd..16c1ee3c0bbf3b2ddf9264a797556c314b79264d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2011-2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com> 
+ * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -20,9 +20,9 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  */
+
 /*
- * Sample lttng-ust tracepoint provider. 
+ * Sample lttng-ust tracepoint provider.
  */
 
 /*
@@ -30,8 +30,8 @@
  * We undef a macro before defining it as it can be used in several files.
  */
 
-/*  
- * Must be included before include tracepoint provider 
+/*
+ * Must be included before include tracepoint provider
  * ex.: project_event
  * ex.: project_component_event
  *
 #define _SAMPLE_COMPONENT_PROVIDER_H
 /*
  * Add this to allow programs to call "tracepoint(...):
- */ 
-#include <lttng/tracepoint.h> 
+ */
+#include <lttng/tracepoint.h>
 
 /*
  * The following tracepoint event writes a message (c string) into the
  * field message of the trace event message in the provider
  * sample_component in other words:
  *
- *    sample_component:message:message = text. 
+ *    sample_component:message:message = text.
  */
 TRACEPOINT_EVENT(
        /*
         * provider name, not a variable but a string starting with a letter
-        * and containing either letters, numbers or underscores. 
+        * and containing either letters, numbers or underscores.
         * Needs to be the same as TRACEPOINT_PROVIDER
         */
        sample_component,
        /*
-        * tracepoint name, same format as sample provider. Does not need to be 
-        * declared before. in this case the name is "message" 
+        * tracepoint name, same format as sample provider. Does not need to be
+        * declared before. in this case the name is "message"
         */
        message,
        /*
-        * TP_ARGS macro contains the arguments passed for the tracepoint 
+        * TP_ARGS macro contains the arguments passed for the tracepoint
         * it is in the following format
         *              TP_ARGS( type1, name1, type2, name2, ... type10, name10)
-        * where there can be from zero to ten elements. 
-        * typeN is the datatype, such as int, struct or double **. 
-        * name is the variable name (in "int myInt" the name would be myint) 
+        * where there can be from zero to ten elements.
+        * typeN is the datatype, such as int, struct or double **.
+        * name is the variable name (in "int myInt" the name would be myint)
         *              TP_ARGS() is valid to mean no arguments
         *              TP_ARGS( void ) is valid too
-        */ 
+        */
        TP_ARGS(char *, text),
        /*
-        * TP_FIELDS describes how to write the fields of the trace event. 
+        * TP_FIELDS describes how to write the fields of the trace event.
         * You can use the args here
         */
        TP_FIELDS(
        /*
         * The ctf_string macro takes a c string and writes it into a field
-        * named "message" 
-        */ 
+        * named "message"
+        */
                ctf_string(message, text)
        )
 )
 /*
- * Trace loglevel, shows the level of the trace event. It can be TRACE_EMERG, 
- * TRACE_ALERT, TRACE_CRIT, TRACE_ERR, TRACE_WARNING, TRACE_INFO or others. 
+ * Trace loglevel, shows the level of the trace event. It can be TRACE_EMERG,
+ * TRACE_ALERT, TRACE_CRIT, TRACE_ERR, TRACE_WARNING, TRACE_INFO or others.
  * If this is not set, TRACE_DEFAULT is assumed.
  * The first two arguments identify the tracepoint
  * See details in <lttng/tracepoint.h> line 347
  */
 TRACEPOINT_LOGLEVEL(
        /*
-        * The provider name, must be the same as the provider name in the 
+        * The provider name, must be the same as the provider name in the
         * TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above.
         */
-       sample_component, 
-       /* 
-        * The tracepoint name, must be the same as the tracepoint name in the 
+       sample_component,
+       /*
+        * The tracepoint name, must be the same as the tracepoint name in the
         * TRACEPOINT_EVENT
         */
-       message, 
+       message,
        /*
         * The tracepoint loglevel. Warning, some levels are abbreviated and
         * others are not, please see <lttng/tracepoint.h>
@@ -130,6 +130,6 @@ TRACEPOINT_LOGLEVEL(
 #endif /* _SAMPLE_COMPONENT_PROVIDER_H */
 
 /*
- * Add this after defining the tracepoint events to expand the macros. 
- */ 
+ * Add this after defining the tracepoint events to expand the macros.
+ */
 #include <lttng/tracepoint-event.h>
index b46de6f37922d3be26add6f28dae08ecd3abb268..00aba14a8dfe9926bb8bb6378d62d230442dbabf 100644 (file)
@@ -25,9 +25,9 @@
 /*
  * Defining macro creates the code objects of the traceprobes, only do
  * it once per file
- */ 
+ */
 #define TRACEPOINT_CREATE_PROBES
 /*
- * The header containing our TRACEPOINT_EVENTs. 
+ * The header containing our TRACEPOINT_EVENTs.
  */
 #include "sample_component_provider.h"
index 3eb68708dd149b04d0674c89409f98ddb8d6dff8..8597c7af51e99ea1d809029bb0638926768690f0 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
 #
 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED OR
index 39f2c4db752342f14c5bd8206174093595ebacec..0d978a5f5ebc74e4fc391c4c5d8900172acdec8c 100644 (file)
@@ -520,7 +520,7 @@ __tracepoints__ptrs_destroy(void)
  * How to use the TRACEPOINT_EVENT macro:
  *
  * An example:
- * 
+ *
  * TRACEPOINT_EVENT(someproject_component, event_name,
  *
  *     * TP_ARGS takes from 0 to 10 "type, field_name" pairs *
@@ -531,23 +531,23 @@ __tracepoints__ptrs_destroy(void)
  *     * TP_FIELDS describes the event payload layout in the trace *
  *
  *     TP_FIELDS(
- *         * Integer, printed in base 10 * 
+ *         * Integer, printed in base 10 *
  *         ctf_integer(int, field_a, arg0)
  *
- *         * Integer, printed with 0x base 16 * 
+ *         * Integer, printed with 0x base 16 *
  *         ctf_integer_hex(unsigned long, field_d, arg1)
  *
  *         * Enumeration *
  *         ctf_enum(someproject_component, enum_name, int, field_e, arg0)
  *
- *         * Array Sequence, printed as UTF8-encoded array of bytes * 
+ *         * Array Sequence, printed as UTF8-encoded array of bytes *
  *         ctf_array_text(char, field_b, string, FIXED_LEN)
  *         ctf_sequence_text(char, field_c, string, size_t, strlen)
  *
- *         * String, printed as UTF8-encoded string * 
+ *         * String, printed as UTF8-encoded string *
  *         ctf_string(field_e, string)
  *
- *         * Array sequence of signed integer values * 
+ *         * Array sequence of signed integer values *
  *         ctf_array(long, field_f, arg4, FIXED_LEN4)
  *         ctf_sequence(long, field_g, arg4, size_t, arg4_len)
  *     )
index 2779d7a76165b1c73735683bb61c2d74530cb5d7..91267beec6feaad0730f53fdcde33848970d1652 100644 (file)
@@ -33,7 +33,7 @@ extern void ust_before_fork(sigset_t *save_sigset);
 extern void ust_after_fork_parent(sigset_t *restore_sigset);
 extern void ust_after_fork_child(sigset_t *restore_sigset);
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index da1e7dd02c7b994bbdda9e5f8f7ce6eae27d4f5b..49a93c226f0ba77183a805fa9e875591c3cc1242 100644 (file)
@@ -63,19 +63,19 @@ do { \
  * Returns a 32-bit value.  Every bit of the key affects every bit of
  * the return value.  Two keys differing by one or two bits will have
  * totally different hash values.
- * 
+ *
  * The best hash table sizes are powers of 2.  There is no need to do
  * mod a prime (mod is sooo slow!).  If you need less than 32 bits,
  * use a bitmask.  For example, if you need only 10 bits, do
  *   h = (h & hashmask(10));
  * In which case, the hash table should have hashsize(10) elements.
- * 
+ *
  * If you are hashing n strings (uint8_t **)k, do it like this:
  *   for (i = 0, h = 0; i < n; ++i) h = hashlittle(k[i], len[i], h);
- * 
+ *
  * By Bob Jenkins, 2006.  bob_jenkins@burtleburtle.net.  You may use this
  * code any way you wish, private, educational, or commercial.  It's free.
- * 
+ *
  * Use for hash table lookup, or anything where one collision in 2^^32 is
  * acceptable.  Do NOT use for cryptographic purposes.
  */
@@ -106,7 +106,7 @@ uint32_t hashlittle(const void *key, size_t length, uint32_t initval)
                }
 
                /*----------------------------- handle the last (probably partial) block */
-               /* 
+               /*
                 * "k[2]&0xffffff" actually reads beyond the end of the string, but
                 * then masks off the part it's not allowed to read.    Because the
                 * string is aligned, the masked-off tail is in the same word as the
index 00876b526eeb3bed87d39b2599cece86045c14ca..525f641fde9d80bdd089e1138c42a2593404c0fb 100644 (file)
@@ -270,7 +270,6 @@ void lttng_event_write(struct lttng_ust_lib_ring_buffer_ctx *ctx, const void *sr
 
 static
 size_t lttng_packet_avail_size(struct channel *chan, struct lttng_ust_shm_handle *handle)
-                            
 {
        unsigned long o_begin;
        struct lttng_ust_lib_ring_buffer *buf;
index 7b9dde5b79eb7a7897ef6e1b5a959b2101130750..d714c7b37ec6583ca392ff5d2678ef09a2d2f502 100644 (file)
@@ -1137,7 +1137,7 @@ void channel_release(struct channel *chan, struct lttng_ust_shm_handle *handle,
  * Call "destroy" callback, finalize channels, decrement the channel
  * reference count. Note that when readers have completed data
  * consumption of finalized channels, get_subbuf() will return -ENODATA.
- * They should release their handle at that point. 
+ * They should release their handle at that point.
  */
 void channel_destroy(struct channel *chan, struct lttng_ust_shm_handle *handle,
                int consumer)
index 896a8840e5470321c1bc1ac00236dfd0cb0f699d..565107b8bb3aeec26d8071759268ac0a2c7698ca 100644 (file)
@@ -1350,7 +1350,7 @@ __grow_type_table(unsigned char **typetable, int *tablesize)
        return (0);
 }
 
+
 #ifdef FLOATING_POINT
 static int
 exponent(char *p0, int exp, int fmtch)
This page took 0.031492 seconds and 4 git commands to generate.