Linux Audio

Check our new training course

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