<commit_before>#ifndef DEMMT_DRM_H
#define DEMMT_DRM_H

#include "mmt_bin_decode_nvidia.h"

#ifdef LIBDRM_AVAILABLE
int demmt_drm_ioctl_pre(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, void *state, struct mmt_memory_dump *args, int argc);
int demmt_drm_ioctl_post(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, uint64_t ret, uint64_t err, void *state,
		struct mmt_memory_dump *args, int argc);
void demmt_nouveau_gem_pushbuf_data(struct mmt_nouveau_pushbuf_data *data, void *state);
#else
static inline int demmt_drm_ioctl_pre(uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, void *state, struct mmt_memory_dump *args, int argc)
{
	return 1;
}
static inline int demmt_drm_ioctl_post(uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, uint64_t ret, uint64_t err, void *state,
		struct mmt_memory_dump *args, int argc)
{
	return 1;
}

static inline void demmt_nouveau_gem_pushbuf_data(struct mmt_nouveau_pushbuf_data *data, void *state)
{
}<commit_msg>demmt: fix build without libdrm_nouveau<commit_after>#ifndef DEMMT_DRM_H
#define DEMMT_DRM_H

#include "mmt_bin_decode_nvidia.h"

#ifdef LIBDRM_AVAILABLE
int demmt_drm_ioctl_pre(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, void *state, struct mmt_memory_dump *args, int argc);
int demmt_drm_ioctl_post(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, uint64_t ret, uint64_t err, void *state,
		struct mmt_memory_dump *args, int argc);
void demmt_nouveau_gem_pushbuf_data(struct mmt_nouveau_pushbuf_data *data, void *state);
#else
static inline int demmt_drm_ioctl_pre(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, void *state, struct mmt_memory_dump *args, int argc)
{
	return 1;
}
static inline int demmt_drm_ioctl_post(uint32_t fd, uint8_t dir, uint8_t nr, uint16_t size,
		struct mmt_buf *data, uint64_t ret, uint64_t err, void *state,
		struct mmt_memory_dump *args, int argc)
{
	return 1;
}

static inline void demmt_nouveau_gem_pushbuf_data(struct mmt_nouveau_pushbuf_data *data, void *state)
{
}
{'fraction_non_alphanumeric': 0.07825679475164012, 'fraction_numerical': 0.02999062792877226, 'mean_word_length': 6.707581227436823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3454453', 'n_tokens_mistral': 930, 'n_tokens_neox': 872, 'n_words': 230}