instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'tools/perf/trace/beauty/kcmp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 /* * trace/beauty/kcmp.c * * Copyright (C) 2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "trace/beauty/beauty.h" #include <linux/kernel.h> #include <sys/types.h> #include <machine.h> #include <uapi/linux/kcmp.h> #include "trace/beauty/generate...
Linux kernel'inin 'tools/perf/trace/beauty/mode_t' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> /* From include/linux/stat.h */ #ifndef S_IRWXUGO #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO) #endif #ifndef S_IALLUGO #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO) #endif #ifndef S_IRUGO #define S_IRUGO ...
Linux kernel'inin 'tools/perf/trace/beauty/flock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 #include "trace/beauty/beauty.h" #include <linux/kernel.h> #include <linux/fcntl.h> #ifndef LOCK_MAND #define LOCK_MAND 32 #endif #ifndef LOCK_READ #define LOCK_READ 64 #endif #ifndef LOCK_WRITE #define LOCK_WRITE 128 #endif #ifndef LOCK_RW #define LOCK_RW 192 #endif s...
Linux kernel'inin 'tools/perf/trace/beauty/arch_prctl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 /* * trace/beauty/arch_prctl.c * * Copyright (C) 2018, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "trace/beauty/beauty.h" #include <linux/kernel.h> #include "trace/beauty/generated/x86_arch_prctl_code_array.c" static DEFINE_STRARRAY_OFFSET(x86_a...
Linux kernel'inin 'tools/perf/trace/beauty/sync_file_range' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 /* * trace/beauty/sync_file_range.c * * Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "trace/beauty/beauty.h" #include <linux/log2.h> #include <linux/fs.h> #ifndef SYNC_FILE_RANGE_WRITE_AND_WAIT #define SYNC_FILE_RANGE_WAIT_BEFOR...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/drm/i915_drm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without l...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/drm/drm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Header for the Direct Rendering Manager * * Author: Rickard E. (Rik) Faith <faith@valinux.com> * * Acknowledgments: * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg. */ /* * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. * Copyright 2000 VA Linux Systems, Inc., Su...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/stat' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_STAT_H #define _UAPI_LINUX_STAT_H #include <linux/types.h> #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) #define S_IFMT 00170000 #define S_IFSOCK 0140000 #define S_IFLNK 0120000 #define S_IFREG 0100000 #def...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/usbdevice_fs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /*****************************************************************************/ /* * usbdevice_fs.h -- USB device file system. * * Copyright (C) 2000 * Thomas Sailer (sailer@ife.ee.ethz.ch) * * This program is free software; you can ...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/prctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_PRCTL_H #define _LINUX_PRCTL_H #include <linux/types.h> /* Values to pass as first argument to prctl() */ #define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ #define PR_GET_PDEATHSIG 2 /* Second arg is a ptr to return the sign...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/mount' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef _UAPI_LINUX_MOUNT_H #define _UAPI_LINUX_MOUNT_H #include <linux/types.h> /* * These are the fs-independent mount-flags: up to 32 flags are supported * * Usage of these is restricted within the kernel to core mount(2) code and * callers of sys_mount() only. Filesystems should be using the SB_* * equ...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/fcntl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_FCNTL_H #define _UAPI_LINUX_FCNTL_H #include <asm/fcntl.h> #include <linux/openat2.h> #include <linux/types.h> #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) #define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1) /* * Request nofication...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/fs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_FS_H #define _UAPI_LINUX_FS_H /* * This file has definitions for some important file table structures * and constants and structures used by various generic file system * ioctl's. Please do not make any changes in this file bef...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/sched' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_LINUX_SCHED_H #define _UAPI_LINUX_SCHED_H #include <linux/types.h> /* * cloning flags: */ #define CSIGNAL 0x000000ff /* signal mask to be sent at exit */ #define CLONE_VM 0x00000100 /* set if VM shared between processes */ #define CL...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/fadvise' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef FADVISE_H_INCLUDED #define FADVISE_H_INCLUDED #define POSIX_FADV_NORMAL 0 /* No further special treatment. */ #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page referenc...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/linux/vhost' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _LINUX_VHOST_H #define _LINUX_VHOST_H /* Userspace interface for in-kernel virtio accelerators. */ /* vhost is used to reduce the number of system calls involved in virtio. * * Existing virtio net code is used in the guest without modificati...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/uapi/sound/asound' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Advanced Linux Sound Architecture - ALSA - Driver * Copyright (c) 1994-2003 by Jaroslav Kysela <perex@perex.cz>, * Abramo Bagnara <abramo@alsa-project.org> */ #ifndef _UAPI__SOUND_ASOUND_H #define _UAPI__SOUND_A...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/include/linux/socket' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SOCKET_H #define _LINUX_SOCKET_H #include <asm/socket.h> /* arch-dependent defines */ #include <linux/sockios.h> /* the SIOCxxx I/O controls */ #include <linux/uio.h> /* iovec support */ #include <linux/types.h> /* pid_t */ #include <linux/compiler.h...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/arch/x86/include/uapi/asm/prctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_X86_PRCTL_H #define _ASM_X86_PRCTL_H #define ARCH_SET_GS 0x1001 #define ARCH_SET_FS 0x1002 #define ARCH_GET_FS 0x1003 #define ARCH_GET_GS 0x1004 #define ARCH_GET_CPUID 0x1011 #define ARCH_SET_CPUID 0x1012 #define ARCH_GET_XC...
Linux işletim sistemi çekirdeği için 'tools/perf/trace/beauty/arch/x86/include/asm/irq_vectors' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_IRQ_VECTORS_H #define _ASM_X86_IRQ_VECTORS_H #include <linux/threads.h> /* * Linux IRQ vector layout. * * There are 256 IDT entries (per CPU - each entry is 8 bytes) which can * be defined by Linux. They are used as a jump table by the CPU when a * give...
Linux kernel'inin 'tools/perf/trace/beauty/tracepoints/x86_msr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 /* * trace/beauty/x86_msr.c * * Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "trace/beauty/beauty.h" #include "trace/beauty/generated/x86_arch_MSRs_array.c" static DEFINE_STRARRAY(x86_MSRs, "MSR_"); static DEFINE_STRARRAY_OFFSE...
Linux kernel'inin 'tools/perf/trace/beauty/tracepoints/x86_irq_vectors' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: LGPL-2.1 /* * trace/beauty/x86_irq_vectors.c * * Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "trace/beauty/beauty.h" #include "trace/beauty/generated/x86_arch_irq_vectors_array.c" static DEFINE_STRARRAY(x86_irq_vectors, "_VECTOR"); st...
Linux kernel'inin 'tools/perf/bench/epoll-wait' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #ifdef HAVE_EVENTFD_SUPPORT /* * Copyright (C) 2018 Davidlohr Bueso. * * This program benchmarks concurrent epoll_wait(2) monitoring multiple * file descriptors under one or two load balancing models. The first, * and default, is the single/combined queueing (which refers t...
Linux kernel'inin 'tools/perf/bench/syscall' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * * syscall.c * * syscall: Benchmark for system call performance */ #include "../perf.h" #include "../util/util.h" #include <subcmd/parse-options.h> #include "../builtin.h" #include "bench.h" #include <stdio.h> #include <sys/time.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/wait.h> #in...
Linux kernel'inin 'tools/perf/bench/breakpoint' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <subcmd/parse-options.h> #include <linux/hw_breakpoint.h> #include <linux/perf_event.h> #include <linux/time64.h> #include <sys/syscall.h> #include <sys/ioctl.h> #include <sys/time.h> #include <pthread.h> #include <stddef.h> #include <stdlib.h> #include <unistd.h> #inc...
Linux kernel'inin 'tools/perf/bench/futex-requeue' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Davidlohr Bueso <davidlohr@hp.com> * * futex-requeue: Block a bunch of threads on futex1 and requeue them * on futex2, N at a time. * * This program is particularly useful to measure the latency of nthread * requeues without waking ...
Linux kernel'inin 'tools/perf/bench/kallsyms-parse' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Benchmark of /proc/kallsyms parsing. * * Copyright 2020 Google LLC. */ #include <stdlib.h> #include "bench.h" #include "../util/stat.h" #include <linux/time64.h> #include <subcmd/parse-options.h> #include <symbol/kallsyms.h> static unsigned int iterations = 100; stati...
Linux kernel'inin 'tools/perf/bench/numa' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * numa.c * * numa: Simulate NUMA-sensitive workload and measure their NUMA performance */ #include <inttypes.h> #include <subcmd/parse-options.h> #include "../util/cloexec.h" #include "bench.h" #include <errno.h> #include <sched.h> #include <stdio.h> #include <assert....
Linux işletim sistemi çekirdeği için 'tools/perf/bench/mem-memset-arch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifdef HAVE_ARCH_X86_64_SUPPORT #define MEMSET_FN(fn, init, fini, name, desc) \ void *fn(void *, int, size_t); #include "mem-memset-x86-64-asm-def.h" #undef MEMSET_FN #endif ```
Linux kernel'inin 'tools/perf/bench/sched-messaging' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * * sched-messaging.c * * messaging: Benchmark for scheduler and IPC mechanisms * * Based on hackbench by Rusty Russell <rusty@rustcorp.com.au> * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> * */ #include <subcmd/parse-options.h> #include "bench.h...
Linux kernel'inin 'tools/perf/bench/sched-pipe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * * sched-pipe.c * * pipe: Benchmark for pipe() * * Based on pipe-test-1m.c by Ingo Molnar <mingo@redhat.com> * http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> */ #include <subcmd/pa...
Linux işletim sistemi çekirdeği için 'tools/perf/bench/futex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Glibc independent futex library for testing kernel functionality. * Shamelessly stolen from Darren Hart <dvhltc@us.ibm.com> * http://git.kernel.org/cgit/linux/kernel/git/dvhart/futextest.git/ */ #ifndef _FUTEX_H #define _FUTEX_H #include <stdbool.h> #include <un...
Linux kernel'inin 'tools/perf/bench/pmu-scan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Benchmark scanning sysfs files for PMU information. * * Copyright 2023 Google LLC. */ #include <errno.h> #include <stdio.h> #include "bench.h" #include "util/debug.h" #include "util/pmu.h" #include "util/pmus.h" #include "util/stat.h" #include <linux/atomic.h> #include ...
Linux işletim sistemi çekirdeği için 'tools/perf/bench/mem-memcpy-x86-64-asm-def' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ MEMCPY_FN(memcpy_orig, mem_alloc, mem_free, "x86-64-unrolled", "unrolled memcpy() in arch/x86/lib/memcpy_64.S") MEMCPY_FN(__memcpy, mem_alloc, mem_free, "x86-64-movsq", "movsq-based memcpy() in arch/x86/lib/memcpy_64.S") ```
Linux kernel'inin 'tools/perf/bench/futex-wake' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Davidlohr Bueso <davidlohr@hp.com> * * futex-wake: Block a bunch of threads on a futex and wake'em up, N at a time. * * This program is particularly useful to measure the latency of nthread wakeups * in non-error situations: all waiters are queued...
Linux kernel'inin 'tools/perf/bench/synthesize' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Benchmark synthesis of perf events such as at the start of a 'perf * record'. Synthesis is done on the current process and the 'dummy' event * handlers are invoked that support dump_trace but otherwise do nothing. * * Copyright 2019 Google LLC. */ #include <errno.h> #...
Linux işletim sistemi çekirdeği için 'tools/perf/bench/mem-memcpy-arch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifdef HAVE_ARCH_X86_64_SUPPORT #define MEMCPY_FN(fn, init, fini, name, desc) \ void *fn(void *, const void *, size_t); #include "mem-memcpy-x86-64-asm-def.h" #undef MEMCPY_FN #endif ```
Linux kernel'inin 'tools/perf/bench/find-bit-bench' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Benchmark find_next_bit and related bit operations. * * Copyright 2020 Google LLC. */ #include <stdlib.h> #include "bench.h" #include "../util/stat.h" #include <linux/bitmap.h> #include <linux/bitops.h> #include <linux/time64.h> #include <subcmd/parse-options.h> static...
Linux kernel'inin 'tools/perf/bench/mem-functions' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * mem-memcpy.c * * Simple memcpy() and memset() benchmarks * * Written by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> */ #include "bench.h" #include "../perf-sys.h" #include <subcmd/parse-options.h> #include "util/cloexec.h" #include "util/debug.h" #include "util/hea...
Linux kernel'inin 'tools/perf/bench/sched-seccomp-notify' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <subcmd/parse-options.h> #include "bench.h" #include <uapi/linux/filter.h> #include <sys/types.h> #include <sys/time.h> #include <linux/unistd.h> #include <sys/syscall.h> #include <sys/ioctl.h> #include <linux/time64.h> #include <uapi/linux/seccomp.h> #include <sys/prc...
Linux kernel'inde 'tools/perf/bench/mem-memcpy-x86-64-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* Various wrappers to make the kernel .S file build in user-space: */ // memcpy_orig is being defined as SYM_L_LOCAL but we need it #define SYM_FUNC_START_LOCAL(name) \ SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) #define memcpy MEMCPY /* ...
Linux kernel'inin 'tools/perf/bench/futex-wake-parallel' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Davidlohr Bueso. * * Block a bunch of threads and let parallel waker threads wakeup an * equal amount of them. The program output reflects the avg latency * for each individual thread to service its share of work. Ultimately * it can be used to meas...
Linux işletim sistemi çekirdeği için 'tools/perf/bench/mem-memset-x86-64-asm-def' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ MEMSET_FN(memset_orig, mem_alloc, mem_free, "x86-64-unrolled", "unrolled memset() in arch/x86/lib/memset_64.S") MEMSET_FN(__memset, mem_alloc, mem_free, "x86-64-stosq", "movsq-based memset() in arch/x86/lib/memset_64.S") ```
Linux kernel'inin 'tools/perf/bench/futex-hash' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Davidlohr Bueso <davidlohr@hp.com> * * futex-hash: Stress the hell out of the Linux kernel futex uaddr hashing. * * This program is particularly useful for measuring the kernel's futex hash * table/function implementation. In order for it to make s...
Linux kernel'inin 'tools/perf/bench/inject-buildid' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <stdlib.h> #include <stddef.h> #include <ftw.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <pthread.h> #include <sys/mman.h> #include <sys/wait.h> #include <linux/kernel.h> #include <linux/time64.h> #include <linux/list.h> #include <linux/err.h> ...
Linux kernel'inin 'tools/perf/bench/futex-lock-pi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Davidlohr Bueso. */ /* For the CLR_() macros */ #include <string.h> #include <pthread.h> #include <signal.h> #include "../util/mutex.h" #include "../util/stat.h" #include <subcmd/parse-options.h> #include <linux/compiler.h> #include <linux/kernel.h> #...
Linux kernel'inin 'tools/perf/bench/futex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <err.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <sys/prctl.h> #include "futex.h" #ifndef PR_FUTEX_HASH #define PR_FUTEX_HASH 78 # define PR_FUTEX_HASH_SET_SLOTS 1 # define PR_FUTEX_HASH_GET_SLOTS 2 #endif // P...
Linux kernel'inin 'tools/perf/bench/uprobe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* * uprobe.c * * uprobe benchmarks * * Copyright (C) 2023, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> */ #include "../perf.h" #include "../util/util.h" #include <subcmd/parse-options.h> #include "../builtin.h" #include "bench.h" #inclu...
Linux kernel'inde 'tools/perf/bench/mem-memset-x86-64-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ // memset_orig is being defined as SYM_L_LOCAL but we need it #define SYM_FUNC_START_LOCAL(name) \ SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) #define memset MEMSET /* don't hide glibc's memset() */ #define altinstr_replacement text #define ...
Linux kernel'inin 'tools/perf/bench/epoll-ctl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2018 Davidlohr Bueso. * * Benchmark the various operations allowed for epoll_ctl(2). * The idea is to concurrently stress a single epoll instance */ #ifdef HAVE_EVENTFD_SUPPORT /* For the CLR_() macros */ #include <string.h> #include <pthread.h> #include...
Linux işletim sistemi çekirdeği için 'tools/perf/bench/bench' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef BENCH_H #define BENCH_H #include <sys/time.h> extern struct timeval bench__start, bench__end, bench__runtime; /* * The madvise transparent hugepage constants were added in glibc * 2.13. For compatibility with older versions of glibc, define these * tokens if the...
Linux kernel'inin 'tools/perf/bench/evlist-open-close' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include "bench.h" #include "../util/debug.h" #include "../util/stat.h" #include "../util/evlist.h" #include "../util/evsel.h" #include "../util/strbuf.h" #include "../util/record...
Linux kernel'inin 'tools/perf/jvmti/jvmti_agent' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * jvmti_agent.c: JVMTI agent interface * * Adapted from the Oprofile code in opagent.c: * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License,...
Linux işletim sistemi çekirdeği için 'tools/perf/jvmti/jvmti_agent' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __JVMTI_AGENT_H__ #define __JVMTI_AGENT_H__ #include <sys/types.h> #include <stdint.h> #include <jvmti.h> #if defined(__cplusplus) extern "C" { #endif typedef struct { unsigned long pc; int line_number; int discrim; /* discriminator -- 0 for now */ jmethodID ...
Linux kernel'inin 'tools/perf/jvmti/libjvmti' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/string.h> #include <sys/types.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <err.h> #include <jvmti.h> #ifdef HAVE_JVMTI_CMLR #include <jvmticmlr.h> #endif #include <limits.h> #include "jvmti_agent.h" static ...
Linux kernel'inin 'tools/perf/tests/hists_common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <inttypes.h> #include "util/debug.h" #include "util/dso.h" #include "util/event.h" // struct perf_sample #include "util/map.h" #include "util/symbol.h" #include "util/sort.h" #include "util/evsel.h" #include "util/machine.h" #include "util/thread.h" #include "tests/hist...
Linux kernel'inin 'tools/perf/tests/vmlinux-kallsyms' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/rbtree.h> #include <inttypes.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include "dso.h" #include "map.h" #include "symbol.h" #include <internal/lib.h> // page_size #include "tests.h" #include "debug.h" #include "mac...
Linux kernel'inin 'tools/perf/tests/subcmd-help' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "tests.h" #include <linux/compiler.h> #include <subcmd/help.h> static int test__load_cmdnames(struct test_suite *test __maybe_unused, int subtest __maybe_unused) { struct cmdnames cmds = {}; add_cmdname(&cmds, "aaa", 3); add_cmdname(&cmds, "foo", 3); add...
Linux kernel'inin 'tools/perf/tests/hists_link' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "tests.h" #include "debug.h" #include "symbol.h" #include "sort.h" #include "evsel.h" #include "evlist.h" #include "machine.h" #include "map.h" #include "parse-events.h" #include "thread.h" #include "hists_common.h" #include "util/mmap.h" #include <errno.h> #include <li...
Linux kernel'inin 'tools/perf/tests/sw-clock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> #include <sys/mman.h> #include <linux/compiler.h> #include <linux/string.h> #include "tests.h" #include "util/debug.h" #include "util/evsel.h" #include "util/evlist.h" #include ...
Linux kernel'inin 'tools/perf/tests/mem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "util/map_symbol.h" #include "util/mem-events.h" #include "util/mem-info.h" #include "util/symbol.h" #include "linux/perf_event.h" #include "util/debug.h" #include "tests.h" #include <string.h> static int check(union perf_mem_data_src data_src, const char *string) ...
Linux kernel'inin 'tools/perf/tests/event_update' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <perf/cpumap.h> #include <string.h> #include "cpumap.h" #include "evlist.h" #include "evsel.h" #include "header.h" #include "machine.h" #include "util/synthetic-events.h" #include "target.h" #include "tool.h" #include "tests.h" #include "debu...
Linux kernel'inin 'tools/perf/tests/mmap-thread-lookup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <inttypes.h> #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/mman.h> #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include "debug.h" #include "env.h" #include "event.h" #include "tests.h" #include "machine.h" #include "th...
Linux kernel'inin 'tools/perf/tests/parse-no-sample-id-all' alt sistemi için gerekli C kaynak kodunu implemente et.
```c #include <linux/kernel.h> #include <linux/types.h> #include <stddef.h> #include "tests.h" #include "event.h" #include "evlist.h" #include "header.h" #include "debug.h" #include "util/sample.h" static int process_event(struct evlist **pevlist, union perf_event *event) { struct perf_sample sample; int ret; if...
Linux kernel'inin 'tools/perf/tests/openat-syscall' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> #include <api/fs/tracing_path.h> #include <linux/err.h> #include <linux/string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "thread_map.h" #include "evsel.h" #include "debug.h" #include "...
Linux kernel'inin 'tools/perf/tests/time-utils-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/time64.h> #include <inttypes.h> #include <string.h> #include "time-utils.h" #include "evlist.h" #include "session.h" #include "debug.h" #include "tests.h" static bool test__parse_nsec_time(const char *str, u64 expected) { u64 ptime; ...
Linux kernel'inin 'tools/perf/tests/symbols' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/string.h> #include <sys/mman.h> #include <limits.h> #include "debug.h" #include "dso.h" #include "env.h" #include "machine.h" #include "thread.h" #include "symbol.h" #include "map.h" #include "util.h" #include "tests.h" struct test_in...
Linux kernel'inin 'tools/perf/tests/genelf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <linux/compiler.h> #include "debug.h" #include "tests.h" #ifdef HAVE_JITDUMP #include <libelf.h> #include "../util/genelf.h" #endif #define TEMPL "/tmp/perf-test-X...
Linux kernel'inin 'tools/perf/tests/pmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "evlist.h" #include "evsel.h" #include "parse-events.h" #include "pmu.h" #include "pmus.h" #include "tests.h" #include "debug.h" #include "fncache.h" #include <api/fs/fs.h> #include <ctype.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #...
Linux kernel'inin 'tools/perf/tests/unit_number__scnprintf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <inttypes.h> #include <linux/compiler.h> #include <linux/types.h> #include <string.h> #include "tests.h" #include "units.h" #include "debug.h" static int test__unit_number__scnprint(struct test_suite *t __maybe_unused, int subtest __maybe_unused) { struct { u64 n;...
Linux kernel'inin 'tools/perf/tests/demangle-rust-v0-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: Apache-2.0 OR MIT #include "tests.h" #include "debug.h" #include "symbol.h" #include <linux/kernel.h> #include <stdlib.h> #include <string.h> static int test__demangle_rust(struct test_suite *test __maybe_unused, int subtest __maybe_unused) { int ret = TEST_OK; char *buf = NULL; siz...
Linux işletim sistemi çekirdeği için 'tools/perf/tests/tests-scripts' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef TESTS_SCRIPTS_H #define TESTS_SCRIPTS_H #include "tests.h" struct test_suite **create_script_test_suites(void); #endif /* TESTS_SCRIPTS_H */ ```
Linux işletim sistemi çekirdeği için 'tools/perf/tests/hists_common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __PERF_TESTS__HISTS_COMMON_H__ #define __PERF_TESTS__HISTS_COMMON_H__ struct machine; struct machines; #define FAKE_PID_PERF1 100 #define FAKE_PID_PERF2 200 #define FAKE_PID_BASH 300 #define FAKE_MAP_PERF 0x400000 #define FAKE_MAP_BASH 0x400000 #define FA...
Linux kernel'inin 'tools/perf/tests/openat-syscall-tp-fields' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <stdbool.h> #include <linux/err.h> #include <linux/string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "evlist.h" #include "evsel.h" #include "thread_map.h" #include "record.h" #include "tests.h" #include "debug.h" #include "util/mmap.h" #...
Linux kernel'inin 'tools/perf/tests/pe-file-parsing' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <stdbool.h> #include <inttypes.h> #include <stdlib.h> #include <string.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/types.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <subcmd/exec-cmd.h> #include "debug.h" #incl...
Linux kernel'inin 'tools/perf/tests/bp_signal_overflow' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Originally done by Vince Weaver <vincent.weaver@maine.edu> for * perf_event_tests (git://github.com/deater/perf_event_tests) */ /* * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select * 'int-ll64.h' and avoid compile warnings when printing __u64 w...
Linux kernel'inin 'tools/perf/tests/event-times' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/string.h> #include <errno.h> #include <inttypes.h> #include <string.h> #include <sys/wait.h> #include <perf/cpumap.h> #include "tests.h" #include "evlist.h" #include "evsel.h" #include "debug.h" #include "parse-events.h" #include "thre...
Linux kernel'inin 'tools/perf/tests/pfm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test support for libpfm4 event encodings. * * Copyright 2020 Google LLC. */ #include <errno.h> #include "tests.h" #include "util/debug.h" #include "util/evlist.h" #include "util/pfm.h" #include <linux/kernel.h> #ifdef HAVE_LIBPFM static int count_pfm_events(struct per...
Linux kernel'inin 'tools/perf/tests/dlfilter-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test dlfilter C API. A perf.data file is synthesized and then processed * by perf script with dlfilters named dlfilter-test-api-v*.so. Also a C file * is compiled to provide a dso to match the synthesized perf.data file. */ #include <linux/compiler.h> #include <linux/k...
Linux kernel'inin 'tools/perf/tests/demangle-ocaml-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <string.h> #include <stdlib.h> #include <stdio.h> #include "debug.h" #include "symbol.h" #include "tests.h" static int test__demangle_ocaml(struct test_suite *test __maybe_unused, int subtest __maybe_unused) { int ret = TEST_OK; char *buf = NULL; size_t i; struct ...
Linux kernel'inin 'tools/perf/tests/builtin-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * builtin-test.c * * Builtin regression testing command: ever growing number of sanity tests */ #include <ctype.h> #include <fcntl.h> #include <errno.h> #ifdef HAVE_BACKTRACE_SUPPORT #include <execinfo.h> #endif #include <poll.h> #include <unistd.h> #include <setjmp.h> #i...
Linux kernel'inin 'tools/perf/tests/mmap-basic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <stdlib.h> #include <perf/cpumap.h> #include "cpumap.h" #include "debug.h" #include "event.h" #include "evlist.h" #include "evsel.h" #include "thread_map.h" #include "tests.h" #include "util/affinity.h" #inclu...
Linux kernel'inin 'tools/perf/tests/topology' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <string.h> #include <stdlib.h> #include <stdio.h> #include <perf/cpumap.h> #include "cpumap.h" #include "tests.h" #include "session.h" #include "evlist.h" #include "debug.h" #include "pmus.h" #include "target.h" #include <linux/err.h> #define TEMPL "/tmp/perf-test-XXXX...
Linux kernel'inin 'tools/perf/tests/pmu-events' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "math.h" #include "parse-events.h" #include "pmu.h" #include "pmus.h" #include "tests.h" #include <errno.h> #include <stdio.h> #include <linux/kernel.h> #include <linux/zalloc.h> #include "debug.h" #include "../pmu-events/pmu-events.h" #include <perf/evlist.h> #include ...
Linux kernel'inin 'tools/perf/tests/code-reading' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <linux/kconfig.h> #include <linux/kernel.h> #include <linux/rbtree.h> #include <linux/types.h> #include <linux/zalloc.h> #include <inttypes.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/param.h> #inclu...
Linux kernel'inin 'tools/perf/tests/event_groups' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <string.h> #include <unistd.h> #include <stdio.h> #include "linux/perf_event.h" #include "tests.h" #include "debug.h" #include "pmu.h" #include "pmus.h" #include "header.h" #include "../perf-sys.h" /* hw: cycles,instructions sw: context-switch, uncore: [arch dependent]...
Linux kernel'inin 'tools/perf/tests/openat-syscall-all-cpus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> /* For the CPU_* macros */ #include <sched.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <api/fs/fs.h> #include <linux/err.h> #include <linux/string.h> #include <api/fs/tracing_path.h> #include "evsel.h" #in...
Linux kernel'inin 'tools/perf/tests/perf-time-to-tsc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <unistd.h> #include <linux/types.h> #include <sys/prctl.h> #include <perf/cpumap.h> #include <perf/evlist.h> #include <perf/mmap.h> #include "debug.h" #include "parse-e...
Linux kernel'inin 'tools/perf/tests/bitmap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/bitmap.h> #include <perf/cpumap.h> #include <internal/cpumap.h> #include "tests.h" #include "debug.h" #define NBITS 100 static unsigned long *get_bitmap(const char *str, int nbits) { struct perf_cpu_map *map = perf_cpu_map__new(str)...
Linux kernel'inin 'tools/perf/tests/sdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/epoll.h> #include <util/symbol.h> #include <linux/filter.h> #include "tests.h" #include "debug.h" #include "probe-file.h" #include "build-id.h" #include "util.h" /* T...
Linux kernel'inin 'tools/perf/tests/evsel-roundtrip-name' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "evlist.h" #include "evsel.h" #include "parse-events.h" #include "tests.h" #include "debug.h" #include <linux/kernel.h> static int perf_evsel__roundtrip_cache_name_test(void) { int ret = TEST_OK; for (int type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) { for (in...
Linux kernel'inin 'tools/perf/tests/parse-metric' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <errno.h> #include <string.h> #include <perf/cpumap.h> #include <perf/evlist.h> #include "metricgroup.h" #include "tests.h" #include "pmu-events/pmu-events.h" #include "evlist.h" #include "rblist.h" #include "debug.h" #include "expr.h" #inclu...
Linux kernel'inin 'tools/perf/tests/switch-tracking' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <sys/time.h> #include <sys/prctl.h> #include <errno.h> #include <limits.h> #include <time.h> #include <stdlib.h> #include <linux/zalloc.h> #include <linux/err.h> #include <perf/cpumap.h> #include <perf/evlist.h> #include <perf/mmap.h> #include "debug.h" #include "parse...
Linux kernel'inin 'tools/perf/tests/backward-ring-buffer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test backward bit in event attribute, read ring buffer from end to * beginning */ #include <evlist.h> #include <sys/prctl.h> #include "record.h" #include "tests.h" #include "debug.h" #include "parse-events.h" #include "util/mmap.h" #include <errno.h> #include <linux/str...
Linux kernel'inin 'tools/perf/tests/hists_output' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "util/debug.h" #include "util/dso.h" #include "util/event.h" #include "util/map.h" #include "util/symbol.h" #include "util/sort.h" #include "util/evsel.h" #include "util/evlist.h" #include "util/machine.h" #include "util/thread.h" #include "util/parse-events.h" #include...
Linux kernel'inin 'tools/perf/tests/sigtrap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Basic test for sigtrap support. * * Copyright (C) 2021, Google LLC. */ #include <errno.h> #include <stdint.h> #include <stdlib.h> #include <linux/hw_breakpoint.h> #include <linux/string.h> #include <pthread.h> #include <signal.h> #include <sys/ioctl.h> #include <sys/sy...
Linux kernel'inin 'tools/perf/tests/perf-hooks' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <signal.h> #include <stdlib.h> #include "tests.h" #include "debug.h" #include "perf-hooks.h" static void sigsegv_handler(int sig __maybe_unused) { pr_debug("SIGSEGV is observed as expected, try to recover.\n"); perf_hooks__recover(); signal(SIGSEGV, SIG_DFL); rais...
Linux kernel'inin 'tools/perf/tests/hwmon_pmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) #include "debug.h" #include "evlist.h" #include "hwmon_pmu.h" #include "parse-events.h" #include "tests.h" #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <linux/compiler.h> #include <linux/kernel.h> #include <linux/string.h> static const...
Linux kernel'inin 'tools/perf/tests/dwarf-unwind' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/types.h> #include <linux/zalloc.h> #include <inttypes.h> #include <limits.h> #include <unistd.h> #include "tests.h" #include "debug.h" #include "env.h" #include "machine.h" #include "event.h" #include "../util/unwind.h" #include "perf_...
Linux kernel'inin 'tools/perf/tests/pe-file' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // pe-file.exe and pe-file.exe.debug built with; // x86_64-w64-mingw32-gcc -o pe-file.exe pe-file.c // -Wl,--file-alignment,4096 -Wl,--build-id // x86_64-w64-mingw32-objcopy --only-keep-debug // --compress-debug-sections pe-file.exe pe-file.exe.debug // x86_64-w64-mingw32-o...