aboutsummaryrefslogtreecommitdiffstats
path: root/samples
AgeCommit message (Expand)AuthorFilesLines
2023-05-04Merge tag 'loongarch-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ch...Linus Torvalds5-0/+150
2023-05-01LoongArch: ftrace: Add direct call trampoline samples supportYouling Tang5-0/+150
2023-04-30Merge tag 'rust-6.4' of https://github.com/Rust-for-Linux/linuxLinus Torvalds1-0/+26
2023-04-28Merge tag 'trace-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds2-39/+13
2023-04-27Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds3-2/+9
2023-04-27Merge tag 'char-misc-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+2
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds3-3/+3
2023-04-27Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds3-0/+9
2023-04-26Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds9-15/+23
2023-04-20virt: acrn: Replace obsolete memalign() with posix_memalign()Deming Wang1-3/+2
2023-04-18kmemleak-test: fix kmemleak_test.c build logicHao Ge3-2/+9
2023-04-13samples/bpf: sampleip: Replace PAGE_OFFSET with _text addressRong Tao1-2/+9
2023-04-13Daniel Borkmann says:Jakub Kicinski8-13/+14
2023-04-13samples/bpf: Fix fout leak in hbm's run_bpf_progHao Zeng1-0/+1
2023-04-10samples: rust: print: Add sample code for Arc printingBoqun Feng1-0/+26
2023-03-31vfio/mdev: Uses the vfio emulated iommufd ops set in the mdev sample driversYi Liu3-0/+9
2023-03-29tracing/user_events: Use write ABI in exampleBeau Belgrave1-37/+8
2023-03-28fprobe: Skip exit_handler if entry_handler returns !0Masami Hiramatsu (Google)1-2/+3
2023-03-28fprobe: Pass entry_data to handlersMasami Hiramatsu (Google)1-2/+4
2023-03-21ftrace: Rename _ftrace_direct_multi APIs to _ftrace_direct APIsFlorent Revest6-17/+17
2023-03-21ftrace: Replace uses of _ftrace_direct APIs with _ftrace_direct_multiFlorent Revest3-14/+22
2023-03-21ftrace: Let unregister_ftrace_direct_multi() call ftrace_free_filter()Florent Revest2-4/+2
2023-03-17driver core: class: remove module * from class_create()Greg Kroah-Hartman3-3/+3
2023-03-13bpf: use canonical ftrace pathRoss Zwisler8-13/+13
2023-03-01Merge tag 'loongarch-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/ch...Linus Torvalds1-0/+8
2023-02-25Merge tag 'vfio-v6.3-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds2-8/+111
2023-02-25samples/kprobes: Add LoongArch supportTiezhu Yang1-0/+8
2023-02-24Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2023-02-23Merge tag 'trace-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds10-7/+268
2023-02-22Merge tag 'drm-next-2023-02-23' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-8/+0
2023-02-22Merge tag 'for-linus-2023022201' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds10-0/+1013
2023-02-22Merge branch 'for-6.3/hid-bpf' into for-linusBenjamin Tissoires10-0/+1013
2023-02-18tracing: Always use canonical ftrace pathRoss Zwisler1-2/+2
2023-02-16samples/bpf: Use bpf_{btf,link,map,prog}_get_info_by_fd()Ilya Leoshkevich8-10/+10
2023-02-10Daniel Borkmann says:Jakub Kicinski1-0/+14
2023-02-08samples/bpf: Add openat2() enter/exit tracepoint to syscall_tp sampleRong Tao1-0/+14
2023-02-08samples/kobject: make kobj_type structure constantThomas Weißschuh1-1/+1
2023-02-07samples: ftrace: Make some global variables staticTom Rix1-12/+12
2023-02-07ftrace: sample: avoid open-coded 64-bit divisionArnd Bergmann1-1/+1
2023-02-07samples: ftrace: Include the nospec-branch.h only for x86Song Shuai5-5/+5
2023-02-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski2-0/+2
2023-01-31Merge v6.2-rc6 into drm-nextDaniel Vetter2-0/+2
2023-01-30samples: fix the prompt about SAMPLE_VFIO_MDEV_MBOCHSye xingchen1-1/+1
2023-01-30vfio-mdev: add back CONFIG_VFIO dependencyArnd Bergmann1-0/+3
2023-01-25ftrace: Add sample with custom opsMark Rutland4-0/+261
2023-01-24Merge tag 'drm-misc-next-2023-01-19' of git://anongit.freedesktop.org/drm/drm...Daniel Vetter1-8/+0
2023-01-24ftrace: Export ftrace_free_filter() to modulesMark Rutland2-0/+2
2023-01-23vfio-mdev: move the mtty usage documentationChristoph Hellwig1-0/+100
2023-01-23vfio-mdev: turn VFIO_MDEV into a selectable symbolChristoph Hellwig1-3/+3
2023-01-23vfio-mdev: allow building the samples into the kernelChristoph Hellwig1-8/+8
2023-01-15samples/bpf: change _kern suffix to .bpf with BPF test programsDaniel T. Lee13-14/+14
2023-01-15samples/bpf: use vmlinux.h instead of implicit headers in BPF test programDaniel T. Lee8-29/+12
2023-01-15samples/bpf: replace BPF programs header with net_shared.hDaniel T. Lee4-10/+15
2023-01-15samples/bpf: split common macros to net_shared.hDaniel T. Lee2-21/+27
2023-01-15samples/bpf: replace legacy map with the BTF-defined mapDaniel T. Lee2-35/+14
2023-01-15samples/bpf: replace broken overhead microbenchmark with fib_table_lookupDaniel T. Lee4-18/+40
2023-01-15samples/bpf: fix broken cgroup socket testingDaniel T. Lee1-6/+6
2023-01-15samples/bpf: fix broken lightweight tunnel testingDaniel T. Lee2-22/+25
2023-01-15samples/bpf: refactor BPF functionality testing scriptsDaniel T. Lee5-15/+22
2023-01-15samples/bpf: ensure ipv6 is enabled before running testsDaniel T. Lee3-1/+8
2023-01-13vfio-mdev/mdpy-fb: Do not set struct fb_info.aperturesThomas Zimmermann1-8/+0
2023-01-04Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski16-90/+58
2022-12-29samples/bpf: Use BPF_KSYSCALL macro in syscall tracing programsDaniel T. Lee3-23/+19
2022-12-29samples/bpf: Fix tracex2 by using BPF_KSYSCALL macroDaniel T. Lee1-3/+3
2022-12-29samples/bpf: Change _kern suffix to .bpf with syscall tracing programDaniel T. Lee12-10/+11
2022-12-29samples/bpf: Use vmlinux.h instead of implicit headers in syscall tracing pro...Daniel T. Lee5-14/+7
2022-12-29samples/bpf: Use kyscall instead of kprobe in syscall tracing programDaniel T. Lee7-31/+12
2022-12-19samples/bpf: fix uninitialized warning with test_current_task_under_cgroupDaniel T. Lee1-2/+4
2022-12-19samples/bpf: replace meaningless counter with tracex4Daniel T. Lee1-2/+2
2022-12-19samples/bpf: remove unused function with test_lru_distDaniel T. Lee1-5/+0
2022-12-16Merge tag 'char-misc-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+0
2022-12-15Merge tag 'trace-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds2-9/+27
2022-12-15Merge tag 'vfio-v6.2-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds4-13/+19
2022-12-14Merge tag 'x86_core_for_v6.2' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds5-0/+12
2022-12-14tracing: Fix cpumask() example typoSteven Rostedt (Google)1-1/+1
2022-12-13Merge tag 'net-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds11-66/+79
2022-12-13Merge tag 'landlock-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-4/+25
2022-12-12samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()Shang XiaoJing1-1/+7
2022-12-05vfio/ap/ccw/samples: Fix device_register() unwind pathAlex Williamson3-9/+12
2022-12-04rust: macros: take string literals in `module!`Gary Guo2-8/+8
2022-12-01rust: samples: add `rust_print` exampleMiguel Ojeda3-0/+65
2022-11-28Daniel Borkmann says:Jakub Kicinski2-2/+2
2022-11-25samples/bpf: Fix wrong allocation size in xdp_router_ipv4_userRong Tao1-1/+1
2022-11-23tracing: Add __cpumask to denote a trace event field that is a cpumask_tSteven Rostedt (Google)2-9/+27
2022-11-23virt: acrn: Mark the uuid field as unusedAndy Shevchenko1-3/+0
2022-11-22samples: pktgen: Use "grep -E" instead of "egrep"Tiezhu Yang1-1/+1
2022-11-21samples/hid: Fix spelling mistake "wihout" -> "without"Colin Ian King1-2/+2
2022-11-18bpf, samples: Use "grep -E" instead of "egrep"Tiezhu Yang1-1/+1
2022-11-15samples/hid: add Surface Dial exampleBenjamin Tissoires5-1/+368
2022-11-15samples/hid: add new hid BPF exampleBenjamin Tissoires8-0/+646
2022-11-10vfio: Remove vfio_free_deviceEric Farman3-3/+0
2022-11-07samples/bpf: Fix sockex3 error: Missing BPF prog typeRong Tao2-55/+63
2022-11-07samples/landlock: Document best-effort approach for LANDLOCK_ACCESS_FS_REFERGünther Noack1-1/+16
2022-11-04samples/bpf: Fix tracex2 error: No such file or directoryRong Tao2-3/+4
2022-11-01samples/bpf: Fix typo in READMEKang Minchul1-1/+1
2022-10-19samples/bpf: Fix typos in READMEDaniel Müller1-2/+2
2022-10-19samples/bpf: Fix double word in commentsShaomin Deng1-1/+1
2022-10-19samples/bpf: Fix MAC address swapping in xdp2_kernGerhard Engleder1-0/+4
2022-10-19samples/bpf: Fix map iteration in xdp1_userGerhard Engleder1-1/+1
2022-10-19samples/landlock: Extend sample tool to support LANDLOCK_ACCESS_FS_TRUNCATEGünther Noack1-3/+9
2022-10-17x86/ftrace: Make it call depth tracking awarePeter Zijlstra5-0/+12
2022-10-12Merge tag 'vfio-v6.1-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds3-297/+217
2022-10-10Merge tag 'trace-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...Linus Torvalds1-7/+18
2022-10-06Merge tag 'arm-drivers-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-5/+5
2022-10-04Merge tag 'net-next-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds6-21/+33
2022-10-04Merge tag 'landlock-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-8/+29
2022-10-04vfio/mdev: add mdev available instance checking to the coreJason Gunthorpe1-18/+4
2022-10-04vfio/mdev: consolidate all the description sysfs into the core codeChristoph Hellwig2-18/+4
2022-10-04vfio/mdev: consolidate all the available_instance sysfs into the core codeChristoph Hellwig3-26/+9
2022-10-04vfio/mdev: consolidate all the name sysfs into the core codeChristoph Hellwig3-46/+13
2022-10-04vfio/mdev: consolidate all the device_api sysfs into the core codeJason Gunthorpe3-25/+3
2022-10-04vfio/mdev: simplify mdev_type handlingChristoph Hellwig3-95/+72
2022-10-04vfio/mdev: embedd struct mdev_parent in the parent data structureChristoph Hellwig3-6/+10
2022-10-04vfio/mdev: make mdev.h standalone includableChristoph Hellwig3-4/+0
2022-09-30samples/bpf: Fix typo in xdp_router_ipv4 sampleDeming Wang1-1/+1
2022-09-29samples/landlock: Print hints about ABI versionsMickaël Salaün1-8/+29
2022-09-29tracing/user_events: Use bits vs bytes for enabled status page dataBeau Belgrave1-7/+18
2022-09-28samples: add first Rust examplesMiguel Ojeda10-0/+108
2022-09-21vfio/mbochs: Use the new device life cycle helpersYi Liu1-27/+46
2022-09-21vfio/mtty: Use the new device life cycle helpersYi Liu1-28/+39
2022-09-21vfio/mdpy: Use the new device life cycle helpersYi Liu1-34/+47
2022-09-20samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()Rong Tao3-3/+3
2022-09-05samples/bpf: Reduce syscall overhead in map_perf_test.Alexei Starovoitov2-17/+29
2022-08-29soc: qcom: qmi: use const for struct qmi_elem_infoJeff Johnson1-5/+5
2022-08-05Merge tag 'trace-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds2-6/+40
2022-08-04Merge tag 'spdx-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-13/+1
2022-07-24tracing: Add example and documentation for new __vstring() macroSteven Rostedt (Google)2-6/+40
2022-07-22Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski9-14/+29
2022-07-15samples: bpf: Fix cross-compiling error by using bootstrap bpftoolPu Lehui1-6/+4
2022-07-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski3-7/+5
2022-07-13samples: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZELinkui Xiao6-6/+12
2022-07-12Merge tag 'trace-v5.19-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds3-7/+5
2022-07-12samples: Use KSYM_NAME_LEN for kprobesTiezhu Yang2-6/+4
2022-07-12fprobe/samples: Make sample_probe staticsunliming1-1/+1
2022-07-11samples/bpf: Fix xdp_redirect_map egress devmap progJesper Dangaard Brouer2-2/+13
2022-07-09Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski9-3353/+17
2022-07-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+7
2022-07-05bpf, samples: Remove AF_XDP samplesMagnus Karlsson6-3346/+0
2022-06-24fprobe, samples: Add module parameter descriptionsMasami Hiramatsu (Google)1-0/+7
2022-06-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+25
2022-06-21samples/bpf: fixup some tools to be able to support xdp multibufferAndy Gospodarek3-7/+17
2022-06-17fprobe, samples: Add use_trace option and show hit/missed counterMasami Hiramatsu (Google)1-4/+25
2022-06-15samples/bpf: Check detach prog exist or not in xdp_fwdZhengchao Shao1-6/+49
2022-06-10treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_168.RULE (p...Thomas Gleixner1-13/+1
2022-06-02sample: bpf: xdp_router_ipv4: Allow the kernel to send arp requestsLorenzo Bianconi1-0/+9
2022-05-25Merge tag 'drm-next-2022-05-25' of git://anongit.freedesktop.org/drm/drmLinus Torvalds3-50/+7
2022-05-25Merge tag 'net-next-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds34-497/+419
2022-05-24Merge tag 'landlock-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-51/+81
2022-05-23Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski2-11/+20
2022-05-23samples/landlock: Add support for file reparentingMickaël Salaün1-13/+27
2022-05-23samples/landlock: Format with clang-formatMickaël Salaün1-44/+52
2022-05-23samples/landlock: Add clang-format exceptionsMickaël Salaün1-0/+8
2022-05-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2022-05-12sched/tracing: Append prev_state to tp args insteadDelyan Kratunov1-3/+3
2022-05-09samples: bpf: Don't fail for a missing VMLINUX_BTF when VMLINUX_H is providedJerome Marchand1-5/+4
2022-04-27samples/bpf: Detach xdp prog when program exits unexpectedly in xdp_rxq_info_...Zhengchao Shao1-6/+16
2022-04-21vfio/mdev: Remove mdev_parent_opsJason Gunthorpe3-21/+6
2022-04-21vfio/mdev: Remove mdev_parent_ops dev_attr_groupsJason Gunthorpe1-29/+1
2022-04-20samples/bpf: Reduce the sampling interval in xdp1_userZhengchao Shao1-1/+1
2022-04-10samples/bpf: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCKYafang Shao31-42/+7
2022-04-08samples, bpf: Move routes monitor in xdp_router_ipv4 in a dedicated threadLorenzo Bianconi2-33/+55
2022-04-04samples: bpf: Fix linking xdp_router_ipv4 after migrationAlexander Lobakin1-0/+1
2022-04-04sample: bpf: syscall_tp_user: Print result of verify_mapSong Chen1-0/+3
2022-04-03samples: bpf: Convert xdp_router_ipv4 to XDP samples helperLorenzo Bianconi4-459/+381
2022-03-29Merge tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds1-1/+1
2022-03-28Merge tag 'livepatching-for-5.18' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds2-2/+2
2022-03-28Merge tag 'driver-core-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds2-4/+4
2022-03-27Merge tag 'landlock-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+1
2022-03-27Merge tag 'x86_core_for_5.18_rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds5-4/+22
2022-03-24Merge tag 'net-next-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds21-94/+252
2022-03-23Merge tag 'trace-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds7-1/+262
2022-03-23livepatch: Reorder to use before freeing a pointerTom Rix2-2/+2
2022-03-18samples/kobject: Use sysfs_emit instead of sprintfNguyen Dinh Phi2-4/+4
2022-03-17fprobe: Add sample program for fprobeMasami Hiramatsu4-0/+131
2022-03-15samples/bpf, xdpsock: Fix race when running for fix duration of timeNiklas Söderlund1-3/+3
2022-03-15x86/ibt,ftrace: Add ENDBR to samples/ftracePeter Zijlstra5-4/+22
2022-03-11tracing: Add TRACE_CUSTOM_EVENT() macroSteven Rostedt (Google)3-236/+120
2022-03-11tracing: Add sample code for custom trace eventsSteven Rostedt (Google)4-1/+281
2022-02-25media: v4l2-pci-skeleton: Remove usage of the deprecated "pci-dma-compat.h" APIChristophe JAILLET1-1/+1
2022-02-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+7
2022-02-10user_events: Add sample code for typical usageBeau Belgrave2-0/+96
2022-02-10samples/seccomp: Adjust sample to also provide kill optionKees Cook1-2/+7
2022-02-04samples/landlock: Fix path_list memory leakTom Rix1-0/+1
2022-02-03samples/bpf: Get rid of bpf_prog_load_xattr() useAndrii Nakryiko6-35/+63
2022-02-01samples/bpf: Update cpumap/devmap sec_nameLorenzo Bianconi3-6/+6
2022-01-25samples/bpf: use preferred getters/setters instead of deprecated onesAndrii Nakryiko4-4/+4
2022-01-24Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski11-46/+45
2022-01-20samples/bpf: adapt samples/bpf to bpf_xdp_xxx() APIsAndrii Nakryiko11-41/+40
2022-01-20Merge branch 'akpm' (patches from Andrew)Linus Torvalds3-9/+11
2022-01-20samples/bpf/test_overhead_kprobe_kern: replace bpf_probe_read_kernel with bpf...Yafang Shao3-9/+11
2022-01-16Merge tag 'trace-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds2-1/+37
2022-01-14Merge tag 'char-misc-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds4-0/+87
2022-01-13tracing: Fix mismatched comment in __string_lenGeliang Tang1-1/+1
2022-01-12samples/bpf: Stop using bpf_map__def() APIChristy Lee1-5/+5
2022-01-12Merge tag 'x86_core_for_v5.17_rc1' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds3-4/+4
2022-01-10Merge tag '5.17-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds22-109/+489
2022-01-05samples/bpf: xdpsock: Add timestamp for Tx-only operationOng Boon Leong1-9/+68
2022-01-05samples/bpf: xdpsock: Add time-out for cleaning TxOng Boon Leong1-2/+9
2022-01-05samples/bpf: xdpsock: Add sched policy and priority supportOng Boon Leong1-2/+59
2022-01-05samples/bpf: xdpsock: Add cyclic TX operation capabilityOng Boon Leong1-5/+80