aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf
AgeCommit message (Expand)AuthorFilesLines
2021-05-07samples/bpf: Consider frame size in tx_only of xdpsock sampleMagnus Karlsson1-1/+1
2021-04-19samples/bpf: Fix broken tracex1 due to kprobe argument changeYaqi Chen1-2/+2
2021-03-30samples: bpf: Do not unload prog within xdpsockMaciej Fijalkowski1-41/+14
2021-03-25bpf: Remove unused headersLu Wei2-2/+0
2021-03-15samples: bpf: Fix a spelling typo in do_hbm_test.shMasanari Iida1-1/+1
2021-03-04samples, bpf: Add missing munmap in xdpsockMaciej Fijalkowski1-0/+2
2021-02-02samples: bpf: Remove unneeded semicolonYang Li1-1/+1
2021-02-02samples/bpf: Add include dir for MIPS Loongson64 to fix build errorsTiezhu Yang1-0/+4
2021-01-26samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build warningsTiezhu Yang1-0/+4
2021-01-23samples/bpf: Add xdp program on egress for xdp_redirect_mapHangbin Liu2-25/+147
2021-01-23bpf, docs: Update build procedure for manually compiling LLVM and ClangTiezhu Yang2-9/+15
2021-01-20samples/bpf: Add BPF_ATOMIC_OP macro for BPF samplesBjörn Töpel1-4/+20
2021-01-14bpf: Rename BPF_XADD and prepare to encode other atomics in .immBrendan Jackman4-9/+10
2020-12-10samples/bpf: Fix possible hang in xdpsock with multiple threadsMagnus Karlsson1-0/+2
2020-12-03samples/bpf: Fix spelling mistake "recieving" -> "receiving"Colin Ian King1-1/+1
2020-12-03samples/bpf: Sample application for eBPF load and socket creation splitMariusz Dudek4-6/+337
2020-12-02bpf: samples: Do not touch RLIMIT_MEMLOCKRoman Gushchin27-133/+0
2020-12-01samples/bpf: Add option to set the busy-poll budgetBjörn Töpel1-0/+5
2020-12-01samples/bpf: Add busy-poll support to xdpsockBjörn Töpel1-7/+33
2020-12-01samples/bpf: Use recvfrom() in xdpsock/l2fwdBjörn Töpel1-14/+12
2020-12-01samples/bpf: Use recvfrom() in xdpsock/rxdropBjörn Töpel1-4/+4
2020-11-26samples: bpf: Remove bpf_load loader completelyDaniel T. Lee4-731/+5
2020-11-26samples: bpf: Fix lwt_len_hist reusing previous BPF mapDaniel T. Lee2-0/+2
2020-11-26samples: bpf: Refactor test_overhead program with libbpfDaniel T. Lee2-24/+60
2020-11-26samples: bpf: Refactor ibumad program with libbpfDaniel T. Lee3-31/+68
2020-11-26samples: bpf: Refactor task_fd_query program with libbpfDaniel T. Lee2-28/+75
2020-11-26samples: bpf: Refactor test_cgrp2_sock2 program with libbpfDaniel T. Lee3-22/+62
2020-11-26samples: bpf: Refactor hbm program with libbpfDaniel T. Lee5-72/+78
2020-11-17samples/bpf: Increment Tx stats at sendingMagnus Karlsson1-3/+3
2020-11-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski2-180/+0
2020-11-10samples/bpf: Remove unused test_ipip.shHangbin Liu1-179/+0
2020-11-10samples/bpf: Remove duplicate include in hbmMenglong Dong1-1/+0
2020-10-27samples/bpf: Set rlimit for memlock to infinity in all samplesToke Høiland-Jørgensen5-5/+5
2020-10-22bpf, libbpf: Guard bpf inline asm from bpf_tail_call_staticDaniel Borkmann1-4/+4
2020-10-11samples: bpf: Refactor XDP kern program maps with BTF-defined mapDaniel T. Lee3-39/+36
2020-10-11samples: bpf: Replace attach_tracepoint() to attach() in xdp_redirect_cpuDaniel T. Lee2-82/+73
2020-10-11samples: bpf: Refactor xdp_monitor with libbpfDaniel T. Lee2-40/+121
2020-10-06samples: bpf: Driver interrupt statistics in xdpsockCiara Loftus1-1/+119
2020-10-06samples: bpf: Count syscalls in xdpsockCiara Loftus1-10/+103
2020-10-06samples: bpf: Split xdpsock stats into new structCiara Loftus1-54/+69
2020-10-06samples/bpf: Fix a compilation error with fallthrough markingYonghong Song1-1/+2
2020-10-06samples/bpf: Change Makefile to cope with latest llvmYonghong Song1-1/+10
2020-09-30bpf, selftests: Use bpf_tail_call_static where appropriateDaniel Borkmann1-9/+11
2020-09-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller7-19/+37
2020-09-19samples/bpf: Fix test_map_in_map on s390Ilya Leoshkevich1-4/+3
2020-09-14samples/bpf: Add quiet option to xdpsockMagnus Karlsson1-5/+14
2020-09-14samples/bpf: Fix possible deadlock in xdpsockMagnus Karlsson1-0/+1
2020-09-14samples/bpf: Fix one packet sending in xdpsockMagnus Karlsson1-0/+8
2020-09-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2020-09-04samples, bpf: Add xsk_fwd test file to .gitignoreDaniel T. Lee1-0/+1
2020-09-04samples, bpf: Replace bpf_program__title() with bpf_program__section_name()Daniel T. Lee4-10/+10
2020-08-31samples/bpf: Fix to xdpsock to avoid recycling framesWeqaar Janjua1-5/+5
2020-08-31samples/bpf: Optimize l2fwd performance in xdpsockMagnus Karlsson1-8/+14
2020-08-31samples/bpf: Add new sample xsk_fwd.cCristian Dumitrescu2-0/+1088
2020-08-24samples: bpf: Refactor tracepoint tracing programs with libbpfDaniel T. Lee7-93/+192
2020-08-24samples: bpf: Refactor kprobe tracing programs with libbpfDaniel T. Lee11-118/+272
2020-08-24samples: bpf: Cleanup bpf_load.o from MakefileDaniel T. Lee1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-18samples: bpf: Fix broken bpf programs due to removed symbolDaniel T. Lee3-3/+3
2020-07-21samples/bpf, selftests/bpf: Use bpf_probe_read_kernelIlya Leoshkevich4-8/+24
2020-07-16samples/bpf: xdp_redirect_cpu: Load a eBPF program on cpumapLorenzo Bianconi2-22/+178
2020-07-16samples/bpf: xdp_redirect_cpu_user: Do not update bpf maps in option loopLorenzo Bianconi1-9/+27
2020-07-13samples: bpf: Add an option for printing extra statistics in xdpsockCiara Loftus1-2/+85
2020-07-10bpf: Fix fds_example SIGSEGV errorWenbo Zhang1-1/+2
2020-07-08samples: bpf: Refactor BPF map performance test with libbpfDaniel T. Lee2-147/+196
2020-07-08samples: bpf: Refactor BPF map in map test with libbpfDaniel T. Lee3-49/+91
2020-07-08samples: bpf: Fix bpf programs with kprobe/sys_connect eventDaniel T. Lee3-9/+18
2020-06-16bpf, xdp, samples: Fix null pointer dereference in *_user codeGaurav Singh3-21/+7
2020-05-19samples, bpf: Refactor kprobe, tail call kern progs map definitionDaniel T. Lee8-91/+93
2020-05-19samples, bpf: Add tracex7 test file to .gitignoreDaniel T. Lee1-0/+1
2020-05-19samples, bpf: Refactor tail call user progs with libbpfDaniel T. Lee3-31/+103
2020-05-19samples, bpf: Refactor kprobe tracing user progs with libbpfDaniel T. Lee9-64/+252
2020-05-19samples, bpf: Refactor pointer error check with libbpfDaniel T. Lee3-15/+6
2020-05-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-2/+0
2020-05-14samples/bpf: xdp_redirect_cpu: Set MAX_CPUS according to NR_CPUSLorenzo Bianconi2-14/+17
2020-05-14samples: bpf: Fix build errorMatteo Croce1-2/+0
2020-05-13samples/bpf: Remove compiler warningsYonghong Song3-6/+6
2020-04-03Merge tag 'spdx-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-0/+1
2020-03-25.gitignore: add SPDX License IdentifierMasahiro Yamada1-0/+1
2020-03-23samples, bpf: Refactor perf_event user program with libbpf bpf_linkDaniel T. Lee3-82/+159
2020-03-23samples, bpf: Move read_trace_pipe to trace_helpersDaniel T. Lee5-23/+4
2020-02-09Merge tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ma...Linus Torvalds1-59/+59
2020-02-05samples: bpf: Allow for -ENETDOWN in xdpsockMaciej Fijalkowski1-1/+2
2020-02-05samples: bpf: Drop doubled variable declaration in xdpsockMaciej Fijalkowski1-1/+0
2020-02-04kbuild: rename hostprogs-y/always to hostprogs/always-yMasahiro Yamada1-59/+59
2020-01-20samples/bpf: Use consistent include paths for libbpfToke Høiland-Jørgensen83-113/+112
2020-01-20samples/bpf: Don't try to remove user's homedir on cleanToke Høiland-Jørgensen1-1/+1
2020-01-16devmap: Adjust tracepoint for map-less queue flushJesper Dangaard Brouer1-5/+3
2019-12-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller12-56/+504
2019-12-20samples/bpf: Xdp_redirect_cpu fix missing tracepoint attachJesper Dangaard Brouer1-4/+55
2019-12-20samples/bpf: xdpsock: Add option to specify transmit fill patternJay Jayatheerthan1-4/+9
2019-12-20samples/bpf: xdpsock: Add option to specify tx packet sizeJay Jayatheerthan1-11/+265
2019-12-20samples/bpf: xdpsock: Add option to specify number of packets to sendJay Jayatheerthan1-14/+59
2019-12-20samples/bpf: xdpsock: Add option to specify batch sizeJay Jayatheerthan1-23/+29
2019-12-20samples/bpf: xdpsock: Use common code to handle signal and main exitJay Jayatheerthan1-2/+7
2019-12-20samples/bpf: xdpsock: Add duration option to specify how long to runJay Jayatheerthan1-2/+35
2019-12-16samples/bpf: Attach XDP programs in driver mode by defaultToke Høiland-Jørgensen11-12/+58
2019-12-16samples/bpf: Set -fno-stack-protector when building BPF programsToke Høiland-Jørgensen1-0/+1
2019-12-16samples/bpf: Add missing -lz to TPROGS_LDLIBSToke Høiland-Jørgensen1-1/+1
2019-12-16samples/bpf: Reintroduce missed build targetsPrashant Bhole1-0/+2
2019-12-11samples: bpf: fix syscall_tp due to unused syscallDaniel T. Lee1-2/+16
2019-12-11samples: bpf: Replace symbol compare of trace_eventDaniel T. Lee1-2/+2
2019-12-04samples/bpf: Fix broken xdp_rxq_info due to map order assumptionsJesper Dangaard Brouer1-3/+3
2019-11-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller21-228/+339
2019-11-15samples/bpf: Add missing option to xdpsock usageAndre Guedes1-0/+2
2019-11-15samples/bpf: Remove duplicate option from xdpsockAndre Guedes1-1/+0
2019-11-11samples/bpf: adjust Makefile and README.rstJesper Dangaard Brouer2-9/+7
2019-11-10samples/bpf: Use Rx-only and Tx-only sockets in xdpsockMagnus Karlsson1-12/+29
2019-11-10samples/bpf: Add XDP_SHARED_UMEM support to xdpsockMagnus Karlsson4-42/+135
2019-11-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+1
2019-11-08samples: bpf: update map definition to new syntax BTF-defined mapDaniel T. Lee12-178/+178
2019-11-08samples: bpf: Update outdated error messageDaniel T. Lee5-7/+7
2019-11-02bpf, samples: Use bpf_probe_read_user where appropriateDaniel Borkmann3-5/+5
2019-10-31samples/bpf: fix build by setting HAVE_ATTR_TEST to zeroBjörn Töpel1-0/+1
2019-10-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller2-1/+13
2019-10-12samples/bpf: Add preparation steps and sysroot info to readmeIvan Khoronzhuk1-5/+36
2019-10-12samples/bpf: Add sysroot supportIvan Khoronzhuk1-0/+5
2019-10-12samples/bpf: Provide C/LDFLAGS to libbpfIvan Khoronzhuk1-1/+2
2019-10-12samples/bpf: Use target CC environment for HDR_PROBEIvan Khoronzhuk1-3/+2
2019-10-12samples/bpf: Use own flags but not HOSTCFLAGSIvan Khoronzhuk1-2/+4
2019-10-12samples/bpf: Base target programs rules on Makefile.targetIvan Khoronzhuk1-66/+69
2019-10-12samples/bpf: Add makefile.target for separate CC target buildIvan Khoronzhuk1-0/+75
2019-10-12samples/bpf: Drop unnecessarily inclusion for bpf_loadIvan Khoronzhuk1-1/+1
2019-10-12samples/bpf: Use __LINUX_ARM_ARCH__ selector for armIvan Khoronzhuk1-0/+8
2019-10-12samples/bpf: Use own EXTRA_CFLAGS for clang commandsIvan Khoronzhuk1-4/+5
2019-10-12samples/bpf: Use --target from cross-compileIvan Khoronzhuk1-1/+1
2019-10-12samples/bpf: Fix cookie_uid_helper_example obj buildIvan Khoronzhuk1-1/+0
2019-10-12samples/bpf: Fix HDR_PROBE "echo"Ivan Khoronzhuk1-1/+1
2019-10-08libbpf: Move bpf_{helpers, helper_defs, endian, tracing}.h into libbpfAndrii Nakryiko1-1/+1
2019-10-08selftests/bpf: Split off tracing-only helpers into bpf_tracing.hAndrii Nakryiko13-0/+13
2019-10-08selftests/bpf: samples/bpf: Split off legacy stuff from bpf_helpers.hAndrii Nakryiko8-33/+37
2019-10-07samples: bpf: Add max_pckt_size option at xdp_adjust_tailDaniel T. Lee2-11/+25
2019-10-07samples/bpf: Trivial - fix spelling mistake in usageAnton Ivanov1-1/+1
2019-10-03samples/bpf: Add a workaround for asm_inlineKP Singh1-1/+12
2019-10-03samples/bpf: Fix build for task_fd_query_user.cBjörn Töpel1-0/+1
2019-09-16samples/bpf: fix xdpsock l2fwd tx for unaligned modeCiara Loftus1-1/+1
2019-08-31samples/bpf: use hugepages in xdpsock appKevin Laatz1-5/+10
2019-08-31samples/bpf: add buffer recycling for unaligned chunks to xdpsockKevin Laatz1-10/+16
2019-08-31samples/bpf: add unaligned chunks mode support to xdpsockKevin Laatz1-3/+17
2019-08-21samples: bpf: syscall_nrs: use mmap2 if definedIvan Khoronzhuk2-0/+19
2019-08-17samples/bpf: add use of need_wakeup flag in xdpsockMagnus Karlsson1-72/+120
2019-08-09samples/bpf: xdp_fwd explain bpf_fib_lookup return codesJesper Dangaard Brouer1-2/+17
2019-08-09samples/bpf: make xdp_fwd more practically usable via devmap lookupJesper Dangaard Brouer2-17/+33
2019-08-09samples/bpf: xdp_fwd rename devmap name to be xdp_tx_portsJesper Dangaard Brouer2-3/+4
2019-07-23samples/bpf: switch trace_output sample to perf_buffer APIAndrii Nakryiko1-29/+14
2019-07-23samples/bpf: convert xdp_sample_pkts_user to perf_buffer APIAndrii Nakryiko1-44/+17
2019-07-15samples/bpf: build with -D__TARGET_ARCH_$(SRCARCH)Ilya Leoshkevich1-1/+1
2019-07-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2019-07-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller1-1/+1
2019-07-03samples/bpf: fix tcp_bpf.readme detach commandStanislav Fomichev1-1/+1
2019-07-03samples/bpf: add sample program that periodically dumps TCP statsStanislav Fomichev2-0/+69
2019-07-03bpf: Add support for fq's EDT to HBMbrakmo5-19/+231
2019-06-27xsk: Change the default frame size to 4096 and allow controlling itMaxim Mikityanskiy1-16/+28
2019-06-26samples: bpf: make the use of xdp samples consistentDaniel T. Lee4-12/+42
2019-06-24samples: bpf: Remove bpf_debug macro in favor of bpf_printkMichal Rostecki1-12/+6
2019-06-24samples/bpf: xdp_redirect, correctly get dummy program idPrashant Bhole1-1/+1
2019-06-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2019-06-21Merge tag 'spdx-5.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-1/+2
2019-06-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller16-31/+34
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505Thomas Gleixner1-1/+2
2019-06-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller4-20/+4
2019-06-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds2-2/+2
2019-06-18samples: bpf: refactor header include pathDaniel T. Lee15-20/+20
2019-06-18samples: bpf: remove unnecessary include options in MakefileDaniel T. Lee1-9/+0
2019-06-15samples/bpf: fix include path in MakefilePrashant Bhole1-1/+1
2019-06-10samples: bpf: don't run probes at the local make stageJakub Kicinski1-0/+3
2019-06-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller2-2/+2
2019-06-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller20-80/+20
2019-06-06samples: bpf: print a warning about headers_installJakub Kicinski1-0/+9
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295Thomas Gleixner2-18/+2
2019-06-04bpf: hbm: fix spelling mistake "notifcations" -> "notificiations"Colin Ian King1-1/+1
2019-05-31bpf: Add more stats to HBMbrakmo4-10/+117
2019-05-31bpf: Add cn support to hbm_out_kern.cbrakmo4-12/+45
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206Thomas Gleixner20-80/+20
2019-05-28selftests/bpf: convert test_cgrp2_attach2 example into kselftestRoman Gushchin2-461/+0
2019-05-28samples/bpf: fix a couple of style issues in bpf_loadDaniel T. Lee1-4/+4
2019-05-24samples: bpf: add ibumad sample to .gitignoreMatteo Croce1-0/+1
2019-05-24samples: bpf: Do not define bpf_printk macroMichal Rostecki10-72/+2
2019-05-21samples, bpf: suppress compiler warningMatteo Croce1-1/+1
2019-05-21samples, bpf: fix to change the buffer size for read()Chang-Hsien Tsai1-1/+1
2019-05-09Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdmaLinus Torvalds3-0/+269
2019-04-25samples: bpf: add hbm sample to .gitignoreDaniel T. Lee1-0/+1
2019-04-05samples/bpf: fix build with new clangAlexei Starovoitov1-0/+1
2019-04-04samples, selftests/bpf: add NULL check for ksym_searchDaniel T. Lee4-1/+21
2019-03-27BPF: Add sample code for new ib_umad tracepointIra Weiny3-0/+269
2019-03-21samples: bpf: add xdp_sample_pkts to .gitignoreDaniel T. Lee1-0/+1
2019-03-07bpf: hbm: fix spelling mistake "deault" -> "default"Colin Ian King1-2/+2
2019-03-02bpf: HBM test scriptbrakmo1-0/+436
2019-03-02bpf: User program for testing HBMbrakmo2-0/+444
2019-03-02bpf: Sample HBM BPF program to limit egress bwbrakmo4-0/+327
2019-03-02samples/bpf: silence compiler warning for xdpsock_user.cYonghong Song1-3/+3
2019-03-01samples: bpf: use libbpf where easyJakub Kicinski4-25/+35
2019-03-01samples: bpf: remove load_sock_ops in favour of bpftoolJakub Kicinski12-114/+16
2019-03-01samples: bpf: force IPv4 in pingJakub Kicinski5-5/+5
2019-02-27samples: bpf: fix: broken sample regarding removed functionDaniel T. Lee3-3/+3
2019-02-25samples/bpf: convert xdpsock to use libbpf for AF_XDP accessMagnus Karlsson4-648/+261
2019-02-22samples/bpf: Fix dummy program unloading for xdp_redirect samplesToke Høiland-Jørgensen2-2/+2
2019-02-01samples/bpf: Check the prog id before exitingMaciej Fijalkowski10-48/+308
2019-02-01samples/bpf: Add a "force" flag to XDP samplesMaciej Fijalkowski10-40/+119
2019-02-01samples/bpf: Extend RLIMIT_MEMLOCK for xdp_{sample_pkts, router_ipv4}Maciej Fijalkowski2-0/+14