aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf
AgeCommit message (Expand)AuthorFilesLines
2018-12-29Merge tag 'kbuild-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-3/+1
2018-12-23treewide: add intermediate .s files to targetsMasahiro Yamada1-0/+1
2018-12-23treewide: remove explicit rules for *offsets.sMasahiro Yamada1-3/+0
2018-12-03samples: bpf: fix: seg fault with NULL pointer argDaniel T. Lee1-1/+3
2018-11-30samples: bpf: get ifindex from ifnameMatteo Croce1-2/+7
2018-11-30samples: bpf: improve xdp1 exampleMatteo Croce1-10/+8
2018-11-23samples: bpf: fix: error handling regarding kprobe_eventsDaniel T. Lee1-9/+24
2018-11-20tools/bpf: do not use pahole if clang/llvm can generate BTF sectionsYonghong Song1-0/+8
2018-11-07bpf_load: add map name to load_maps error messageShannon Nelson1-2/+2
2018-10-04bpf, tracex3_user: erase "ARRAY_SIZE" redefinedBo YU1-2/+0
2018-10-01samples/bpf: extend test_cgrp2_attach2 test to use per-cpu cgroup storageRoman Gushchin1-1/+18
2018-09-21samples/bpf: fix compilation failurePrashant Bhole3-11/+12
2018-09-18samples/bpf: fix a compilation failureYonghong Song1-2/+2
2018-09-18samples/bpf: remove duplicated includesYueHaibing3-3/+0
2018-09-01samples/bpf: xdpsock, minor fixesPrashant Bhole2-3/+2
2018-09-01bpf: add TCP_SAVE_SYN/TCP_SAVED_SYN sample programNikita V. Shirokov2-0/+88
2018-08-29samples/bpf: add -c/--copy -z/--zero-copy flags to xdpsockBjörn Töpel1-1/+11
2018-08-16samples/bpf: all XDP samples should unload xdp/bpf prog on SIGTERMJesper Dangaard Brouer2-2/+4
2018-08-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds13-34/+590
2018-08-15Merge tag 'kbuild-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-11/+11
2018-08-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller3-2/+160
2018-08-11Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller2-3/+3
2018-08-10samples/bpf: xdp_redirect_cpu load balance like SuricataJesper Dangaard Brouer2-2/+105
2018-08-10samples/bpf: add Paul Hsieh's (LGPL 2.1) hash function SuperFastHashJesper Dangaard Brouer1-0/+55
2018-08-09samples/bpf: xdp_redirect_cpu adjustment to reproduce teardown race easierJesper Dangaard Brouer2-3/+3
2018-08-03samples/bpf: extend test_cgrp2_attach2 test to use cgroup storageRoman Gushchin1-1/+20
2018-07-27samples: bpf: convert xdpsock_user.c to libbpfJakub Kicinski2-10/+30
2018-07-27samples: bpf: convert xdp_fwd_user.c to libbpfJakub Kicinski2-12/+24
2018-07-27samples/bpf: Add BTF build flags to MakefileTaeung Song1-1/+16
2018-07-27samples/bpf: xdpsock: order memory on AArch64Brian Brooks1-0/+5
2018-07-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller2-1/+4
2018-07-20Merge ra.kernel.org:/pub/scm/linux/kernel/git/torvalds/linuxDavid S. Miller6-16/+93
2018-07-18kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBSLaura Abbott1-6/+6
2018-07-18kbuild: Rename HOSTCFLAGS to KBUILD_HOSTCFLAGSLaura Abbott1-5/+5
2018-07-16samples/bpf: test_cgrp2_sock2: fix an off by oneDan Carpenter1-1/+1
2018-07-16samples: bpf: ensure that we don't load over MAX_PROGS programsDan Carpenter1-0/+3
2018-07-14samples/bpf: xdp_redirect_cpu handle parsing of double VLAN tagged packetsJesper Dangaard Brouer1-1/+10
2018-07-10samples/bpf: Fix tc and ip paths in xdp2skb_meta.shTaeung Song1-3/+3
2018-07-05samples/bpf: add .gitignore fileTaeung Song1-0/+49
2018-07-05samples/bpf: Check the error of write() and read()Taeung Song1-4/+15
2018-07-05samples/bpf: Check the result of system()Taeung Song1-3/+24
2018-07-05samples/bpf: add missing <linux/if_vlan.h>Taeung Song1-5/+1
2018-07-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller5-6/+321
2018-07-02samples/bpf: deal with EBUSY return code from sendmsg in xdpsock sampleMagnus Karlsson1-1/+1
2018-06-29bpf: Change bpf_fib_lookup to return lookup statusDavid Ahern1-4/+4
2018-06-28samples/bpf: xdp_rxq_info action XDP_TX must adjust MAC-addrsJesper Dangaard Brouer2-1/+36
2018-06-28samples/bpf: extend xdp_rxq_info to read packet payloadJesper Dangaard Brouer2-6/+47
2018-06-27samples/bpf: Add xdp_sample_pkts exampleToke Høiland-Jørgensen3-0/+239
2018-06-05samples/bpf: xdpsock: use skb Tx path for XDP_SKBBjörn Töpel1-0/+5
2018-06-04samples/bpf: minor *_nb_free performance fixMagnus Karlsson1-3/+5
2018-06-04samples/bpf: adapted to new uapiBjörn Töpel1-48/+36
2018-06-03bpf: flowlabel in bpf_fib_lookup should be flowinfoDavid Ahern1-1/+1
2018-05-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller6-59/+599
2018-05-24samples/bpf: xdp_monitor use err code from tracepoint xdp:xdp_devmap_xmitJesper Dangaard Brouer2-5/+40
2018-05-24samples/bpf: xdp_monitor use tracepoint xdp:xdp_devmap_xmitJesper Dangaard Brouer2-1/+82
2018-05-24samples/bpf: add a samples/bpf test for BPF_TASK_FD_QUERYYonghong Song3-0/+405
2018-05-22samples/bpf: adapt xdpsock to the new uapiBjörn Töpel1-47/+76
2018-05-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2018-05-18xsk: clean up SPDX headersBjörn Töpel1-11/+1
2018-05-16samples/bpf: Decrement ttl in fib forwarding exampleDavid Ahern1-8/+31
2018-05-14samples: bpf: make the build less noisyJakub Kicinski1-1/+2
2018-05-14samples: bpf: move libbpf from object dependencies to libsJakub Kicinski1-94/+51
2018-05-14samples: bpf: fix build after move to compiling full libbpf.aJakub Kicinski1-5/+12
2018-05-14samples: bpf: rename libbpf.h to bpf_insn.hJakub Kicinski8-12/+17
2018-05-14samples: bpf: include bpf/bpf.h instead of local libbpf.hJakub Kicinski35-35/+34
2018-05-14samples/bpf: xdp_monitor, accept short optionsPrashant Bhole1-2/+2
2018-05-13x86/cpufeature: Guard asm_volatile_goto usage for BPF compilationAlexei Starovoitov1-1/+1
2018-05-11samples: bpf: convert some XDP samples from bpf_load to libbpfJakub Kicinski4-43/+78
2018-05-11tools: bpf: move the event reading loop to libbpfJakub Kicinski2-3/+11
2018-05-11samples: bpf: compile and link against full libbpfJakub Kicinski1-7/+14
2018-05-11samples: bpf: rename struct bpf_map_def to avoid conflict with libbpfJakub Kicinski2-7/+7
2018-05-11samples/bpf: Add example of ipv4 and ipv6 forwarding in XDPDavid Ahern3-0/+255
2018-05-03samples/bpf: sample application and documentation for AF_XDP socketsMagnus Karlsson4-0/+1019
2018-04-29samples/bpf: fix kprobe attachment issue on x64Yonghong Song1-8/+26
2018-04-29samples/bpf: move common-purpose trace functions to selftestsYonghong Song8-175/+20
2018-04-27samples, bpf: remove redundant ret assignment in bpf_load_program()Wang Sheng-Hui1-2/+0
2018-04-27samples/bpf: remove the bpf tunnel testsuite.William Tu3-1003/+0
2018-04-24samples/bpf: extend test_tunnel_bpf.sh with xfrm state testEyal Birger2-0/+87
2018-04-18bpf: add bpf_xdp_adjust_tail sample progNikita V. Shirokov3-0/+298
2018-04-18samples/bpf: fix xdp_monitor user output for tracepoint exceptionJesper Dangaard Brouer1-1/+1
2018-04-18samples/bpf: correct comment in sock_example.cWang Sheng-Hui1-2/+2
2018-03-28samples/bpf: raw tracepoint testAlexei Starovoitov4-0/+44
2018-03-28samples/bpf: fix spelling mistake: "revieve" -> "receive"Colin Ian King1-1/+1
2018-03-19bpf: sockmap sample, add option to attach SK_MSG programJohn Fastabend1-2/+6
2018-03-08samples/bpf: add example to test reading addressTeng Qin2-0/+19
2018-03-04samples/bpf: add gre sequence number test.William Tu2-4/+7
2018-03-02samples/bpf: detach prog from cgroupPrashant Bhole2-0/+4
2018-02-26samples/bpf: Add program for CPU state statisticsLeo Yan3-0/+504
2018-02-13samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp_redirectTushar Dave1-0/+7
2018-02-06sample/bpf: fix erspan metadataWilliam Tu2-27/+18
2018-02-02samples/bpf: use bpf_set_link_xdp_fdEric Leblond9-126/+24
2018-02-02libbpf: add error reporting in XDPEric Leblond1-1/+1
2018-01-26samples/bpf: Partially fixes the bpf.o buildMickaël Salaün1-1/+4
2018-01-20samples/bpf: xdp_monitor include cpumap tracepoints in monitoringJesper Dangaard Brouer2-67/+443
2018-01-18samples/bpf: xdp2skb_meta comment explain why pkt-data pointers are invalidatedJesper Dangaard Brouer1-3/+5
2018-01-17samples/bpf: Fix trailing semicolonLuis de Bethencourt1-1/+1
2018-01-11samples/bpf: xdp2skb_meta shows transferring info from XDP to SKBJesper Dangaard Brouer3-0/+324
2018-01-05samples/bpf: program demonstrating access to xdp_rxq_infoJesper Dangaard Brouer3-0/+631
2017-12-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller4-0/+63
2017-12-15samples/bpf: add erspan v2 sample codeWilliam Tu2-19/+96
2017-12-12samples/bpf: add a test for bpf_override_returnJosef Bacik4-0/+63
2017-12-06samples/bpf: add ip6erspan sample codeWilliam Tu2-0/+95
2017-12-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+12
2017-12-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-12/+24
2017-12-04samples/bpf: extend test_tunnel_bpf.sh with ip6greWilliam Tu2-0/+108
2017-12-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller1-2/+12
2017-12-01samples/bpf: add error checking for perf ioctl calls in bpf loaderYonghong Song1-2/+12
2017-11-30samples/bpf: Convert magic numbers to names in multi-prog cgroup test caseDavid Ahern1-12/+24
2017-11-18kbuild: remove all dummy assignments to obj-Masahiro Yamada1-3/+0
2017-11-14xdp: sample: Missing curly braces in read_route()Dan Carpenter1-2/+3
2017-11-11bpf: Revert bpf_overrid_function() helper changes.David S. Miller4-63/+0
2017-11-11bpf: Fix tcp_clamp_kern.c sample programLawrence Brakmo1-11/+13
2017-11-11bpf: Fix tcp_iw_kern.c sample programLawrence Brakmo1-6/+8
2017-11-11bpf: Fix tcp_cong_kern.c sample programLawrence Brakmo1-2/+4
2017-11-11bpf: Fix tcp_bufs_kern.c sample programLawrence Brakmo1-6/+8
2017-11-11bpf: Fix tcp_rwnd_kern.c sample programLawrence Brakmo1-2/+4
2017-11-11bpf: Fix tcp_synrto_kern.c sample programLawrence Brakmo1-2/+4
2017-11-11samples/bpf: add a test for bpf_override_returnJosef Bacik4-0/+63
2017-11-08bpf: Rename tcp_bbf.readme to tcp_bpf.readmeLawrence Brakmo1-0/+0
2017-11-08xdp: Sample xdp program implementing ip forwardChristina Jacob3-0/+849
2017-11-05bpf: move cgroup_helpers from samples/bpf/ to tools/testing/selftesting/bpf/Roman Gushchin3-197/+3
2017-11-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller29-0/+29
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman29-0/+29
2017-10-29samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp_redirect_mapTushar Dave1-0/+7
2017-10-29samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp1Tushar Dave1-0/+8
2017-10-25bpf: add a test case to test single tp multiple bpf attachmentYonghong Song1-13/+53
2017-10-22bpf: create samples/bpf/tcp_bpf.readmeLawrence Brakmo1-0/+26
2017-10-22bpf: sample BPF_SOCKET_OPS_BASE_RTT programLawrence Brakmo2-0/+79
2017-10-18samples/bpf: add cpumap sample program xdp_redirect_cpuJesper Dangaard Brouer3-0/+1310
2017-10-16bpf: Add -target to clang switch while cross compiling.Abhijit Ayarekar1-2/+3
2017-10-07bpf: add a test case for helper bpf_perf_prog_read_valueYonghong Song2-5/+18
2017-10-07bpf: add a test case for helper bpf_perf_event_read_valueYonghong Song2-1/+38
2017-10-06samples/bpf: xdp_monitor increase memory rlimitJesper Dangaard Brouer1-2/+9
2017-10-06samples/bpf: xdp_monitor also record xdp_exception tracepointJesper Dangaard Brouer2-25/+121
2017-10-06samples/bpf: xdp_monitor first 8 bytes are not accessible by bpfJesper Dangaard Brouer1-13/+9
2017-10-04samples/bpf: use bpf_prog_query() interfaceAlexei Starovoitov1-0/+36
2017-10-04samples/bpf: add multi-prog cgroup test caseAlexei Starovoitov2-7/+185
2017-10-01samples/bpf: fix warnings in xdp_monitor_userStephen Hemminger1-2/+2
2017-09-29bpf: libbpf: Provide basic API support to specify BPF obj nameMartin KaFai Lau2-0/+3
2017-09-21samples/bpf: Add documentation on cross compilationJoel Fernandes1-0/+10
2017-09-21samples/bpf: Fix pt_regs issues when cross-compilingJoel Fernandes1-1/+1
2017-09-21samples/bpf: Enable cross compiler supportJoel Fernandes1-0/+5
2017-09-21samples/bpf: Use getppid instead of getpgrp for array map stressJoel Fernandes2-2/+2
2017-09-01bpf: Add lru_hash_lookup performance testMartin KaFai Lau2-9/+112
2017-09-01samples/bpf: Update cgroup socket examples to use uid gid helperDavid Ahern2-1/+16
2017-09-01samples/bpf: Update cgrp2 socket testsDavid Ahern1-38/+124
2017-09-01samples/bpf: Add option to dump socket settingsDavid Ahern1-2/+73
2017-09-01samples/bpf: Add detach option to test_cgrp2_sockDavid Ahern1-15/+35
2017-09-01samples/bpf: Update sock test to allow setting mark and priorityDavid Ahern2-17/+119
2017-08-31samples/bpf: Fix compilation issue in redirect dummy programTariq Toukan2-2/+2
2017-08-29samples/bpf: xdp_monitor tool based on tracepointsJesper Dangaard Brouer3-0/+387
2017-08-29samples/bpf: xdp_redirect load XDP dummy prog on TX deviceJesper Dangaard Brouer4-15/+50
2017-08-28samples/bpf: extend test_tunnel_bpf.sh with ERSPANWilliam Tu2-1/+91
2017-08-19bpf: Allow numa selection in INNER_LRU_HASH_PREALLOC test of map_perf_testMartin KaFai Lau4-11/+25
2017-08-16bpf: sockmap sample programJohn Fastabend1-2/+6
2017-08-07bpf: add a test case for syscalls/sys_{enter|exit}_* tracepointsYonghong Song3-0/+137
2017-08-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller2-2/+3
2017-07-31samples/bpf: fix bpf tunnel cleanupWilliam Tu2-2/+3
2017-07-17samples/bpf: add option for native and skb mode for redirect appsAndy Gospodarek2-18/+82
2017-07-17xdp: bpf redirect with map sample programJohn Fastabend3-0/+192
2017-07-17xdp: sample program for new bpf_redirect helperJohn Fastabend3-0/+187
2017-07-11samples/bpf: fix a build issueYonghong Song2-198/+1
2017-07-05bpf: fix return in load_bpf_fileLawrence Brakmo1-2/+6
2017-07-01bpf: Sample bpf program to set sndcwnd clampLawrence Brakmo2-0/+103
2017-07-01bpf: Sample BPF program to set initial cwndLawrence Brakmo2-0/+89
2017-07-01bpf: Sample BPF program to set congestion controlLawrence Brakmo2-0/+84
2017-07-01bpf: Sample BPF program to set buffer sizesLawrence Brakmo2-0/+87
2017-07-01bpf: Add setsockopt helper function to bpfLawrence Brakmo1-0/+3
2017-07-01bpf: Sample bpf program to set initial windowLawrence Brakmo2-0/+70
2017-07-01bpf: Sample bpf program to set SYN/SYN-ACK RTOsLawrence Brakmo2-0/+70
2017-07-01bpf: program to load and attach sock_ops BPF progsLawrence Brakmo2-0/+100
2017-07-01bpf: BPF support for sock_opsLawrence Brakmo1-3/+10
2017-06-29bpf: Add test for syscall on fd array/htab lookupMartin KaFai Lau2-1/+31
2017-06-22samples/bpf: fix a build problemYonghong Song1-1/+1
2017-06-14samples/bpf: Fix tracex5 to work with MIPS syscalls.David Daney3-3/+33
2017-06-14bpf: Add MIPS support to samples/bpf.David Daney1-0/+13
2017-06-04samples/bpf: add tests for more perf event typesTeng Qin4-56/+228
2017-05-31samples/bpf: bpf_load.c order of prog_fd[] should correspond with ELF orderJesper Dangaard Brouer1-14/+5
2017-05-11samples/bpf: run cleanup routines when receiving SIGTERMAndy Gospodarek7-1/+9
2017-05-11xdp: add flag to enforce driver modeDaniel Borkmann2-3/+12
2017-05-03samples/bpf: export map_data[] for more info on mapsJesper Dangaard Brouer1-1/+7
2017-05-03samples/bpf: load_bpf.c make callback fixup more flexibleJesper Dangaard Brouer3-18/+23
2017-05-03samples/bpf: make bpf_load.c code compatible with ELF maps section changesJesper Dangaard Brouer1-69/+155
2017-05-03samples/bpf: adjust rlimit RLIMIT_MEMLOCK for traceex2, tracex3 and tracex4Jesper Dangaard Brouer3-0/+22
2017-05-02bpf, samples: fix build warning in cookie_uid_helper_exampleDaniel Borkmann1-3/+3
2017-05-01samples/bpf: fix XDP_FLAGS_SKB_MODE detach for xdp_tx_iptunnelJesper Dangaard Brouer1-2/+2
2017-05-01samples/bpf: fix SKB_MODE flag to be a 32-bit unsigned intJesper Dangaard Brouer4-10/+11
2017-04-30samples/bpf: bpf_load.c detect and abort if ELF maps section size is wrongJesper Dangaard Brouer1-9/+31
2017-04-27samples/bpf: Add support for SKB_MODE to xdp1 and xdp_tx_iptunnelDavid Ahern4-16/+58
2017-04-24samples/bpf: check before defining offsetofAlexander Alemayhu1-1/+3
2017-04-24samples/bpf: add static to function with no prototypeAlexander Alemayhu1-1/+1
2017-04-24samples/bpf: add -Wno-unknown-warning-option to clangAlexander Alemayhu1-0/+1
2017-04-22bpf: Add sparc support to tools and samples.David S. Miller1-0/+19
2017-04-17bpf: lru: Add map-in-map LRU exampleMartin KaFai Lau2-3/+93
2017-04-17bpf: Allow bpf sample programs (*_user.c) to change bpf_map_defMartin KaFai Lau3-74/+201
2017-04-17bpf: lru: Refactor LRU map tests in map_perf_testMartin KaFai Lau2-29/+67
2017-04-08Sample program using SO_COOKIEChenbo Feng2-23/+127
2017-03-23A Sample of using socket cookie and uid for traffic monitoringChenbo Feng4-0/+244
2017-03-22bpf: Add tests for map-in-mapMartin KaFai Lau5-5/+311
2017-03-16samples/bpf: add map_lookup microbenchmarkAlexei Starovoitov2-0/+65