/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/bpf_filter.h
30 строк
682 B
Dmitry V. Levin
Update copyright headers
16 фев 2021, 11:00
16 фев 2021, 11:00
8fa8a88
Код
Авторство
О чём код?
/* * Classic BPF filter block. * * Copyright (c) 2015-2021 Dmitry V. Levin <ldv@strace.io> * All rights reserved. * * SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef STRACE_BPF_FILTER_H # define STRACE_BPF_FILTER_H struct bpf_filter_block { uint16_t code; uint8_t jt; uint8_t jf; uint32_t k; }; typedef bool (*print_bpf_filter_fn)(const struct bpf_filter_block *); extern void print_bpf_fprog(struct tcb *const tcp, const kernel_ulong_t addr, const unsigned short len, const print_bpf_filter_fn print_k); extern void decode_bpf_fprog(struct tcb *const tcp, const kernel_ulong_t addr, const print_bpf_filter_fn print_k); #endif /* !STRACE_BPF_FILTER_H */