Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files240
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- c++/
- cs-etm-decoder/
- include/
- intel-pt-decoder/
- libunwind/
- scripting-engines/
- Build
- PERF-VERSION-GEN
- annotate.c
- annotate.h
- arm-spe-pkt-decoder.c
- arm-spe-pkt-decoder.h
- arm-spe.c
- arm-spe.h
- auxtrace.c
- auxtrace.h
- block-range.c
- block-range.h
- bpf-loader.c
- bpf-loader.h
- bpf-prologue.c
- bpf-prologue.h
- branch.c
- branch.h
- build-id.c
- build-id.h
- cache.h
- call-path.c
- call-path.h
- callchain.c
- callchain.h
- cgroup.c
- cgroup.h
- cloexec.c
- cloexec.h
- color.c
- color.h
- comm.c
- comm.h
- compress.h
- config.c
- config.h
- counts.c
- counts.h
- cpumap.c
- cpumap.h
- cs-etm.c
- cs-etm.h
- ctype.c
- data-convert-bt.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/perf/util/env.h
Text · 1,630 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PERF_ENV_H
#define __PERF_ENV_H
#include <linux/types.h>
#include "cpumap.h"
struct cpu_topology_map {
int socket_id;
int core_id;
};
struct cpu_cache_level {
u32 level;
u32 line_size;
u32 sets;
u32 ways;
char *type;
char *size;
char *map;
};
struct numa_node {
u32 node;
u64 mem_total;
u64 mem_free;
struct cpu_map *map;
};
struct memory_node {
u64 node;
u64 size;
unsigned long *set;
};
struct perf_env {
char *hostname;
char *os_release;
char *version;
char *arch;
int nr_cpus_online;
int nr_cpus_avail;
char *cpu_desc;
char *cpuid;
unsigned long long total_mem;
unsigned int msr_pmu_type;
int nr_cmdline;
int nr_sibling_cores;
int nr_sibling_threads;
int nr_numa_nodes;
int nr_memory_nodes;
int nr_pmu_mappings;
int nr_groups;
char *cmdline;
const char **cmdline_argv;
char *sibling_cores;
char *sibling_threads;
char *pmu_mappings;
struct cpu_topology_map *cpu;
struct cpu_cache_level *caches;
int caches_cnt;
struct numa_node *numa_nodes;
struct memory_node *memory_nodes;
unsigned long long memory_bsize;
};
extern struct perf_env perf_env;
void perf_env__exit(struct perf_env *env);
int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
int perf_env__read_cpu_topology_map(struct perf_env *env);
void cpu_cache_level__free(struct cpu_cache_level *cache);
const char *perf_env__arch(struct perf_env *env);
const char *perf_env__raw_arch(struct perf_env *env);
int perf_env__nr_cpus_avail(struct perf_env *env);
#endif /* __PERF_ENV_H */