Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __PERF_COMM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __PERF_COMM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/list.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <stdbool.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) struct comm_str;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct comm {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	struct comm_str *comm_str;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	u64 start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	struct list_head list;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	bool exec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	union { /* Tool specific area */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 		void	*priv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		u64	db_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void comm__free(struct comm *comm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct comm *comm__new(const char *str, u64 timestamp, bool exec);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) const char *comm__str(const struct comm *comm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int comm__override(struct comm *comm, const char *str, u64 timestamp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		   bool exec);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif  /* __PERF_COMM_H */