Merge tag '6.9-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[linux-2.6-block.git] / tools / perf / util / comm.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1902efe7
FW
2#ifndef __PERF_COMM_H
3#define __PERF_COMM_H
4
1902efe7 5#include <linux/list.h>
f0049f2c
ACM
6#include <linux/types.h>
7#include <stdbool.h>
1902efe7
FW
8
9struct comm_str;
10
11struct comm {
12 struct comm_str *comm_str;
13 u64 start;
14 struct list_head list;
65de51f9 15 bool exec;
0db15b1e
AH
16 union { /* Tool specific area */
17 void *priv;
18 u64 db_id;
19 };
1902efe7
FW
20};
21
22void comm__free(struct comm *comm);
65de51f9 23struct comm *comm__new(const char *str, u64 timestamp, bool exec);
1902efe7 24const char *comm__str(const struct comm *comm);
65de51f9
AH
25int comm__override(struct comm *comm, const char *str, u64 timestamp,
26 bool exec);
1902efe7
FW
27
28#endif /* __PERF_COMM_H */