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>
Mon, 17 Feb 2020 15:56:23 +0000 (10:56 -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 9e957ccfff88bbc31d55eba800f9b981c222e7d5..a565b6a1b075e9b72e111aa3c69c85511dc55fca 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 d77a2fb298c40f99c7fd290eb48eda48d36bcae9..a91faa42c475bc0c34a16fcc5f65eb22bb401f7b 100644 (file)
@@ -580,7 +580,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 *
@@ -591,23 +591,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 7befe83c17f27cb5d5a7548b72db462b4849b4bc..06bceb748a776bc5b83a58fbf432bdcaeb6f66c3 100644 (file)
@@ -43,7 +43,7 @@ extern void ust_after_setregid(void);
 extern void ust_after_setresuid(void);
 extern void ust_after_setresgid(void);
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index ace743bfa5438fe33937075e5d3c51e70d4a2482..fe785bd5a9560572c0442eb0bee2ae6b8100b580 100644 (file)
@@ -65,19 +65,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.
  */
@@ -108,7 +108,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 05d3f1bb60ac2aac301dac61085f22eb32908359..1ca8b580d19ba5ae3582851d9b1536642787019f 100644 (file)
@@ -273,7 +273,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 7f73d03c0e94712d2e5ce2b5245fb15bb254ecef..dd20852fec8ae6e58d210bc1fe7a288a677c3ff8 100644 (file)
@@ -1155,7 +1155,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 4ac63c3c9238dfa188164076d5e9037cfd3c3734..42ded30c3aad3958a60cdf15725228be111ee3c6 100644 (file)
@@ -1351,7 +1351,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.03122 seconds and 4 git commands to generate.