tools/perf/arch/powerpc/util/auxtrace.c

Source file repositories/reference/linux-study-clean/tools/perf/arch/powerpc/util/auxtrace.c

File Facts

System
Linux kernel
Corpus path
tools/perf/arch/powerpc/util/auxtrace.c
Extension
.c
Size
2313 bytes
Lines
105
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 (strstarts(pos->name, "vpa_dtl")) {
			found = 1;
			pos->needs_auxtrace_mmap = true;
			break;
		}
	}

	if (!found)
		return NULL;

	/*
	 * To obtain the auxtrace buffer file descriptor, the auxtrace event
	 * must come first.
	 */
	evlist__to_front(pos->evlist, pos);

	aux = zalloc(sizeof(*aux));
	if (aux == NULL) {
		pr_debug("aux record is NULL\n");
		*err = -ENOMEM;
		return NULL;
	}

	aux->recording_options = powerpc_vpadtl_recording_options;
	aux->info_priv_size = powerpc_vpadtl_info_priv_size;
	aux->info_fill = powerpc_vpadtl_info_fill;
	aux->free = powerpc_vpadtl_free;
	aux->reference = powerpc_vpadtl_reference;
	return aux;
}

Annotation

Implementation Notes