LCOV - code coverage report
Current view: top level - backends - bpf_symbol.c (source / functions) Hit Total Coverage
Test: elfutils-0.191 Lines: 0 6 0.0 %
Date: 2024-03-24 18:28:45 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 3 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* BPF specific symbolic name handling.
       2                 :            :    This file is part of elfutils.
       3                 :            : 
       4                 :            :    This file is free software; you can redistribute it and/or modify
       5                 :            :    it under the terms of either
       6                 :            : 
       7                 :            :      * the GNU Lesser General Public License as published by the Free
       8                 :            :        Software Foundation; either version 3 of the License, or (at
       9                 :            :        your option) any later version
      10                 :            : 
      11                 :            :    or
      12                 :            : 
      13                 :            :      * the GNU General Public License as published by the Free
      14                 :            :        Software Foundation; either version 2 of the License, or (at
      15                 :            :        your option) any later version
      16                 :            : 
      17                 :            :    or both in parallel, as here.
      18                 :            : 
      19                 :            :    elfutils is distributed in the hope that it will be useful, but
      20                 :            :    WITHOUT ANY WARRANTY; without even the implied warranty of
      21                 :            :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      22                 :            :    General Public License for more details.
      23                 :            : 
      24                 :            :    You should have received copies of the GNU General Public License and
      25                 :            :    the GNU Lesser General Public License along with this program.  If
      26                 :            :    not, see <http://www.gnu.org/licenses/>.  */
      27                 :            : 
      28                 :            : #ifdef HAVE_CONFIG_H
      29                 :            : # include <config.h>
      30                 :            : #endif
      31                 :            : 
      32                 :            : #include <assert.h>
      33                 :            : #include <elf.h>
      34                 :            : #include <stddef.h>
      35                 :            : #include <string.h>
      36                 :            : 
      37                 :            : #define BACKEND bpf_
      38                 :            : #include "libebl_CPU.h"
      39                 :            : 
      40                 :            : 
      41                 :            : /* Check for the simple reloc types.  */
      42                 :            : Elf_Type
      43                 :          0 : bpf_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type,
      44                 :            :                        int *addsub __attribute__ ((unused)))
      45                 :            : {
      46      [ #  #  # ]:          0 :   switch (type)
      47                 :            :     {
      48                 :            :     case R_BPF_64_64:
      49                 :            :       return ELF_T_XWORD;
      50                 :          0 :     case R_BPF_64_32:
      51                 :          0 :       return ELF_T_WORD;
      52                 :          0 :     default:
      53                 :          0 :       return ELF_T_NUM;
      54                 :            :     }
      55                 :            : }

Generated by: LCOV version 1.16