Diff of /daemon/opd_sfile.h [9871f0] .. [0d0e60] Maximize Restore

  Switch to unified view

a/daemon/opd_sfile.h b/daemon/opd_sfile.h
...
...
21
21
22
#include <sys/types.h>
22
#include <sys/types.h>
23
23
24
struct kernel_image;
24
struct kernel_image;
25
struct transient;
25
struct transient;
26
27
#define CG_HASH_TABLE_SIZE 16
28
29
struct cg_hash_entry {
30
  /** cg are indexable by { from, to, counter } */
31
  cookie_t from;
32
  cookie_t to;
33
  unsigned int counter;
34
  /** next in the hash slot */
35
  struct list_head next;
36
  samples_odb_t file;
37
};
26
38
27
/**
39
/**
28
 * Each set of sample files (where a set is over the
40
 * Each set of sample files (where a set is over the
29
 * physical counter types) will have one of these
41
 * physical counter types) will have one of these
30
 * for it. We match against the descriptions here to
42
 * for it. We match against the descriptions here to
...
...
50
    struct list_head lru;
62
    struct list_head lru;
51
    /** true if this file should be ignored in profiles */
63
    /** true if this file should be ignored in profiles */
52
    int ignored;
64
    int ignored;
53
    /** opened sample files */
65
    /** opened sample files */
54
    samples_odb_t files[OP_MAX_COUNTERS];
66
    samples_odb_t files[OP_MAX_COUNTERS];
67
  /** hash table of opened cg sample files, this table is hashed
68
   * on counter nr, from cookie and to cookie */
69
  struct list_head cg_files[CG_HASH_TABLE_SIZE];
55
};
70
};
56
71
57
/** clear any sfiles that are for the kernel */
72
/** clear any sfiles that are for the kernel */
58
void sfile_clear_kernel(void);
73
void sfile_clear_kernel(void);
59
74
...
...
78
 * that the PC value be set appropriately (needed for kernel images)
93
 * that the PC value be set appropriately (needed for kernel images)
79
 */
94
 */
80
struct sfile * sfile_find(struct transient const * trans);
95
struct sfile * sfile_find(struct transient const * trans);
81
96
82
/** Log the sample in a previously located sfile. */
97
/** Log the sample in a previously located sfile. */
83
void sfile_log_sample(struct sfile * sf, vma_t pc, uint counter);
98
void sfile_log_sample(struct transient const * trans);
84
99
85
/** initialise hashes */
100
/** initialise hashes */
86
void sfile_init(void);
101
void sfile_init(void);
87
102
88
#endif /* OPD_SFILE_H */
103
#endif /* OPD_SFILE_H */