tools/perf/trace/beauty/sync_file_range.c

Source file repositories/reference/linux-study-clean/tools/perf/trace/beauty/sync_file_range.c

File Facts

System
Linux kernel
Corpus path
tools/perf/trace/beauty/sync_file_range.c
Extension
.c
Size
1537 bytes
Lines
41
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

if ((flags & SYNC_FILE_RANGE_WRITE_AND_WAIT) == SYNC_FILE_RANGE_WRITE_AND_WAIT) {
               printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? "SYNC_FILE_RANGE_" : "", "WRITE_AND_WAIT");
	       flags &= ~SYNC_FILE_RANGE_WRITE_AND_WAIT;
       }

       return printed + strarray__scnprintf_flags(&strarray__sync_file_range_flags, bf + printed, size - printed, show_prefix, flags);
}

size_t syscall_arg__scnprintf_sync_file_range_flags(char *bf, size_t size, struct syscall_arg *arg)
{
	unsigned long flags = arg->val;

	return sync_file_range__scnprintf_flags(flags, bf, size, arg->show_string_prefix);
}

Annotation

Implementation Notes