cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

threadmap.h (485B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __LIBPERF_INTERNAL_THREADMAP_H
      3#define __LIBPERF_INTERNAL_THREADMAP_H
      4
      5#include <linux/refcount.h>
      6#include <sys/types.h>
      7#include <unistd.h>
      8
      9struct thread_map_data {
     10	pid_t	 pid;
     11	char	*comm;
     12};
     13
     14struct perf_thread_map {
     15	refcount_t	refcnt;
     16	int		nr;
     17	int		err_thread;
     18	struct thread_map_data map[];
     19};
     20
     21struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr);
     22
     23#endif /* __LIBPERF_INTERNAL_THREADMAP_H */