aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-perf-event-read-value.c
blob: 6e6184f451270179b38851c37e32ba81a5b89633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

#include <stdint.h>
#include <bpf-helpers.h>

void
foo ()
{
  int ret;
  void *map, *buf;
  uint64_t flags;
  uint64_t buf_size;

  ret = bpf_perf_event_read_value (map, flags, buf, buf_size);
}

/* { dg-final { scan-assembler "call\t55" } } */