/* * Copyright (C) 2015 Josh Poimboeuf * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ #ifndef _ARCH_H #define _ARCH_H #include #include "elf.h" #define INSN_FP_SAVE 1 #define INSN_FP_SETUP 2 #define INSN_FP_RESTORE 3 #define INSN_JUMP_CONDITIONAL 4 #define INSN_JUMP_UNCONDITIONAL 5 #define INSN_JUMP_DYNAMIC 6 #define INSN_CALL 7 #define INSN_CALL_DYNAMIC 8 #define INSN_RETURN 9 #define INSN_CONTEXT_SWITCH 10 #define INSN_BUG 11 #define INSN_NOP 12 #define INSN_OTHER 13 #define INSN_LAST INSN_OTHER int arch_decode_instruction(struct elf *elf, struct section *sec, unsigned long offset, unsigned int maxlen, unsigned int *len, unsigned char *type, unsigned long *displacement); #endif /* _ARCH_H */ >Tobias Klauser
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-02-10gtp: add MAINTAINERSPablo Neira1-0/+8
2017-02-10Merge branch 'bpf-selftests-improve-and-use-library'David S. Miller11-300/+301
2017-02-10bpf: Add test_tag to .gitignoreMickaël Salaün1-0/+1
2017-02-10bpf: Remove bpf_sys.h from selftestsMickaël Salaün7-34/+9
2017-02-10bpf: Use bpf_create_map() from the libraryMickaël Salaün6-30/+15
2017-02-10bpf: Use bpf_map_get_next_key() from the libraryMickaël Salaün5-31/+20
2017-02-10bpf: Use bpf_map_delete_elem() from the libraryMickaël Salaün5-26/+16
2017-02-10bpf: Use bpf_map_lookup_elem() from the libraryMickaël Salaün6-50/+39
2017-02-10bpf: Use bpf_map_update_elem() from the libraryMickaël Salaün6-91/+99
2017-02-10bpf: Use bpf_load_program() from the libraryMickaël Salaün6-32/+17
2017-02-10bpf: Always test unprivileged programsMickaël Salaün2-6/+64
2017-02-10bpf: Change the include directory for selftestMickaël Salaün1-1/+1
2017-02-10tools: Sync {,tools/}include/uapi/linux/bpf.hMickaël Salaün1-1/+22
2017-02-10Merge branch 'netronome-NFP4000-and-NFP6000-PF-driver'David S. Miller