projects
/
linux-2.6-microblaze.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag 'linux-kselftest-kunit-5.15-rc1' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
srccode.h
1
#ifndef SRCCODE_H
2
#define SRCCODE_H 1
3
4
struct srccode_state {
5
char *srcfile;
6
unsigned line;
7
};
8
9
static inline void srccode_state_init(struct srccode_state *state)
10
{
11
state->srcfile = NULL;
12
state->line = 0;
13
}
14
15
void srccode_state_free(struct srccode_state *state);
16
17
/* Result is not 0 terminated */
18
char *find_sourceline(char *fn, unsigned line, int *lenp);
19
20
#endif