X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fhigh-throughput%2Fmain.c;h=2306c2da1b8539e3fb1329275dd09138c989d149;hb=HEAD;hp=dbd2998ac54344e0952c14eeb9e92046dc03985f;hpb=9ac429ef32142eaecfec2d1a44569464c4f8f721;p=lttng-tools.git diff --git a/tests/regression/ust/high-throughput/main.c b/tests/regression/ust/high-throughput/main.c index dbd2998ac..2306c2da1 100644 --- a/tests/regression/ust/high-throughput/main.c +++ b/tests/regression/ust/high-throughput/main.c @@ -1,42 +1,31 @@ /* - * Copyright (C) 2009 Pierre-Marc Fournier - * Copyright (C) 2011 Mathieu Desnoyers + * Copyright (C) 2009 Pierre-Marc Fournier + * Copyright (C) 2011 Mathieu Desnoyers * - * 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; version 2.1 of - * the License. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 */ -#include -#include -#include -#include -#include -#include +#include #include #include -#include -#include +#include +#include #include +#include +#include +#include +#include +#include #define TRACEPOINT_DEFINE #include "tp.h" -void inthandler(int sig) +static void inthandler(int sig __attribute__((unused))) { } -int init_int_handler(void) +static int init_int_handler(void) { int result; struct sigaction act; @@ -81,8 +70,7 @@ int main(int argc, char **argv) for (i = 0; i < 1000000; i++) { netint = htonl(i); - tracepoint(tp, tptest, i, netint, values, text, - strlen(text), dbl, flt); + tracepoint(tp, tptest, i, netint, values, text, strlen(text), dbl, flt); } return 0;