X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Fserialize.c;h=f9e45b60751ed8060640d004df92f19d7ef4dec8;hb=75667d04f4c255687def1876cf15baf3bbd1ffc5;hp=b8df1b3cd3538af4a75cd1bcd6aa955c5c7892f8;hpb=4268fdcdcb96f72e945f52b9f94f6ad841e297c9;p=ust.git diff --git a/libust/serialize.c b/libust/serialize.c index b8df1b3..f9e45b6 100644 --- a/libust/serialize.c +++ b/libust/serialize.c @@ -3,7 +3,20 @@ * * Copyright Mathieu Desnoyers, March 2007. * - * Licensed under the GPLv2. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * * * See this discussion about weirdness about passing va_list and then va_list to * functions. (related to array argument passing). va_list seems to be @@ -21,8 +34,8 @@ #include "kernelcompat.h" #define _LGPL_SOURCE -#include -#include +#include +#include #include "relay.h" #include "tracer.h" @@ -541,7 +554,6 @@ notrace size_t ltt_serialize_data(struct rchan_buf *buf, size_t buf_offset, } return buf_offset; } -EXPORT_SYMBOL_GPL(ltt_serialize_data); /* * Calculate data size @@ -571,7 +583,8 @@ void ltt_write_event_data(struct rchan_buf *buf, size_t buf_offset, notrace void ltt_vtrace(const struct marker *mdata, void *probe_data, - void *call_data, const char *fmt, va_list *args) + struct registers *regs, void *call_data, + const char *fmt, va_list *args) { int largest_align, ret; struct ltt_active_marker *pdata; @@ -677,24 +690,23 @@ notrace void ltt_vtrace(const struct marker *mdata, void *probe_data, /* Out-of-order commit */ ltt_commit_slot(channel, &transport_data, buf_offset, data_size, slot_size); - printf("just commited event at offset %ld and size %zd\n", buf_offset, slot_size); + DBG("just commited event at offset %ld and size %zd", buf_offset, slot_size); } //ust// __get_cpu_var(ltt_nesting)--; ltt_nesting--; rcu_read_unlock(); //ust// rcu_read_unlock_sched_notrace(); } -EXPORT_SYMBOL_GPL(ltt_vtrace); notrace void ltt_trace(const struct marker *mdata, void *probe_data, - void *call_data, const char *fmt, ...) + struct registers *regs, void *call_data, + const char *fmt, ...) { va_list args; va_start(args, fmt); - ltt_vtrace(mdata, probe_data, call_data, fmt, &args); + ltt_vtrace(mdata, probe_data, regs, call_data, fmt, &args); va_end(args); } -EXPORT_SYMBOL_GPL(ltt_trace); //ust// MODULE_LICENSE("GPL"); //ust// MODULE_AUTHOR("Mathieu Desnoyers");