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

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

void
foo ()
{
  int ret;
  void *map;
  uint32_t index;

  ret = bpf_current_task_under_cgroup (map, index);
}

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