Displaying 20 results from an estimated 52 matches for "deserialised".
Did you mean:
deserialise
2018 Mar 19
2
MIR YAML deserialisation failure
Hello,
I am trying to isolate an assertion failure in if-converter (on PPC) and I
generated a textual debuglog with:
```
LLVM_ARGS=-print-before-all -print-module-scope
-filter-print-funcs=japi1__require_7687
```
and after splicing out the the MIR before the if-converter pass
I would like to run `llc -march=ppc64le -run-pass=if-converter input.mir`
so that I can start minimising the MIR.
This
2018 Mar 20
0
MIR YAML deserialisation failure
Hello Valentin,
To generate a mir test case i think the process is to first create an IR
file by passing '-S -emit-llvm' to clang, then you can feed that file into
llc and use stop-before to get the mir just before the if-converter pass,
eg: `llc -stop-before=if-converter -simplify-mir -o test.mir test.ll`.
Also there is a MIR language reference:
https://llvm.org/docs/MIRLangRef.html
2018 Mar 20
0
MIR YAML deserialisation failure
Thank you both!
I was running into the issue that bugpoint was reducing my test-case into
other failures and I hadn't managed yet to find the right point in the
Julia pass pipeline to insert the module to reproduce the issue reliably
from llc and that's why I started looking at using the MIR.
I will go back at looking at the pass pipeline and the IR and get a
reproducer that way!
2016 Apr 03
0
[PATCH v2 4/5] appliance: Added filesystem_walk command
...s->len = ret;
+ dirents->val = safe_realloc (g, dirents->val,
+ dirents->len *
+ sizeof (struct guestfs_tsk_dirent));
+
+ return dirents;
+}
+
+/* Deserialise buf content and populate the dirent list.
+ * Return the number of deserialised dirents, -1 on error.
+ */
+int
+deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize,
+ struct guestfs_tsk_dirent_list **dirents)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+
+ xdrmem_create (&xdr, buf, bufsize, XDR_DECODE);
+
+ for (index = 0;...
2018 Mar 20
2
MIR YAML deserialisation failure
Valentin,
in terms of limitations as Sean pointed out, an important one is that .mir
doesn't have MachineFunctionInfo which may result in failure on accesses to
global variables due to use of register X2. The verifier considers it an
undefined register.
Also, it's probably easier to reduce test cases using bugpoint starting
from an IR test case. With the code you provided, I get a
2016 Apr 05
1
Re: [PATCH v3 4/5] appliance: Added filesystem_walk command
...deserialise_dirent_list (g, buf, bufsize, dirents);
> + if (ret < 0) {
> + guestfs_free_tsk_dirent_list (dirents);
> + return NULL;
> + }
> +
> + return dirents;
> +}
> +
> +/* Deserialise buf content and populate the dirent list.
> + * Return the number of deserialised dirents, -1 on error.
> + */
> +int
> +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize,
> + struct guestfs_tsk_dirent_list *dirents)
> +{
> + XDR xdr;
> + bool_t ret = 0;
> + uint32_t index = 0;
> +
> + xdrmem_create (&x...
2016 Apr 04
2
Re: [PATCH v2 4/5] appliance: Added filesystem_walk command
...ct guestfs_tsk_dirent));
You don't need to shrink the array with values -- users knows already
they don't have to access it past 'len' values.
> +
> + return dirents;
> +}
> +
> +/* Deserialise buf content and populate the dirent list.
> + * Return the number of deserialised dirents, -1 on error.
> + */
> +int
> +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize,
> + struct guestfs_tsk_dirent_list **dirents)
Since you don't change the location of 'dirents', you don't need to
pass a pointer to it to cha...
2018 Mar 22
0
MIR YAML deserialisation failure
In our fork of LLVM we often need to reduce a crash testcase for a
specific assertion. After writing lots of "only give me this specific
assertion" scripts like the above I decided to write a script that
automates all this for me:
<https://github.com/CTSRD-CHERI/clang/blob/master/utils/creduce_crash_testcase.py>.
(It's called creduce_crash_test.py but it will actually use
2016 Nov 09
0
[PATCH v2 5/6] New API: yara_scan
...to detection list. */
+ ret = deserialise_yara_detection_list (g, fp, detections);
+ if (ret < 0) {
+ guestfs_free_yara_detection_list (detections);
+ return NULL;
+ }
+
+ return detections;
+}
+
+/* Deserialise the file content and populate the detection list.
+ * Return the number of deserialised detections, -1 on error.
+ */
+static int
+deserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &stat...
2018 Mar 20
2
MIR YAML deserialisation failure
I'm not sure if this helps, but here it is in case it does.
I typically use bugpoint in a way as to keep the actual failure that I'm
after. For example, with the test case you've pasted, I was looking for a
specific assert. So I used bugpoint this way:
$ cat reduceme.sh
#!/bin/bash
llc -filetype=obj $1 2>&1 | grep 'Cannot lower calls with arbitrary operand
bundles'
2017 Apr 06
0
[PATCH v6 6/7] New API: yara_scan
...to detection list. */
+ ret = deserialise_yara_detection_list (g, fp, detections);
+ if (ret < 0) {
+ guestfs_free_yara_detection_list (detections);
+ return NULL;
+ }
+
+ return detections;
+}
+
+/* Deserialise the file content and populate the detection list.
+ * Return the number of deserialised detections, -1 on error.
+ */
+static int
+deserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &stat...
2017 Apr 04
0
[PATCH v5 6/7] New API: yara_scan
...to detection list. */
+ ret = deserialise_yara_detection_list (g, fp, detections);
+ if (ret < 0) {
+ guestfs_free_yara_detection_list (detections);
+ return NULL;
+ }
+
+ return detections;
+}
+
+/* Deserialise the file content and populate the detection list.
+ * Return the number of deserialised detections, -1 on error.
+ */
+static int
+deserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &stat...
2017 Apr 23
0
[PATCH v7 6/7] New API: yara_scan
...t (g, fp, detections);
+ if (r == -1) {
+ guestfs_free_yara_detection_list (detections);
+ perrorf (g, "guestfs_free_yara_detection_list");
+ return NULL;
+ }
+
+ return detections;
+}
+
+/* Deserialise the file content and populate the detection list.
+ * Return the number of deserialised detections, -1 on error.
+ */
+static int
+deserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int r = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ r = fstat (fileno(fp), &statbuf)...
2016 Apr 05
0
[PATCH v3 4/5] appliance: Added filesystem_walk command
...Deserialise buffer into dirent list. */
+ ret = deserialise_dirent_list (g, buf, bufsize, dirents);
+ if (ret < 0) {
+ guestfs_free_tsk_dirent_list (dirents);
+ return NULL;
+ }
+
+ return dirents;
+}
+
+/* Deserialise buf content and populate the dirent list.
+ * Return the number of deserialised dirents, -1 on error.
+ */
+int
+deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize,
+ struct guestfs_tsk_dirent_list *dirents)
+{
+ XDR xdr;
+ bool_t ret = 0;
+ uint32_t index = 0;
+
+ xdrmem_create (&xdr, buf, bufsize, XDR_DECODE);
+
+ for (index = 0...
2016 Apr 04
0
Re: [PATCH v2 4/5] appliance: Added filesystem_walk command
...;t have to access it past 'len' values.
>
If I then run the command in guestfish I get plenty of empty structs.
>
> > +
> > + return dirents;
> > +}
> > +
> > +/* Deserialise buf content and populate the dirent list.
> > + * Return the number of deserialised dirents, -1 on error.
> > + */
> > +int
> > +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize,
> > + struct guestfs_tsk_dirent_list **dirents)
>
> Since you don't change the location of 'dirents', you don't need t...
2016 Jun 13
0
[PATCH v8 2/3] New API: filesystem_walk
...+ /* Deserialise buffer into dirent list. */
+ ret = deserialise_dirent_list (g, fp, dirents);
+ if (ret < 0) {
+ guestfs_free_tsk_dirent_list (dirents);
+ return NULL;
+ }
+
+ return dirents;
+}
+
+/* Deserialise the file content and populate the dirent list.
+ * Return the number of deserialised dirents, -1 on error.
+ */
+static int
+deserialise_dirent_list (guestfs_h *g, FILE *fp,
+ struct guestfs_tsk_dirent_list *dirents)
+{
+ XDR xdr;
+ bool_t ret = 0;
+ int statret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ statret = fstat (fileno(fp), &sta...
2016 Apr 03
7
[PATCH v2 0/5] Added filesystem_walk command
v2:
- Increased the amount of collected information from the FS content.
- Moved filesystem_walk0 as internal command.
- Code improvement based on comments.
- Adhere to project's coding style.
- Better command documentation.
- More robust tests.
Patch ready for review, code available at:
https://github.com/noxdafox/libguestfs/tree/filesystem_walk
Matteo Cafasso (5):
generator:
2006 Jan 12
0
yaml: custom saving and loading of specific classes
...et and set the
properties (they''re not stored simply in instance variables that I can
access), and I don''t want to change the class any more than I have to.
Can anyone offer any pointers on how to get some custom code executed
when an instance of such a class is serialised and deserialised? What
I''d like to do is, when I call YAML.dump(), and it sees an instance of
the legacy class, to convert it into some data structure and dump that,
and do the reverse on YAML.load(). I''m guessing I can do part of this
with the to_yaml() function, but I haven''t been...
2016 Apr 05
10
[PATCH v3 0/5] Added filesystem_walk command
v3:
- File size will be reported as - 1 if it cannot be retrieved.
- Code improvements based on comments.
Matteo Cafasso (5):
generator: Added tsk_dirent struct
configure: Added libtsk compile-time check
daemon: Added internal_filesystem_walk command
appliance: Added filesystem_walk command
appliance: Added filesystem_walk command tests
daemon/Makefile.am | 4 +-
2016 Jun 13
7
[PATCH v8 0/3] New API: filesystem_walk
v8:
- rebase on master
- bump version to 1.33.37
- squash commits 1, 2, 3
Kept original commits messages when squashing them.
Matteo Cafasso (3):
New API: internal_filesystem_walk
New API: filesystem_walk
lib: Added filesystem_walk command tests
daemon/Makefile.am | 4 +-
daemon/tsk.c | 249 ++++++++++++++++++++++++++++++++++++++