^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * @file oprofile_stats.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * @remark Copyright 2002 OProfile authors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * @remark Read the file COPYING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * @author John Levon
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef OPROFILE_STATS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define OPROFILE_STATS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/atomic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct oprofile_stat_struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) atomic_t sample_lost_no_mm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) atomic_t sample_lost_no_mapping;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) atomic_t bt_lost_no_mapping;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) atomic_t event_lost_overflow;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) atomic_t multiplex_counter;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern struct oprofile_stat_struct oprofile_stats;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* reset all stats to zero */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) void oprofile_reset_stats(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) struct dentry;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* create the stats/ dir */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) void oprofile_create_stats_files(struct dentry *root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif /* OPROFILE_STATS_H */