Linux Perf
trigger.h File Reference
#include "util/debug.h"
#include "asm/bug.h"
Include dependency graph for trigger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  trigger
 

Macros

#define TRIGGER_WARN_ONCE(t, exp)
 
#define DEFINE_TRIGGER(n)   struct trigger n = {.state = TRIGGER_OFF, .name = #n}
 

Functions

static bool trigger_is_available (struct trigger *t)
 
static bool trigger_is_error (struct trigger *t)
 
static void trigger_on (struct trigger *t)
 
static void trigger_ready (struct trigger *t)
 
static void trigger_hit (struct trigger *t)
 
static void trigger_off (struct trigger *t)
 
static void trigger_error (struct trigger *t)
 
static bool trigger_is_ready (struct trigger *t)
 
static bool trigger_is_hit (struct trigger *t)
 

Macro Definition Documentation

◆ DEFINE_TRIGGER

#define DEFINE_TRIGGER (   n)    struct trigger n = {.state = TRIGGER_OFF, .name = #n}

Definition at line 94 of file trigger.h.

◆ TRIGGER_WARN_ONCE

#define TRIGGER_WARN_ONCE (   t,
  exp 
)
Value:
WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \
t->name, t->state, __func__)

Definition at line 37 of file trigger.h.

Function Documentation

◆ trigger_error()

static void trigger_error ( struct trigger t)
inlinestatic

Definition at line 79 of file trigger.h.

◆ trigger_hit()

static void trigger_hit ( struct trigger t)
inlinestatic

Definition at line 64 of file trigger.h.

Here is the call graph for this function:

◆ trigger_is_available()

static bool trigger_is_available ( struct trigger t)
inlinestatic

Definition at line 41 of file trigger.h.

◆ trigger_is_error()

static bool trigger_is_error ( struct trigger t)
inlinestatic

Definition at line 46 of file trigger.h.

◆ trigger_is_hit()

static bool trigger_is_hit ( struct trigger t)
inlinestatic

Definition at line 89 of file trigger.h.

◆ trigger_is_ready()

static bool trigger_is_ready ( struct trigger t)
inlinestatic

Definition at line 84 of file trigger.h.

◆ trigger_off()

static void trigger_off ( struct trigger t)
inlinestatic

Definition at line 72 of file trigger.h.

Here is the call graph for this function:

◆ trigger_on()

static void trigger_on ( struct trigger t)
inlinestatic

Definition at line 51 of file trigger.h.

◆ trigger_ready()

static void trigger_ready ( struct trigger t)
inlinestatic

Definition at line 57 of file trigger.h.

Here is the call graph for this function: