unsigned int valSize G_GNUC_UNUSED,
unsigned int maxEntries G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
int progType G_GNUC_UNUSED,
unsigned int insnCnt G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
int targetfd G_GNUC_UNUSED,
int attachType G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
int targetfd G_GNUC_UNUSED,
int attachType G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
unsigned int *progcnt G_GNUC_UNUSED,
void *progids G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
int
virBPFGetProg(unsigned int id G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
struct bpf_prog_info *info G_GNUC_UNUSED,
unsigned int **mapIDs G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
int
virBPFGetMap(unsigned int id G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
virBPFGetMapInfo(int mapfd G_GNUC_UNUSED,
struct bpf_map_info *info G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
void *key G_GNUC_UNUSED,
void *val G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
void *key G_GNUC_UNUSED,
void *nextKey G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
void *key G_GNUC_UNUSED,
void *val G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
virBPFDeleteElem(int mapfd G_GNUC_UNUSED,
void *key G_GNUC_UNUSED)
{
- virReportSystemError(ENOSYS, "%s",
- _("BPF not supported with this kernel"));
+ errno = ENOSYS;
return -1;
}
#endif /* !HAVE_SYS_SYSCALL_H || !HAVE_DECL_BPF_PROG_QUERY */