Merge tag 'cgroup-for-6.11-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / tools / perf / util / srccode.h
CommitLineData
dd2e18e9
AK
1#ifndef SRCCODE_H
2#define SRCCODE_H 1
3
4fed0726
ACM
4struct srccode_state {
5 char *srcfile;
6 unsigned line;
7};
8
9static inline void srccode_state_init(struct srccode_state *state)
10{
11 state->srcfile = NULL;
12 state->line = 0;
13}
14
15void srccode_state_free(struct srccode_state *state);
16
dd2e18e9
AK
17/* Result is not 0 terminated */
18char *find_sourceline(char *fn, unsigned line, int *lenp);
19
20#endif