probe-file.h (3eb66e91a25497065c5322b1268cbc3953642227) probe-file.h (1e032f7cfa141b4424827b0ecb0ea899f84e182e)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PROBE_FILE_H
3#define __PROBE_FILE_H
4
5#include "probe-event.h"
6
7struct strlist;
8struct strfilter;

--- 56 unchanged lines hidden (view full) ---

65struct probe_cache_entry *probe_cache__find(struct probe_cache *pcache,
66 struct perf_probe_event *pev);
67struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache,
68 const char *group, const char *event);
69int probe_cache__show_all_caches(struct strfilter *filter);
70bool probe_type_is_available(enum probe_type type);
71bool kretprobe_offset_is_supported(void);
72bool uprobe_ref_ctr_is_supported(void);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PROBE_FILE_H
3#define __PROBE_FILE_H
4
5#include "probe-event.h"
6
7struct strlist;
8struct strfilter;

--- 56 unchanged lines hidden (view full) ---

65struct probe_cache_entry *probe_cache__find(struct probe_cache *pcache,
66 struct perf_probe_event *pev);
67struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache,
68 const char *group, const char *event);
69int probe_cache__show_all_caches(struct strfilter *filter);
70bool probe_type_is_available(enum probe_type type);
71bool kretprobe_offset_is_supported(void);
72bool uprobe_ref_ctr_is_supported(void);
73bool user_access_is_supported(void);
73#else /* ! HAVE_LIBELF_SUPPORT */
74static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused)
75{
76 return NULL;
77}
78#define probe_cache__delete(pcache) do {} while (0)
79#endif
80#endif
74#else /* ! HAVE_LIBELF_SUPPORT */
75static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused, struct nsinfo *nsi __maybe_unused)
76{
77 return NULL;
78}
79#define probe_cache__delete(pcache) do {} while (0)
80#endif
81#endif