Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/tracing/rtla/src/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  timerlat_bpf.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0 */
#pragma once

enum summary_field {
 SUMMARY_CURRENT,
 SUMMARY_MIN,
 SUMMARY_MAX,
 SUMMARY_COUNT,
 SUMMARY_SUM,
 SUMMARY_OVERFLOW,
 SUMMARY_FIELD_N
};

#ifndef __bpf__
#ifdef HAVE_BPF_SKEL
int timerlat_bpf_init(struct timerlat_params *params);
int timerlat_bpf_attach(void);
void timerlat_bpf_detach(void);
void timerlat_bpf_destroy(void);
int timerlat_bpf_wait(int timeout);
int timerlat_bpf_restart_tracing(void);
int timerlat_bpf_get_hist_value(int key,
    long long *value_irq,
    long long *value_thread,
    long long *value_user,
    int cpus);
int timerlat_bpf_get_summary_value(enum summary_field key,
       long long *value_irq,
       long long *value_thread,
       long long *value_user,
       int cpus);

static inline int have_libbpf_support(void) { return 1; }
#else
static inline int timerlat_bpf_init(struct timerlat_params *params)
{
 return -1;
}
static inline int timerlat_bpf_attach(void) { return -1; }
static inline void timerlat_bpf_detach(void) { };
static inline void timerlat_bpf_destroy(void) { };
static inline int timerlat_bpf_wait(int timeout) { return -1; }
static inline int timerlat_bpf_restart_tracing(void) { return -1; };
static inline int timerlat_bpf_get_hist_value(int key,
           long long *value_irq,
           long long *value_thread,
           long long *value_user,
           int cpus)
{
 return -1;
}
static inline int timerlat_bpf_get_summary_value(enum summary_field key,
       long long *value_irq,
       long long *value_thread,
       long long *value_user,
       int cpus)
{
 return -1;
}
static inline int have_libbpf_support(void) { return 0; }
#endif /* HAVE_BPF_SKEL */
#endif /* __bpf__ */

Messung V0.5
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.