mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
![Namhyung Kim](/assets/img/avatar_default.png)
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 <namhyung@kernel.org> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Tested-by: Jiri Olsa <jolsa@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/n/tip-n6pykiiymtgmcjs834go2t8x@git.kernel.org [ Fixed up const pointer issues ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
21 lines
458 B
C
21 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 */
|