"Fossies" - the Fresh Open Source Software Archive

Member "lttng-modules-2.11.0-rc5/lttng-calibrate.c" (11 Jun 2019, 528 Bytes) of package /linux/misc/lttng-modules-2.11.0-rc5.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "lttng-calibrate.c" see the Fossies "Dox" file reference documentation.

    1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
    2  *
    3  * lttng-calibrate.c
    4  *
    5  * LTTng probe calibration.
    6  *
    7  * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    8  */
    9 
   10 #include <lttng-abi.h>
   11 #include <lttng-events.h>
   12 
   13 noinline
   14 void lttng_calibrate_kretprobe(void)
   15 {
   16     asm volatile ("");
   17 }
   18 
   19 int lttng_calibrate(struct lttng_kernel_calibrate *calibrate)
   20 {
   21     switch (calibrate->type) {
   22     case LTTNG_KERNEL_CALIBRATE_KRETPROBE:
   23         lttng_calibrate_kretprobe();
   24         break;
   25     default:
   26         return -EINVAL;
   27     }
   28     return 0;
   29 }