aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-perf-event-output.c
blob: 24ed565097ebb552789a183fd6c25fc3a1a52ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */

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

void
foo ()
{
  int ret;
  void *ctx, *map;
  uint64_t flags;
  void *data;
  uint64_t size;

  ret = bpf_perf_event_output (ctx, map, flags, data, size);
}

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