All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Khoronzhuk <ivan.khoronzhuk@gmail.com>
To: k-hagio-ab@nec.com, kexec@lists.infradead.org
Cc: Ivan Khoronzhuk <ikhoronz@cisco.com>
Subject: [RFC makedumpfile: add userinfo elf section 3/4] elf_info: make int note_descsz() and offset_next_note() public
Date: Wed,  1 Dec 2021 15:47:29 +0200	[thread overview]
Message-ID: <20211201134730.15943-4-ikhoronz@cisco.com> (raw)
In-Reply-To: <20211201134730.15943-1-ikhoronz@cisco.com>

These usefule funcgtions are supposed to be reused in makedumfile note
travese procedures.

Signed-off-by: Ivan Khoronzhuk <ikhoronz@cisco.com>
---
 elf_info.c | 4 ++--
 elf_info.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/elf_info.c b/elf_info.c
index bc24083..0737b6c 100644
--- a/elf_info.c
+++ b/elf_info.c
@@ -181,7 +181,7 @@ dump_Elf_load(Elf64_Phdr *prog, int num_load)
 	return TRUE;
 }
 
-static off_t
+off_t
 offset_next_note(void *note)
 {
 	off_t offset;
@@ -240,7 +240,7 @@ note_namesz(void *note)
 	return size;
 }
 
-static int
+int
 note_descsz(void *note)
 {
 	int size;
diff --git a/elf_info.h b/elf_info.h
index ca96935..f38605d 100644
--- a/elf_info.h
+++ b/elf_info.h
@@ -74,6 +74,8 @@ int get_nr_cpus(void);
 int has_pt_note(void);
 void set_pt_note(off_t offset, unsigned long size);
 void get_pt_note(off_t *offset, unsigned long *size);
+int note_descsz(void *note);
+off_t offset_next_note(void *note);
 
 int has_vmcoreinfo(void);
 void set_vmcoreinfo(off_t offset, unsigned long size);
-- 
2.20.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2021-12-01 13:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01 13:47 [RFC PATCH] makedumpfile: add userinfo elf section 0/4] Ivan Khoronzhuk
2021-12-01 13:47 ` [RFC makedumpfile: add userinfo elf section 1/4] makedumpfile: rename check_dump_file() on check_file_is_writable() Ivan Khoronzhuk
2021-12-01 13:47 ` [RFC makedumpfile: add userinfo elf section 2/4] elf: add new "userinfo" ELF section to traverse debug information Ivan Khoronzhuk
2021-12-01 13:47 ` Ivan Khoronzhuk [this message]
2021-12-01 13:47 ` [RFC makedumpfile: add userinfo elf section 4/4] elf: add ability to read the userinfo data from note segment Ivan Khoronzhuk
2021-12-15  0:58 ` [RFC PATCH] makedumpfile: add userinfo elf section 0/4] HAGIO KAZUHITO(萩尾 一仁)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211201134730.15943-4-ikhoronz@cisco.com \
    --to=ivan.khoronzhuk@gmail.com \
    --cc=ikhoronz@cisco.com \
    --cc=k-hagio-ab@nec.com \
    --cc=kexec@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.