aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-get-current-comm.c
blob: 1e25cd1cc7e15ff026ee04e49316621843ae01cf (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 *buf;
  uint32_t size_of_buf;

  ret = bpf_get_current_comm (buf, size_of_buf);
}

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