X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fgetcpu-override%2Flttng-ust-getcpu-override-test.c;h=dbe6c1d86283adf7c3cc1ef4f6780eb81696e54e;hp=5b4e559524058eee0fd32b5a1737015a3da0d4a3;hb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;hpb=389fbf04b41e2002be44a1e3392bfade2f1deeef diff --git a/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c b/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c index 5b4e55952..dbe6c1d86 100644 --- a/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c +++ b/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c @@ -2,26 +2,11 @@ * lttng-ust-getcpu-override-test.c * Based on lttng-getcpu-override-example.c from LTTng-ust exemple * - * Copyright (c) 2014 Mathieu Desnoyers - * Copyright (c) 2015 Jonathan Rajotte + * Copyright (C) 2014 Mathieu Desnoyers + * Copyright (C) 2015 Jonathan Rajotte * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * SPDX-License-Identifier: MIT * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. */ #include @@ -29,10 +14,12 @@ #include #include #include +#include #include static long nprocessors; +static int plugin_getcpu(void) { /* Generate a sequence based on the number of configurated processor @@ -72,6 +59,7 @@ int plugin_getcpu(void) return ret; } +LTTNG_EXPORT void lttng_ust_getcpu_plugin_init(void); void lttng_ust_getcpu_plugin_init(void) { int ret;