mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
At insert time, a hist entry should reference comm at the time otherwise it'll get the last comm anyway. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Tested-by: Jiri Olsa <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/n/[email protected] [ Fixed up const pointer issues ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
22 lines
458 B
C
22 lines
458 B
C
#ifndef __PERF_COMM_H
|
|
#define __PERF_COMM_H
|
|
|
|
#include "../perf.h"
|
|
#include <linux/rbtree.h>
|
|
#include <linux/list.h>
|
|
|
|
struct comm_str;
|
|
|
|
struct comm {
|
|
struct comm_str *comm_str;
|
|
u64 start;
|
|
struct list_head list;
|
|
};
|
|
|
|
void comm__free(struct comm *comm);
|
|
struct comm *comm__new(const char *str, u64 timestamp);
|
|
const char *comm__str(const struct comm *comm);
|
|
void comm__override(struct comm *comm, const char *str, u64 timestamp);
|
|
|
|
#endif /* __PERF_COMM_H */
|