kernel/trace/trace_kprobe_selftest.c

Source file repositories/reference/linux-study-clean/kernel/trace/trace_kprobe_selftest.c

File Facts

System
Linux kernel
Corpus path
kernel/trace/trace_kprobe_selftest.c
Extension
.c
Size
390 bytes
Lines
14
Domain
Core OS
Bucket
Scheduler, Processes, Timers, Sync, And Syscalls
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0

#include "trace_kprobe_selftest.h"

/*
 * Function used during the kprobe self test. This function is in a separate
 * compile unit so it can be compile with CC_FLAGS_FTRACE to ensure that it
 * can be probed by the selftests.
 */
int kprobe_trace_selftest_target(int a1, int a2, int a3, int a4, int a5, int a6)
{
	return a1 + a2 + a3 + a4 + a5 + a6;
}

Annotation

Implementation Notes