Chinaunix首页 | 论坛 | 博客
  • 博客访问: 521665
  • 博文数量: 51
  • 博客积分: 345
  • 博客等级: 民兵
  • 技术积分: 534
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-21 12:02
个人简介

文章分类

全部博文(51)

文章存档

2023年(2)

2022年(1)

2021年(7)

2020年(10)

2019年(2)

2016年(20)

2015年(5)

2014年(1)

2011年(3)

我的朋友

发布时间:2022-06-16 21:26:33

本文通过libbpf-bootstrap中一个实例来展示如何在BPF中使用全局变量来控制程序流以及全局变量的实现原理。 先看一下大神对BPF全局变量的概括const ones), you can even take their address and pass around into helper functions. But that is only true for the BPF code side.........【阅读全文】

阅读(933) | 评论(0) | 转发(0)

发布时间:2021-01-07 17:11:38

这里写一个非常简单的ebpf程序,粗暴的丢弃所有的报文。#include __attribute__((section("bpf_ingress"), used))int bpf_prog(void *ctx) {    return 2;   // drop skb}1.编译指令clang -O2 -g -target bpf -c bpf_test.c -o bpf_test.o.........【阅读全文】

阅读(1621) | 评论(0) | 转发(0)

发布时间:2020-10-30 15:44:25

这是第一届ebpf summit,很荣幸可以在会议上发言,虽然仅是五分钟的Lightning Talks;下面链接可以会看会议内容:https://cilium.io/blog/2020/10/28/ebpf-summit-day-1会议zoom接入,大部分发言者都提前录制了视频,与参会者的交流交流通过cilium slack channel进行,会议结束时已经有770+的人加入ebpf summit slack c.........【阅读全文】

阅读(669) | 评论(0) | 转发(0)

发布时间:2020-09-19 12:30:39

这是关于BPF在网络方面的个人总结, 之前用于内部汇报,供参考:......【阅读全文】

阅读(706) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册